Received: from eggs.gnu.org ([2001:4830:134:3::10]:45077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKAf3-0008CP-MP for qemu-devel@nongnu.org; Wed, 20 Aug 2014 14:31:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKAex-000595-1u for qemu-devel@nongnu.org; Wed, 20 Aug 2014 14:31:05 -0400 Received: from roura.ac.upc.es ([147.83.33.10]:46845) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKAew-00058p-MQ for qemu-devel@nongnu.org; Wed, 20 Aug 2014 14:30:58 -0400 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <20140820153431.15111.3916.stgit@fimbulvetr.bsc.es> <87ppfvqfao.fsf@blackfin.pond.sub.org> Date: Wed, 20 Aug 2014 20:30:55 +0200 In-Reply-To: <87ppfvqfao.fsf@blackfin.pond.sub.org> (Markus Armbruster's message of "Wed, 20 Aug 2014 18:47:11 +0200") Message-ID: <87r40bko80.fsf@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2] trace: [qmp] Add QAPI/QMP commands to query and control event tracing state List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: qemu-devel@nongnu.org, Stefan Hajnoczi , Luiz Capitulino Markus Armbruster writes: > Llu=C3=ADs Vilanova 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 inte= rnal trace event identifier number in the QMP interface. Also, "trace-file" cann= ot be implemented on top of the current QMP commands, and is specific to the "sim= ple" tracing backend. >>=20 >> Signed-off-by: Llu=C3=ADs Vilanova >> --- >> 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 --=20 "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