master
h 41 lines 1.14 KB
Raw
1 /* This file is autogenerated by tracetool, do not edit. */
2 /* SPDX-License-Identifier: GPL-2.0-or-later */
3
4 #ifndef TRACE_TESTSUITE_GENERATED_TRACERS_H
5 #define TRACE_TESTSUITE_GENERATED_TRACERS_H
6
7 #include "trace/control.h"
8
9 extern TraceEvent _TRACE_TEST_BLAH_EVENT;
10 extern TraceEvent _TRACE_TEST_WIBBLE_EVENT;
11 extern uint16_t _TRACE_TEST_BLAH_DSTATE;
12 extern uint16_t _TRACE_TEST_WIBBLE_DSTATE;
13 #define TRACE_TEST_BLAH_ENABLED 1
14 #define TRACE_TEST_WIBBLE_ENABLED 1
15 #include <lttng/tracepoint.h>
16 #include "trace-ust-testsuite.h"
17
18 /* tracepoint_enabled() was introduced in LTTng UST 2.7 */
19 #ifndef tracepoint_enabled
20 #define tracepoint_enabled(a, b) true
21 #endif
22
23
24 #define TRACE_TEST_BLAH_BACKEND_DSTATE() ( \
25 tracepoint_enabled(qemu, test_blah) || \
26 false)
27
28 static inline void trace_test_blah(void *context, const char *filename)
29 {
30 tracepoint(qemu, test_blah, context, filename);
31 }
32
33 #define TRACE_TEST_WIBBLE_BACKEND_DSTATE() ( \
34 tracepoint_enabled(qemu, test_wibble) || \
35 false)
36
37 static inline void trace_test_wibble(void *context, int value)
38 {
39 tracepoint(qemu, test_wibble, context, value);
40 }
41 #endif /* TRACE_TESTSUITE_GENERATED_TRACERS_H */