1 // SPDX-License-Identifier: GPL-2.0 2 3 #include <linux/entry-common.h> 4 5 #define CREATE_TRACE_POINTS 6 #include <trace/events/syscalls.h> 7 8 /* Out of line to prevent tracepoint code duplication */ 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 } 24