]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: support passing offset as arg0 to FBT return probes
authorKris Van Hees <kris.van.hees@oracle.com>
Tue, 16 May 2017 03:25:09 +0000 (23:25 -0400)
committerKris Van Hees <kris.van.hees@oracle.com>
Tue, 23 May 2017 13:44:33 +0000 (09:44 -0400)
commitf51c6a99a599f0294c3e86dcd3ff104cff5570da
treea4af2d4e37a04cd4fe4be07f357e58974a234180
parent65eca0f3c5984c5d1f360afc4bb52a31379d415a
dtrace: support passing offset as arg0 to FBT return probes

FBT return probes pass the offset from the function start (in bytes)
as arg0.  To make that possible, we pass the offset value in the call
to fbt_add_probe.  For FBT entry probes we pass 0 (which is ignored).

Orabug: 25949086
Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Acked-by: Nick Alcock <nick.alcock@oracle.com>
arch/sparc/kernel/dtrace_fbt.c
arch/x86/kernel/dtrace_fbt.c
include/linux/dtrace_fbt.h