xref: /openbmc/qemu/tests/tracetool/syslog.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 #include <syslog.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 #line 4 "trace-events"
26         syslog(LOG_INFO, "test_blah " "Blah context=%p filename=%s" , context, filename);
27 #line 28 "syslog.h"
28     }
29 }
30 
31 #define TRACE_TEST_WIBBLE_BACKEND_DSTATE() ( \
32     trace_event_get_state_dynamic_by_id(TRACE_TEST_WIBBLE) || \
33     false)
34 
35 static inline void trace_test_wibble(void *context, int value)
36 {
37     if (trace_event_get_state(TRACE_TEST_WIBBLE)) {
38 #line 5 "trace-events"
39         syslog(LOG_INFO, "test_wibble " "Wibble context=%p value=%d" , context, value);
40 #line 41 "syslog.h"
41     }
42 }
43 #endif /* TRACE_TESTSUITE_GENERATED_TRACERS_H */
44