qemu-cr16/scripts/tracetool/backend
Tanish Desai 494492c5c5 tracetool/backend: remove redundant trace event checks
Use CHECK_TRACE_EVENT_GET_STATE in log, syslog, dtrace and simple
backend, so that the "if (trace_event_get_state)" is created from common
code and unified when multiple backends are active.

When a single backend is active there is no code change (except
for the log backend, as shown in tests/tracetool/log.h), but the
code in the backends is simpler.

Signed-off-by: Tanish Desai <tanishdesai37@gmail.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-8-pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2025-10-01 11:22:07 -04:00
..
__init__.py tracetool: add CHECK_TRACE_EVENT_GET_STATE 2025-10-01 11:22:07 -04:00
dtrace.py tracetool: add SPDX headers 2025-10-01 11:22:07 -04:00
ftrace.py tracetool/backend: remove redundant trace event checks 2025-10-01 11:22:07 -04:00
log.py tracetool/backend: remove redundant trace event checks 2025-10-01 11:22:07 -04:00
simple.py tracetool/backend: remove redundant trace event checks 2025-10-01 11:22:07 -04:00
syslog.py tracetool/backend: remove redundant trace event checks 2025-10-01 11:22:07 -04:00
ust.py tracetool: add SPDX headers 2025-10-01 11:22:07 -04:00