mirror of
https://gitlab.com/qemu-project/qemu.git
synced 2025-10-30 07:57:14 +08:00
This simplifies the Python code and reduces the size of the tracepoints. Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-ID: <20250929154938.594389-6-pbonzini@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
44 lines
1.3 KiB
C
44 lines
1.3 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
|
|
#include "trace/ftrace.h"
|
|
|
|
|
|
#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)) {
|
|
#line 4 "trace-events"
|
|
ftrace_write("test_blah " "Blah context=%p filename=%s" "\n" , context, filename);
|
|
#line 28 "ftrace.h"
|
|
}
|
|
}
|
|
|
|
#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)) {
|
|
#line 5 "trace-events"
|
|
ftrace_write("test_wibble " "Wibble context=%p value=%d" "\n" , context, value);
|
|
#line 41 "ftrace.h"
|
|
}
|
|
}
|
|
#endif /* TRACE_TESTSUITE_GENERATED_TRACERS_H */
|