Upstream: https://gitlab.com/qemu-project/qemu.git Upstream-Commit: d2e570cc0f97b936902a5b1b86b73c0f5998b475
41 lines
1.2 KiB
C
41 lines
1.2 KiB
C
/* This file is autogenerated by tracetool, do not edit. */
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#ifndef TRACE_TESTSUITE_GENERATED_TRACERS_H
|
|
#define TRACE_TESTSUITE_GENERATED_TRACERS_H
|
|
|
|
#include "trace/control.h"
|
|
|
|
extern TraceEvent _TRACE_TEST_BLAH_EVENT;
|
|
extern TraceEvent _TRACE_TEST_WIBBLE_EVENT;
|
|
extern uint16_t _TRACE_TEST_BLAH_DSTATE;
|
|
extern uint16_t _TRACE_TEST_WIBBLE_DSTATE;
|
|
#define TRACE_TEST_BLAH_ENABLED 1
|
|
#define TRACE_TEST_WIBBLE_ENABLED 1
|
|
void _simple_trace_test_blah(void *context, const char *filename);
|
|
void _simple_trace_test_wibble(void *context, int value);
|
|
|
|
|
|
#define TRACE_TEST_BLAH_BACKEND_DSTATE() ( \
|
|
trace_event_get_state_dynamic_by_id(TRACE_TEST_BLAH) || \
|
|
false)
|
|
|
|
static inline void trace_test_blah(void *context, const char *filename)
|
|
{
|
|
if (trace_event_get_state(TRACE_TEST_BLAH)) {
|
|
_simple_trace_test_blah(context, filename);
|
|
}
|
|
}
|
|
|
|
#define TRACE_TEST_WIBBLE_BACKEND_DSTATE() ( \
|
|
trace_event_get_state_dynamic_by_id(TRACE_TEST_WIBBLE) || \
|
|
false)
|
|
|
|
static inline void trace_test_wibble(void *context, int value)
|
|
{
|
|
if (trace_event_get_state(TRACE_TEST_WIBBLE)) {
|
|
_simple_trace_test_wibble(context, value);
|
|
}
|
|
}
|
|
#endif /* TRACE_TESTSUITE_GENERATED_TRACERS_H */
|