qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2] trace: [qmp] Add QAPI/QMP commands to query


From: Lluís Vilanova
Subject: Re: [Qemu-devel] [PATCH v2] trace: [qmp] Add QAPI/QMP commands to query and control event tracing state
Date: Wed, 20 Aug 2014 20:30:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Markus Armbruster writes:

> Lluís Vilanova <address@hidden> writes:
>> Also removes old "trace-event", "trace-file" and "info trace-events" HMP
>> commands.

> We gain the ability to control trace via QMP, but lose the ability to
> control it via HMP, correct?

Right. I can keep the HMP commands, but doing so requires exposing the internal
trace event identifier number in the QMP interface. Also, "trace-file" cannot be
implemented on top of the current QMP commands, and is specific to the "simple"
tracing backend.


>> 
>> Signed-off-by: Lluís Vilanova <address@hidden>
>> ---
>> hmp-commands.hx     |   35 -----------------------
>> monitor.c           |   61 ----------------------------------------
>> qapi-schema.json    |    3 ++
>> qmp-commands.hx     |   27 ++++++++++++++++++
>> trace/Makefile.objs |    1 +
>> trace/commands.json |   44 +++++++++++++++++++++++++++++

> There's no precedence for keeping schema bits anywhere but in qapi/.
> If we decide we want to keep them with their related C parts instead, we
> should do so consistently, not just for trace.

Ok, I'll move it to qapi.


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



reply via email to

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