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_event_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_entry_event_notifier_probe
34 LTTNG_TRACEPOINT_EVENT(syscall_notifier_entry_unknown
,
35 TP_PROTO(int id
, unsigned long *args
),
38 ctf_integer(int, id
, id
)
39 ctf_array(unsigned long, args
, args
, UNKNOWN_SYSCALL_NRARGS
)
42 LTTNG_TRACEPOINT_EVENT(compat_syscall_notifier_entry_unknown
,
43 TP_PROTO(int id
, unsigned long *args
),
46 ctf_integer(int, id
, id
)
47 ctf_array(unsigned long, args
, args
, UNKNOWN_SYSCALL_NRARGS
)
52 #define TP_PROBE_CB(_template) &syscall_exit_event_probe
54 LTTNG_TRACEPOINT_EVENT(syscall_exit_unknown
,
55 TP_PROTO(int id
, long ret
, unsigned long *args
),
56 TP_ARGS(id
, ret
, args
),
58 ctf_integer(int, id
, id
)
59 ctf_integer(long, ret
, ret
)
60 ctf_array(unsigned long, args
, args
, UNKNOWN_SYSCALL_NRARGS
)
63 LTTNG_TRACEPOINT_EVENT(compat_syscall_exit_unknown
,
64 TP_PROTO(int id
, long ret
, unsigned long *args
),
65 TP_ARGS(id
, ret
, args
),
67 ctf_integer(int, id
, id
)
68 ctf_integer(long, ret
, ret
)
69 ctf_array(unsigned long, args
, args
, UNKNOWN_SYSCALL_NRARGS
)
72 #endif /* _TRACE_SYSCALLS_UNKNOWN_H */
74 /* This part must be outside protection */
75 #include <lttng/define_trace.h>