Files
qemu/scripts
Daniel P. Berrangé 243f6bf6be trace: eliminate dupe trace_event_get_state_dynamic_by_id() calls
Each backend generates the same trace_event_get_state_dynamic_by_id()
call for the TRACE....DSTATE() macro body, so when multiple backends
are enabled, the same check is repeated:

 #define TRACE_TEST_WIBBLE_BACKEND_DSTATE() ( \
     QEMU_TEST_WIBBLE_ENABLED() || \
     trace_event_get_state_dynamic_by_id(TRACE_TEST_WIBBLE) || \
     trace_event_get_state_dynamic_by_id(TRACE_TEST_WIBBLE) || \
     trace_event_get_state_dynamic_by_id(TRACE_TEST_WIBBLE) || \
     trace_event_get_state_dynamic_by_id(TRACE_TEST_WIBBLE) || \
     tracepoint_enabled(qemu, test_wibble) || \
     false)

Expanding the use of the 'backend.check_trace_event_get_state'
attr in the C header generator removes the duplication, in the
same way that the Rust generator already does.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-id: 20261102142844.3464712-17-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2026-11-04 13:17:13 -05:00
..
2026-07-13 17:13:11 +01:00
…
2026-11-02 19:35:20 +01:00
2026-08-20 09:24:57 +02:00
2026-05-05 13:53:03 +02:00
2026-08-20 09:24:57 +02:00
2026-04-30 17:55:03 +02:00
…
2026-05-25 02:01:14 +04:00