Migrate syscall instrumentation to TP_FIELDS
[lttng-modules.git] / instrumentation / syscalls / headers / syscalls_unknown.h
1 #if !defined(_TRACE_SYSCALLS_UNKNOWN_H) || defined(TRACE_HEADER_MULTI_READ)
2 #define _TRACE_SYSCALLS_UNKNOWN_H
3
4 #include "../../../probes/lttng-tracepoint-event.h"
5 #include <linux/syscalls.h>
6
7 #define UNKNOWN_SYSCALL_NRARGS 6
8
9 #undef TP_PROBE_CB
10 #define TP_PROBE_CB(_template) &syscall_entry_probe
11
12 LTTNG_TRACEPOINT_EVENT(syscall_entry_unknown,
13 TP_PROTO(int id, unsigned long *args),
14 TP_ARGS(id, args),
15 TP_FIELDS(
16 ctf_integer(int, id, id)
17 ctf_array(unsigned long, args, args, UNKNOWN_SYSCALL_NRARGS)
18 )
19 )
20 LTTNG_TRACEPOINT_EVENT(compat_syscall_entry_unknown,
21 TP_PROTO(int id, unsigned long *args),
22 TP_ARGS(id, args),
23 TP_FIELDS(
24 ctf_integer(int, id, id)
25 ctf_array(unsigned long, args, args, UNKNOWN_SYSCALL_NRARGS)
26 )
27 )
28
29 #undef TP_PROBE_CB
30 #define TP_PROBE_CB(_template) &syscall_exit_probe
31
32 LTTNG_TRACEPOINT_EVENT(syscall_exit_unknown,
33 TP_PROTO(int id, long ret, unsigned long *args),
34 TP_ARGS(id, ret, args),
35 TP_FIELDS(
36 ctf_integer(int, id, id)
37 ctf_integer(long, ret, ret)
38 ctf_array(unsigned long, args, args, UNKNOWN_SYSCALL_NRARGS)
39 )
40 )
41 LTTNG_TRACEPOINT_EVENT(compat_syscall_exit_unknown,
42 TP_PROTO(int id, long ret, unsigned long *args),
43 TP_ARGS(id, ret, args),
44 TP_FIELDS(
45 ctf_integer(int, id, id)
46 ctf_integer(long, ret, ret)
47 ctf_array(unsigned long, args, args, UNKNOWN_SYSCALL_NRARGS)
48 )
49 )
50 #endif /* _TRACE_SYSCALLS_UNKNOWN_H */
51
52 /* This part must be outside protection */
53 #include "../../../probes/define_trace.h"
This page took 0.052211 seconds and 4 git commands to generate.