1 #if !defined(_TRACE_SYSCALLS_UNKNOWN_H) || defined(TRACE_HEADER_MULTI_READ)
2 #define _TRACE_SYSCALLS_UNKNOWN_H
4 #include "../../../probes/lttng-tracepoint-event.h"
5 #include <linux/syscalls.h>
7 #define UNKNOWN_SYSCALL_NRARGS 6
10 #define TP_PROBE_CB(_template) &syscall_entry_probe
12 LTTNG_TRACEPOINT_EVENT(syscall_entry_unknown
,
13 TP_PROTO(int id
, unsigned long *args
),
16 ctf_integer(int, id
, id
)
17 ctf_array(unsigned long, args
, args
, UNKNOWN_SYSCALL_NRARGS
)
20 LTTNG_TRACEPOINT_EVENT(compat_syscall_entry_unknown
,
21 TP_PROTO(int id
, unsigned long *args
),
24 ctf_integer(int, id
, id
)
25 ctf_array(unsigned long, args
, args
, UNKNOWN_SYSCALL_NRARGS
)
30 #define TP_PROBE_CB(_template) &syscall_exit_probe
32 LTTNG_TRACEPOINT_EVENT(syscall_exit_unknown
,
33 TP_PROTO(int id
, long ret
, unsigned long *args
),
34 TP_ARGS(id
, ret
, args
),
36 ctf_integer(int, id
, id
)
37 ctf_integer(long, ret
, ret
)
38 ctf_array(unsigned long, args
, args
, UNKNOWN_SYSCALL_NRARGS
)
41 LTTNG_TRACEPOINT_EVENT(compat_syscall_exit_unknown
,
42 TP_PROTO(int id
, long ret
, unsigned long *args
),
43 TP_ARGS(id
, ret
, args
),
45 ctf_integer(int, id
, id
)
46 ctf_integer(long, ret
, ret
)
47 ctf_array(unsigned long, args
, args
, UNKNOWN_SYSCALL_NRARGS
)
50 #endif /* _TRACE_SYSCALLS_UNKNOWN_H */
52 /* This part must be outside protection */
53 #include "../../../probes/define_trace.h"