Commit | Line | Data |
---|---|---|
b7cdc182 | 1 | /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) */ |
6314c2d3 | 2 | |
63728b02 MD |
3 | #if !defined(_TRACE_SYSCALLS_UNKNOWN_H) || defined(TRACE_HEADER_MULTI_READ) |
4 | #define _TRACE_SYSCALLS_UNKNOWN_H | |
5 | ||
6d7f376d | 6 | #include <probes/lttng-tracepoint-event.h> |
63728b02 MD |
7 | #include <linux/syscalls.h> |
8 | ||
9 | #define UNKNOWN_SYSCALL_NRARGS 6 | |
10 | ||
5b7ac358 MD |
11 | #undef TP_PROBE_CB |
12 | #define TP_PROBE_CB(_template) &syscall_entry_probe | |
13 | ||
d4291869 | 14 | LTTNG_TRACEPOINT_EVENT(syscall_entry_unknown, |
74f7b56a | 15 | TP_PROTO(int id, unsigned long *args), |
63728b02 | 16 | TP_ARGS(id, args), |
57ede728 MD |
17 | TP_FIELDS( |
18 | ctf_integer(int, id, id) | |
19 | ctf_array(unsigned long, args, args, UNKNOWN_SYSCALL_NRARGS) | |
20 | ) | |
63728b02 | 21 | ) |
d4291869 | 22 | LTTNG_TRACEPOINT_EVENT(compat_syscall_entry_unknown, |
74f7b56a | 23 | TP_PROTO(int id, unsigned long *args), |
b76dc1a0 | 24 | TP_ARGS(id, args), |
57ede728 MD |
25 | TP_FIELDS( |
26 | ctf_integer(int, id, id) | |
27 | ctf_array(unsigned long, args, args, UNKNOWN_SYSCALL_NRARGS) | |
28 | ) | |
b76dc1a0 | 29 | ) |
5b7ac358 MD |
30 | |
31 | #undef TP_PROBE_CB | |
32 | #define TP_PROBE_CB(_template) &syscall_exit_probe | |
33 | ||
3bc29f0a | 34 | LTTNG_TRACEPOINT_EVENT(syscall_exit_unknown, |
74f7b56a | 35 | TP_PROTO(int id, long ret, unsigned long *args), |
5b7ac358 | 36 | TP_ARGS(id, ret, args), |
57ede728 MD |
37 | TP_FIELDS( |
38 | ctf_integer(int, id, id) | |
39 | ctf_integer(long, ret, ret) | |
40 | ctf_array(unsigned long, args, args, UNKNOWN_SYSCALL_NRARGS) | |
41 | ) | |
5b7ac358 | 42 | ) |
3bc29f0a | 43 | LTTNG_TRACEPOINT_EVENT(compat_syscall_exit_unknown, |
74f7b56a | 44 | TP_PROTO(int id, long ret, unsigned long *args), |
5b7ac358 | 45 | TP_ARGS(id, ret, args), |
57ede728 MD |
46 | TP_FIELDS( |
47 | ctf_integer(int, id, id) | |
48 | ctf_integer(long, ret, ret) | |
49 | ctf_array(unsigned long, args, args, UNKNOWN_SYSCALL_NRARGS) | |
50 | ) | |
63728b02 | 51 | ) |
63728b02 MD |
52 | #endif /* _TRACE_SYSCALLS_UNKNOWN_H */ |
53 | ||
54 | /* This part must be outside protection */ | |
6d7f376d | 55 | #include <probes/define_trace.h> |