| 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 | void _simple_trace_test_blah(void *context, const char *filename); |
| 16 | void _simple_trace_test_wibble(void *context, int value); |
| 17 | |
| 18 | |
| 19 | #define TRACE_TEST_BLAH_BACKEND_DSTATE() ( \ |
| 20 | trace_event_get_state_dynamic_by_id(TRACE_TEST_BLAH) || \ |
| 21 | false) |
| 22 | |
| 23 | static inline void trace_test_blah(void *context, const char *filename) |
| 24 | { |
| 25 | if (trace_event_get_state(TRACE_TEST_BLAH)) { |
| 26 | _simple_trace_test_blah(context, filename); |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | #define TRACE_TEST_WIBBLE_BACKEND_DSTATE() ( \ |
| 31 | trace_event_get_state_dynamic_by_id(TRACE_TEST_WIBBLE) || \ |
| 32 | false) |
| 33 | |
| 34 | static inline void trace_test_wibble(void *context, int value) |
| 35 | { |
| 36 | if (trace_event_get_state(TRACE_TEST_WIBBLE)) { |
| 37 | _simple_trace_test_wibble(context, value); |
| 38 | } |
| 39 | } |
| 40 | #endif /* TRACE_TESTSUITE_GENERATED_TRACERS_H */ |