]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: allow invop handler to specify number of insns to skip
authorNick Alcock <nick.alcock@oracle.com>
Mon, 28 Nov 2016 14:53:15 +0000 (14:53 +0000)
committerKris Van Hees <kris.van.hees@oracle.com>
Fri, 23 Dec 2016 22:33:16 +0000 (17:33 -0500)
commit2ec0c496a51a915ac44a46f1d49081d450a28fb9
tree820b28f07cafaadb5adfd935bbc04352cd1a7e3d
parent560ecfb75f5666af865825dc5b1bf6fbbfdea155
dtrace: allow invop handler to specify number of insns to skip

Rather than unconditionally skipping one instruction, repurpose the
unused return value of the invop handler to allow it to specify the
amount to skip.  (In the common case where it knows how many
instructions to skip at all times, this is more efficient.)

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Acked-by: Kris Van Hees <kris.van.hees@oracle.com>
arch/x86/kernel/dtrace_util.c