master
h 47 lines 1.38 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 "qemu/log-for-trace.h"
16
17
18 #define TRACE_TEST_BLAH_BACKEND_DSTATE() ( \
19 trace_event_get_state_dynamic_by_id(TRACE_TEST_BLAH) || \
20 false)
21
22 static inline void trace_test_blah(void *context, const char *filename)
23 {
24 if (trace_event_get_state(TRACE_TEST_BLAH)) {
25 if (qemu_loglevel_mask(LOG_TRACE)) {
26 #line 4 "trace-events"
27 qemu_log("test_blah " "Blah context=%p filename=%s" "\n", context, filename);
28 #line 29 "log.h"
29 }
30 }
31 }
32
33 #define TRACE_TEST_WIBBLE_BACKEND_DSTATE() ( \
34 trace_event_get_state_dynamic_by_id(TRACE_TEST_WIBBLE) || \
35 false)
36
37 static inline void trace_test_wibble(void *context, int value)
38 {
39 if (trace_event_get_state(TRACE_TEST_WIBBLE)) {
40 if (qemu_loglevel_mask(LOG_TRACE)) {
41 #line 5 "trace-events"
42 qemu_log("test_wibble " "Wibble context=%p value=%d" "\n", context, value);
43 #line 44 "log.h"
44 }
45 }
46 }
47 #endif /* TRACE_TESTSUITE_GENERATED_TRACERS_H */