|
|
|
|
/* 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)
|
|
|
|
|
|
tracetool: drop the probe "__nocheck__" wrapping
Every generated inline probe function is wrapped with a
trivial caller that has a hard-coded condition test:
static inline void _nocheck__trace_test_wibble(void * context, int value)
{
tracepoint(qemu, test_wibble, context, value);
}
static inline void trace_test_wibble(void * context, int value)
{
if (true) {
_nocheck__trace_test_wibble(context, value);
}
}
This was introduced for TCG probes back in
864a2178: trace: [tcg] Do not generate TCG code to trace dynamically-disabled events
but is obsolete since
126d4123 tracing: excise the tcg related from tracetool
This commit removes the wrapping such that we have
static inline void trace_test_wibble(void * context, int value)
{
tracepoint(qemu, test_wibble, context, value);
}
The default build of qemu-system-x86_64 on Fedora with the
'log' backend, has its size reduced by 1 MB
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-id: 20250916081638.764020-7-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
7 months ago
|
|
|
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)
|
|
|
|
|
|
tracetool: drop the probe "__nocheck__" wrapping
Every generated inline probe function is wrapped with a
trivial caller that has a hard-coded condition test:
static inline void _nocheck__trace_test_wibble(void * context, int value)
{
tracepoint(qemu, test_wibble, context, value);
}
static inline void trace_test_wibble(void * context, int value)
{
if (true) {
_nocheck__trace_test_wibble(context, value);
}
}
This was introduced for TCG probes back in
864a2178: trace: [tcg] Do not generate TCG code to trace dynamically-disabled events
but is obsolete since
126d4123 tracing: excise the tcg related from tracetool
This commit removes the wrapping such that we have
static inline void trace_test_wibble(void * context, int value)
{
tracepoint(qemu, test_wibble, context, value);
}
The default build of qemu-system-x86_64 on Fedora with the
'log' backend, has its size reduced by 1 MB
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-id: 20250916081638.764020-7-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
7 months ago
|
|
|
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 */
|