]> 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 13:55:41 +0000 (09:55 -0400)
committerKris Van Hees <kris.van.hees@oracle.com>
Tue, 23 May 2017 13:36:10 +0000 (09:36 -0400)
commitfd09db08e45c1c6ae2489c65176d88086dcb1a4d
tree01347092aff84c5632a88101c842211028ec6cb5
parent0870d9256c5bab0dce3268db081dd3d82285ac8b
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).

This commit also ensures that we emulate the 'ret' instruction on the
return path.

Orabug: 25949086
Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Reviewed-by: Tomas Jedlicka <tomas.jedlicka@oracle.com>
Acked-by: Nick Alcock <nick.alcock@oracle.com>
dtrace/fbt_dev.c
dtrace/fbt_x86_64.c