| 1 | |
| 2 |
|
| 3 | #include <linux/entry-common.h>
|
| 4 |
|
| 5 | #define CREATE_TRACE_POINTS
|
| 6 | #include <trace/events/syscalls.h>
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 | long trace_syscall_enter(struct pt_regs *regs, long syscall)
|
| 11 | {
|
| 12 | trace_sys_enter(regs, syscall);
|
| 13 | |
| 14 | * Probes or BPF hooks in the tracepoint may have changed the
|
| 15 | * system call number. Reread it.
|
| 16 |
|
| 17 | return syscall_get_nr(current, regs);
|
| 18 | }
|
| 19 |
|
| 20 | void trace_syscall_exit(struct pt_regs *regs, long ret)
|
| 21 | {
|
| 22 | trace_sys_exit(regs, ret);
|
| 23 | }
|