On Fri, Aug 22, 2025 at 02:26:45PM +0200, Paolo Bonzini wrote: > From: Tanish Desai <tanishdesa...@gmail.com> > > 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 <tanishdesa...@gmail.com> > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> > --- > scripts/tracetool/backend/__init__.py | 39 ++++++++++++++++++--------- > scripts/tracetool/format/h.py | 11 +++++--- > 2 files changed, 35 insertions(+), 15 deletions(-)
Reviewed-by: Daniel P. Berrangé <berra...@redhat.com> With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|