2 #define TRACE_SYSTEM raw_syscalls
3 #define TRACE_INCLUDE_FILE syscalls
5 #if !defined(_TRACE_EVENTS_SYSCALLS_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define _TRACE_EVENTS_SYSCALLS_H
8 #include <linux/tracepoint.h>
10 #ifdef CONFIG_HAVE_SYSCALL_TRACEPOINTS
12 #ifndef _TRACE_SYSCALLS_DEF_
13 #define _TRACE_SYSCALLS_DEF_
15 #include <asm/ptrace.h>
16 #include <asm/syscall.h>
18 #endif /* _TRACE_SYSCALLS_DEF_ */
20 TRACE_EVENT(sys_enter,
22 TP_PROTO(struct pt_regs *regs, long id),
28 __array( unsigned long, args, 6 )
36 unsigned long args_copy[6];
37 syscall_get_arguments(current, regs,
40 }), 6 * sizeof(unsigned long));
44 TP_printk("NR %ld (%lx, %lx, %lx, %lx, %lx, %lx)",
46 __entry->args[0], __entry->args[1], __entry->args[2],
47 __entry->args[3], __entry->args[4], __entry->args[5])
52 TP_PROTO(struct pt_regs *regs, long ret),
62 tp_assign(id, syscall_get_nr(current, regs))
66 TP_printk("NR %ld = %ld",
67 __entry->id, __entry->ret)
70 #endif /* CONFIG_HAVE_SYSCALL_TRACEPOINTS */
72 #endif /* _TRACE_EVENTS_SYSCALLS_H */
74 /* This part must be outside protection */
75 #include "../../../probes/define_trace.h"