On Mon, Oct 05, 2026 at 01:08:51PM +0100, Daniel P. Berrangé wrote:
> If emitting a trace event requires computation for the parameters
> passed to the probe, the callers should guard that computation
> with trace_event_by_state_backends(), which is a macro expanding
> to the a check of the "TRACE_...._DSTATE()" expression. For the

s/the a/a/

> log backend this should include a check for LOG_TRACE being
> present in the configured log level.
> 
> Signed-off-by: Daniel P. BerrangĂ© <[email protected]>
> ---
>  scripts/tracetool/backend/log.py | 24 +++++++++++++++++-----
>  tests/tracetool/all.h            | 34 +++++++++++++++++++-------------
>  tests/tracetool/all.rs           | 16 +++++++++++----
>  tests/tracetool/log.h            | 20 +++++++++----------
>  tests/tracetool/log.rs           |  6 ++++--
>  5 files changed, 65 insertions(+), 35 deletions(-)

Reviewed-by: Eric Blake <[email protected]>

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.
Virtualization:  qemu.org | libguestfs.org


Reply via email to