All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@redhat.com>
To: "Daniel P. Berrangé" <berrange@redhat.com>
Cc: qemu-devel@nongnu.org, "Paolo Bonzini" <pbonzini@redhat.com>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>
Subject: Re: [PATCH v3 23/24] trace: remove parsing of "disable" event property
Date: Tue, 20 Oct 2026 16:10:05 -0400	[thread overview]
Message-ID: <20261020201005.GB20810@shajnocz.csb> (raw)
In-Reply-To: <20261005120855.421973-24-berrange@redhat.com>

On Mon, Oct 05, 2026 at 01:08:54PM +0100, Daniel P. Berrangé wrote:
> diff --git a/docs/devel/tracing.rst b/docs/devel/tracing.rst
> index f4557ee20e4..f94063587fa 100644
> --- a/docs/devel/tracing.rst
> +++ b/docs/devel/tracing.rst
> @@ -366,30 +366,14 @@ To facilitate simple usage of systemtap where there merely needs to be printf
>  logging of certain probes, a helper script "qemu-trace-stap" is provided.
>  Consult its manual page for guidance on its usage.
>  
> -Trace event properties
> +Trace event conditions
>  ======================
>  
> -Each event in the "trace-events-all" file can be prefixed with a space-separated
> -list of zero or more of the following event properties.
> -
> -"disable"
> ----------
> -
> -If a specific trace event is going to be invoked a huge number of times, this
> -might have a noticeable performance impact even when the event is
> -programmatically disabled.
> -
> -In this case you should declare such event with the "disable" property. This
> -will effectively disable the event at compile time (by using the "nop" backend),
> -thus having no performance impact at all on regular builds (i.e., unless you
> -edit the "trace-events-all" file).
> -
> -In addition, there might be cases where relatively complex computations must be
> +There might be cases where relatively complex computations must be
>  performed to generate values that are only used as arguments for a trace
>  function. In these cases you can use 'trace_event_get_state_backends()' to
> -guard such computations, so they are skipped if the event has been either
> -compile-time disabled or run-time disabled. If the event is compile-time
> -disabled, this check will have no performance impact.
> +guard such computations, so they are skipped if the event is not currently
> +enabled:
>  
>  ::
>  

The nop tracer section still mentions the disable property:

  Nop
  ---
  
  The "nop" backend generates empty trace event functions so that the compiler
  can optimize out trace events completely.  This imposes no performance
  penalty.
  
  Note that regardless of the selected trace backend, events with the "disable"
  property will be generated with the "nop" backend.

There are also doc comments in trace/control.h that still mention the
disable property:

  /**
   * trace_event_get_state_backends:
   * @id: Event identifier name.
   *
   * Get the tracing state of an event from all
   * compiled-in backends.
   *
   * If the event has the disabled property, the check will have no performance
   * impact.
   *
   * Returns: true if at least one backend has the event enabled and the event
   * does not have the disabled property.
   */



  reply	other threads:[~2026-10-20 20:10 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-05 12:08 [PATCH v3 00/24] trace: bugfixes, cleanups and optimizations Daniel P. Berrangé
2026-10-05 12:08 ` [PATCH v3 01/24] osdep: add 'ignore_value(x)' macro Daniel P. Berrangé
2026-10-21 21:24   ` Eric Blake
2026-10-05 12:08 ` [PATCH v3 02/24] trace: use 'ignore_value()' instead of a dummy variable Daniel P. Berrangé
2026-10-05 12:08 ` [PATCH v3 03/24] trace: fix handling of char** in UST backend Daniel P. Berrangé
2026-10-05 12:08 ` [PATCH v3 04/24] hw/xen: replace "long unsigned int" with "unsigned long " for dtrace Daniel P. Berrangé
2026-10-05 12:08 ` [PATCH v3 05/24] trace: block use of "long int" " Daniel P. Berrangé
2026-10-05 12:08 ` [PATCH v3 06/24] trace: drop unused trace_event_set_state_dynamic_init() Daniel P. Berrangé
2026-10-05 12:08 ` [PATCH v3 07/24] trace: remove obsolete references to vcpu property Daniel P. Berrangé
2026-10-05 12:08 ` [PATCH v3 08/24] trace: drop 'id' from TraceEvent struct when not required Daniel P. Berrangé
2026-10-05 12:08 ` [PATCH v3 09/24] trace: change "DSTATE" variables from uint16_t to uint8_t Daniel P. Berrangé
2026-10-05 12:08 ` [PATCH v3 10/24] trace: add testing of 'nop' trace backend Daniel P. Berrangé
2026-10-05 12:08 ` [PATCH v3 11/24] trace: don't emit TraceEvent structs when 'nop' backend is used Daniel P. Berrangé
2026-10-05 12:08 ` [PATCH v3 12/24] trace: add test of generation with all backends enabled Daniel P. Berrangé
2026-10-05 12:08 ` [PATCH v3 13/24] trace: remove redundant headers from simple trace backend code Daniel P. Berrangé
2026-10-05 12:08 ` [PATCH v3 14/24] trace: include probe name in Rust format strings Daniel P. Berrangé
2026-10-21 21:32   ` Eric Blake
2026-10-05 12:08 ` [PATCH v3 15/24] trace: add missing newline in ftrace Rust format string Daniel P. Berrangé
2026-10-21 21:33   ` Eric Blake
2026-10-05 12:08 ` [PATCH v3 16/24] trace: eliminate dupe trace_event_get_state_dynamic_by_id() calls Daniel P. Berrangé
2026-10-21 21:44   ` Eric Blake
2026-10-05 12:08 ` [PATCH v3 17/24] audio: remove mistaken use of trace_event_get_state() Daniel P. Berrangé
2026-10-05 12:08 ` [PATCH v3 18/24] hw/ppc: " Daniel P. Berrangé
2026-10-05 12:08 ` [PATCH v3 19/24] monitor: " Daniel P. Berrangé
2026-10-05 12:08 ` [PATCH v3 20/24] trace: include qemu_loglevel_mask(LOG_TRACE) in guard Daniel P. Berrangé
2026-10-21 21:54   ` Eric Blake
2026-10-05 12:08 ` [PATCH v3 21/24] trace: remove "disable" property from trace files Daniel P. Berrangé
2026-10-20 20:14   ` Stefan Hajnoczi
2026-10-05 12:08 ` [PATCH v3 22/24] trace: stop tracking static disabled state Daniel P. Berrangé
2026-10-05 12:08 ` [PATCH v3 23/24] trace: remove parsing of "disable" event property Daniel P. Berrangé
2026-10-20 20:10   ` Stefan Hajnoczi [this message]
2026-10-05 12:08 ` [PATCH v3 24/24] trace: remove 'trace_event_get_state' wrapper Daniel P. Berrangé
2026-10-20 20:15 ` [PATCH v3 00/24] trace: bugfixes, cleanups and optimizations Stefan Hajnoczi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261020201005.GB20810@shajnocz.csb \
    --to=stefanha@redhat.com \
    --cc=berrange@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=philmd@oss.qualcomm.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.