qemu-cr16/scripts/tracetool/format
Tanish Desai 809caa0d40 tracetool: add CHECK_TRACE_EVENT_GET_STATE
Add a new attribute CHECK_TRACE_EVENT_GET_STATE to the backends.
When present and True, the code generated by the generate function
is wrapped in a conditional that checks whether the event is enabled;
this removes the need for repeating the same conditional in multiple
backends.

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-7-pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2025-10-01 11:22:07 -04:00
..
__init__.py tracetool: add SPDX headers 2025-10-01 11:22:07 -04:00
c.py tracetool: add SPDX headers 2025-10-01 11:22:07 -04:00
d.py tracetool: add SPDX headers 2025-10-01 11:22:07 -04:00
h.py tracetool: add CHECK_TRACE_EVENT_GET_STATE 2025-10-01 11:22:07 -04:00
log_stap.py tracetool: add SPDX headers 2025-10-01 11:22:07 -04:00
simpletrace_stap.py tracetool: add SPDX headers 2025-10-01 11:22:07 -04:00
stap.py tracetool: add SPDX headers 2025-10-01 11:22:07 -04:00
ust_events_c.py tracetool: add SPDX headers 2025-10-01 11:22:07 -04:00
ust_events_h.py tracetool: add SPDX headers 2025-10-01 11:22:07 -04:00