qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 3/3] trace: enable all events by default


From: Lluís
Subject: Re: [Qemu-devel] [PATCH v2 3/3] trace: enable all events by default
Date: Wed, 10 Nov 2010 20:57:34 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Blue Swirl writes:

> On Wed, Nov 10, 2010 at 5:59 PM, Lluís <address@hidden> wrote:
>> So, my patch is just a matter of having all events available _only_ when
>> you use a backend other than "nop".

> Then the default for simpletrace (and dtrace?) should also be disabled
> initial state. If you have 1000 tracepoints automatically enabled at
> start (with simpletrace, not nop), disabling all of them if you are
> only interested in a few of them is difficult.

That's how it is. The patch sets always ".state=0" in "simple", and
"dtrace" just does not do anything unless you plug something into the
probe (similarly with "ust").

The "problem" here is that when you use a backend other than "nop", all
events are available, but in an inactive state. So the burden is for the
person compiling to edit trace-events and disable the unwanted events.

I can leave all events with "disable" keyword set, but then the problem
is the other way around, where the person compiling will have to
manually select the desired events :)

That's the only thing I see, but there's no silver bullet here, and is
still there with the current implementation.

So my only objection is that "ust" with "disable" is able to wipe the
event out, while in "simple" and "dtrace" there is no way to wipe any
event out, plus "simple" has "early tracing" with "disable" and "dtrace"
just ignores "disable"... that's what I tried to address with the patch.

Summarizing, now "disable" wipes events out, and there is no way to set
"early tracing" from inside trace-events.


Lluis

-- 
 "And it's much the same thing with knowledge, for whenever you learn
 something new, the whole world becomes that much richer."
 -- The Princess of Pure Reason, as told by Norton Juster in The Phantom
 Tollbooth



reply via email to

[Prev in Thread] Current Thread [Next in Thread]