[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 11/11] log: add "-d trace:PATTERN"
From: |
Lluís Vilanova |
Subject: |
Re: [Qemu-devel] [PATCH 11/11] log: add "-d trace:PATTERN" |
Date: |
Mon, 26 Oct 2015 20:23:11 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Eric Blake writes:
> On 10/26/2015 07:12 AM, Lluís Vilanova wrote:
>> Denis V Lunev writes:
>>
>>> From: Paolo Bonzini <address@hidden>
>>> This is a bit easier to use than "-trace" if you are also enabling
>>> other kinds of logging. It is also more discoverable for experienced
>>> QEMU users, and accessible from user-mode emulators.
>>
>> I'm not sure this should be added, since the same functionality is also
>> available through "-trace enable=<pattern>" (and the shortcut "-trace
>> <pattern>").
> Having more than one way to do something is not necessarily bad; it does
> imply more maintenance to keep both ways working, but if one way is more
> discoverable than the other it may be worth it.
Certainly true. I just find it confusing to have the same functionality
available through different forms.
>>
>> Also, I'd rather fold event name discovery into "-trace enable=?" (and the
>> shortcut "-trace ?"), mimicking the format already available for CPUs ("-cpu
>> ?").
>>
> If we do that, we should also support '-trace enable=help', because ? is
> a shell metacharacter, and we have been moving towards using 'help'
> rather than '?' to minimize the need for shell quoting when asking for help.
Oh, I wasn't aware of the "deprecation" of '?'. Then it certainly makes more
sense to use 'help'.
Thanks,
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
- [Qemu-devel] [PATCH 08/11] log: move qemu-log.c into util/ directory, (continued)
- [Qemu-devel] [PATCH 08/11] log: move qemu-log.c into util/ directory, Denis V. Lunev, 2015/10/26
- [Qemu-devel] [PATCH 06/11] trace: add "-trace help", Denis V. Lunev, 2015/10/26
- [Qemu-devel] [PATCH 09/11] trace: convert stderr backend to log, Denis V. Lunev, 2015/10/26
- [Qemu-devel] [PATCH 07/11] log: do not unnecessarily include qom/cpu.h, Denis V. Lunev, 2015/10/26
- [Qemu-devel] [PATCH 10/11] trace: switch default backend to "log", Denis V. Lunev, 2015/10/26
Re: [Qemu-devel] [PATCH v2 00/11] simplify usage of tracepoints, and connect them to logging, Stefan Hajnoczi, 2015/10/29