On Fri, Aug 22, 2025 at 02:26:45PM +0200, Paolo Bonzini wrote:
> From: Tanish Desai <[email protected]>
> 
> 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 <[email protected]>
> Signed-off-by: Paolo Bonzini <[email protected]>
> ---
>  scripts/tracetool/backend/__init__.py | 39 ++++++++++++++++++---------
>  scripts/tracetool/format/h.py         | 11 +++++---
>  2 files changed, 35 insertions(+), 15 deletions(-)

Reviewed-by: Stefan Hajnoczi <[email protected]>

Attachment: signature.asc
Description: PGP signature

Reply via email to