]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: stub-based syscall tracing
authorKris Van Hees <kris.van.hees@oracle.com>
Thu, 27 Oct 2011 14:39:19 +0000 (10:39 -0400)
committerNick Alcock <nick.alcock@oracle.com>
Mon, 29 Jun 2015 21:39:56 +0000 (22:39 +0100)
commit2d67179cb750151ef8725c251d6b07ef9341ef67
tree25106ccd9db4b0dc975e92ee32773787ca5a24b4
parent4260cf5624164e6532f1a6dc374c70d88d7b9665
dtrace: stub-based syscall tracing

Due to the need for specialized code handling (mainly passing in a pt_regs
structure as one of the arguments), some syscalls are called through a stub
in assembly code.

We duplicate the stub cdode in dtrace_stubs_x86_64.S, but instead of calling
the actual syscall implementation code call our own syscall-specific handler,
which ensures that entry and return probes are called as enabled, and then
call the underlying implementation directly for handling the syscall.

Also removed debugging output that is no longer relevant (code cleanup).

Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
include/linux/cyclic.h
include/linux/dtrace_os.h
kernel/dtrace/Makefile
kernel/dtrace/dtrace_os.c
kernel/dtrace/dtrace_stubs_x86_64.S [new file with mode: 0644]