1 /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) */
3 #if !defined(_TRACE_SYSCALLS_UNKNOWN_H) || defined(TRACE_HEADER_MULTI_READ)
4 #define _TRACE_SYSCALLS_UNKNOWN_H
6 #include <lttng/tracepoint-event.h>
7 #include <linux/syscalls.h>
9 #define UNKNOWN_SYSCALL_NRARGS 6
12 #define TP_PROBE_CB(_template) &syscall_entry_probe
14 LTTNG_TRACEPOINT_EVENT(syscall_entry_unknown
,
15 TP_PROTO(int id
, unsigned long *args
),
18 ctf_integer(int, id
, id
)
19 ctf_array(unsigned long, args
, args
, UNKNOWN_SYSCALL_NRARGS
)
22 LTTNG_TRACEPOINT_EVENT(compat_syscall_entry_unknown
,
23 TP_PROTO(int id
, unsigned long *args
),
26 ctf_integer(int, id
, id
)
27 ctf_array(unsigned long, args
, args
, UNKNOWN_SYSCALL_NRARGS
)
32 #define TP_PROBE_CB(_template) &syscall_exit_probe
34 LTTNG_TRACEPOINT_EVENT(syscall_exit_unknown
,
35 TP_PROTO(int id
, long ret
, unsigned long *args
),
36 TP_ARGS(id
, ret
, args
),
38 ctf_integer(int, id
, id
)
39 ctf_integer(long, ret
, ret
)
40 ctf_array(unsigned long, args
, args
, UNKNOWN_SYSCALL_NRARGS
)
43 LTTNG_TRACEPOINT_EVENT(compat_syscall_exit_unknown
,
44 TP_PROTO(int id
, long ret
, unsigned long *args
),
45 TP_ARGS(id
, ret
, args
),
47 ctf_integer(int, id
, id
)
48 ctf_integer(long, ret
, ret
)
49 ctf_array(unsigned long, args
, args
, UNKNOWN_SYSCALL_NRARGS
)
52 #endif /* _TRACE_SYSCALLS_UNKNOWN_H */
54 /* This part must be outside protection */
55 #include <lttng/define_trace.h>