xref: /openbmc/qemu/tests/tracetool/dtrace.h (revision 6be998b9863b470ab3f399f4e37cf3a9c59c8fd9)
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 #ifndef SDT_USE_VARIADIC
16 #define SDT_USE_VARIADIC 1
17 #endif
18 #include "trace-dtrace-testsuite.h"
19 
20 #undef SDT_USE_VARIADIC
21 #ifndef QEMU_TEST_BLAH_ENABLED
22 #define QEMU_TEST_BLAH_ENABLED() true
23 #endif
24 #ifndef QEMU_TEST_WIBBLE_ENABLED
25 #define QEMU_TEST_WIBBLE_ENABLED() true
26 #endif
27 
28 #define TRACE_TEST_BLAH_BACKEND_DSTATE() ( \
29     QEMU_TEST_BLAH_ENABLED() || \
30     false)
31 
32 static inline void trace_test_blah(void *context, const char *filename)
33 {
34     QEMU_TEST_BLAH(context, filename);
35 }
36 
37 #define TRACE_TEST_WIBBLE_BACKEND_DSTATE() ( \
38     QEMU_TEST_WIBBLE_ENABLED() || \
39     false)
40 
41 static inline void trace_test_wibble(void *context, int value)
42 {
43     QEMU_TEST_WIBBLE(context, value);
44 }
45 #endif /* TRACE_TESTSUITE_GENERATED_TRACERS_H */
46