Add experimental bitwise enum config option
[lttng-modules.git] / src / lttng-syscalls-enum.c
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 #include "lttng-syscalls.h"
14
15 #define LTTNG_PACKAGE_BUILD
16 #define CREATE_TRACE_POINTS
17 #define TP_MODULE_NOINIT
18 #define TRACE_INCLUDE_PATH instrumentation/syscalls/headers
19
20 #define PARAMS(args...) args
21
22 #undef sc_exit
23 #define sc_exit(...)
24 #undef sc_in
25 #define sc_in(...) __VA_ARGS__
26 #undef sc_out
27 #define sc_out(...)
28 #undef sc_inout
29 #define sc_inout(...) __VA_ARGS__
30
31 #define TP_PROBE_CB(_template)
32 #define SC_LTTNG_TRACEPOINT_EVENT(_name, _proto, _args, _fields)
33 #define SC_LTTNG_TRACEPOINT_EVENT_CODE(_name, _proto, _args, _locvar, _code_pre, _fields, _code_post)
34 #define SC_LTTNG_TRACEPOINT_EVENT_CLASS_NOARGS(_name, _fields)
35 #define SC_LTTNG_TRACEPOINT_EVENT_INSTANCE_NOARGS(_template, _name)
36
37 #define LTTNG_TRACEPOINT_TYPE_DEFINE_EXPORT
38
39 #define SC_LTTNG_TRACEPOINT_ENUM(_name, _values) \
40 LTTNG_TRACEPOINT_ENUM(_name, PARAMS(_values))
41
42 #undef TRACE_SYSTEM
43 #define TRACE_SYSTEM syscall_entry_integers
44 #define TRACE_INCLUDE_FILE syscalls_integers
45 #include <instrumentation/syscalls/headers/syscalls_integers.h>
46 #undef TRACE_INCLUDE_FILE
47 #undef TRACE_SYSTEM
48 #define TRACE_SYSTEM syscall_entry_pointers
49 #define TRACE_INCLUDE_FILE syscalls_pointers
50 #include <instrumentation/syscalls/headers/syscalls_pointers.h>
51 #undef TRACE_INCLUDE_FILE
52 #undef TRACE_SYSTEM
53 #undef SC_LTTNG_TRACEPOINT_ENUM
This page took 0.030763 seconds and 4 git commands to generate.