7392e988322bc2593780ca6fd08a8aa7282fa6b8
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 )
34 unsigned long args_copy
[6];
36 syscall_get_arguments(current
, regs
, 0, 6, args_copy
);
37 tp_memcpy(args
, args_copy
, 6 * sizeof(args_copy
));
41 TP_printk("NR %ld (%lx, %lx, %lx, %lx, %lx, %lx)",
43 __entry
->args
[0], __entry
->args
[1], __entry
->args
[2],
44 __entry
->args
[3], __entry
->args
[4], __entry
->args
[5])
49 TP_PROTO(struct pt_regs
*regs
, long ret
),
59 tp_assign(id
, syscall_get_nr(current
, regs
))
63 TP_printk("NR %ld = %ld",
64 __entry
->id
, __entry
->ret
)
67 #endif /* CONFIG_HAVE_SYSCALL_TRACEPOINTS */
69 #endif /* _TRACE_EVENTS_SYSCALLS_H */
71 /* This part must be outside protection */
72 #include "define_trace.h"
This page took 0.037743 seconds and 4 git commands to generate.