mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
perf bpf: Add syscall_exit() helper
So that we can hook to the syscalls:sys_exit_SYSCALL tracepoints in addition to the syscalls:sys_enter_SYSCALL we hook using the syscall_enter() helper. Cc: Adrian Hunter <[email protected]> Cc: David Ahern <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Wang Nan <[email protected]> Link: https://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
1 parent
266b851cc2
commit
664b6a95d7
1 file changed
+3
@@ -26,6 +26,9 @@ struct bpf_map {
|
||||
#define syscall_enter(name) \
|
||||
SEC("syscalls:sys_enter_" #name) syscall_enter_ ## name
|
||||
|
||||
#define syscall_exit(name) \
|
||||
SEC("syscalls:sys_exit_" #name) syscall_exit_ ## name
|
||||
|
||||
#define license(name) \
|
||||
char _license[] SEC("license") = #name; \
|
||||
int _version SEC("version") = LINUX_VERSION_CODE;
|
||||
|
||||
Reference in new issue
Block a user