qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [RFC] tracing: consistent usage of "disable" in "trace-events"
Date: Mon, 8 Nov 2010 15:25:56 +0000	[thread overview]
Message-ID: <20101108152556.GU26714@redhat.com> (raw)
In-Reply-To: <8762w7512w.fsf@ginnungagap.bsc.es>

On Mon, Nov 08, 2010 at 03:42:15PM +0100, Lluís wrote:
> On the current implementation, the "disable" keyword in "trace-events"
> has different semantics, depending on the backend:
> 
> * nop    : ignored (not a problem)
> * simple : enables tracing, but sets dynamic state to disable
> * ust    : disables tracing (uses nop backend)
> * dtrace : same as simple
> 
> Would it be possible to just use nop whenever the event is disabled in
> trace-events? If you agree I can cook the patch, as it's pretty simple.

I don't particularly see the point of the 'disable' keyword existing at
all, unless there are performance implications for a particular trace 
backend. For the DTrace backend I strip & ignore the disable keyword
because probes that are compiled in, reduce to a inline conditional 
check that has no serious overhead when no trace client is active.

Regards,
Daniel
-- 
|: Red Hat, Engineering, London    -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :|
|: http://autobuild.org        -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

  reply	other threads:[~2010-11-08 15:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-08 14:42 [Qemu-devel] [RFC] tracing: consistent usage of "disable" in "trace-events" Lluís
2010-11-08 15:25 ` Daniel P. Berrange [this message]
2010-11-08 15:55   ` Lluís
2010-11-08 16:02     ` Daniel P. Berrange
2010-11-08 16:38       ` Lluís

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=20101108152556.GU26714@redhat.com \
    --to=berrange@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).