Commit | Line | Data |
---|---|---|
9857164a FD |
1 | /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) |
2 | * | |
3 | * lttng-syscalls-enum.c | |
4 | * | |
5 | * LTTng syscall enum types | |
6 | * | |
7 | * Copyright (C) 2021 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
8 | * Copyright (C) 2021 Francis Deslauriers <francis.deslauriers@efficios.com> | |
9 | */ | |
10 | ||
11 | #include <lttng/events.h> | |
12 | ||
13 | #define LTTNG_PACKAGE_BUILD | |
14 | #define CREATE_TRACE_POINTS | |
15 | #define TP_MODULE_NOINIT | |
16 | #define TRACE_INCLUDE_PATH instrumentation/syscalls/headers | |
17 | ||
18 | #define PARAMS(args...) args | |
19 | ||
20 | #undef sc_exit | |
21 | #define sc_exit(...) | |
22 | #undef sc_in | |
23 | #define sc_in(...) __VA_ARGS__ | |
24 | #undef sc_out | |
25 | #define sc_out(...) | |
26 | #undef sc_inout | |
27 | #define sc_inout(...) __VA_ARGS__ | |
28 | ||
29 | #define TP_PROBE_CB(_template) | |
30 | #define SC_LTTNG_TRACEPOINT_EVENT(_name, _proto, _args, _fields) | |
31 | #define SC_LTTNG_TRACEPOINT_EVENT_CODE(_name, _proto, _args, _locvar, _code_pre, _fields, _code_post) | |
32 | #define SC_LTTNG_TRACEPOINT_EVENT_CLASS_NOARGS(_name, _fields) | |
33 | #define SC_LTTNG_TRACEPOINT_EVENT_INSTANCE_NOARGS(_template, _name) | |
34 | ||
35 | #define LTTNG_TRACEPOINT_TYPE_DEFINE_EXPORT | |
36 | ||
37 | #define SC_LTTNG_TRACEPOINT_ENUM(_name, _values) \ | |
38 | LTTNG_TRACEPOINT_ENUM(_name, PARAMS(_values)) | |
39 | ||
40 | #undef TRACE_SYSTEM | |
41 | #define TRACE_SYSTEM syscall_entry_integers | |
42 | #define TRACE_INCLUDE_FILE syscalls_integers | |
43 | #include <instrumentation/syscalls/headers/syscalls_integers.h> | |
44 | #undef TRACE_INCLUDE_FILE | |
45 | #undef TRACE_SYSTEM | |
46 | #define TRACE_SYSTEM syscall_entry_pointers | |
47 | #define TRACE_INCLUDE_FILE syscalls_pointers | |
48 | #include <instrumentation/syscalls/headers/syscalls_pointers.h> | |
49 | #undef TRACE_INCLUDE_FILE | |
50 | #undef TRACE_SYSTEM | |
51 | #undef SC_LTTNG_TRACEPOINT_ENUM |