]> git.ipfire.org Git - thirdparty/qemu.git/commit
tracetool: add CHECK_TRACE_EVENT_GET_STATE
authorTanish Desai <tanishdesai37@gmail.com>
Mon, 29 Sep 2025 15:49:28 +0000 (17:49 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 1 Oct 2025 15:22:07 +0000 (11:22 -0400)
commit809caa0d40a853144c02456737ed1e47859b0308
tree4e0ea212454ab7e5e6e92a50972b9cba499a1d3e
parent02d4a4a674d45d41c9afd1fd161c14eca81f7a86
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>
scripts/tracetool/backend/__init__.py
scripts/tracetool/format/h.py