Received: from eggs.gnu.org ([2001:4830:134:3::10]:55237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJPOb-0006TG-8c for qemu-devel@nongnu.org; Mon, 18 Aug 2014 12:03:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJPOT-0000to-1i for qemu-devel@nongnu.org; Mon, 18 Aug 2014 12:02:57 -0400 Received: from roura.ac.upc.es ([147.83.33.10]:39523) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJPOS-0000tZ-MK for qemu-devel@nongnu.org; Mon, 18 Aug 2014 12:02:48 -0400 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <87bnrhq1eb.fsf@fimbulvetr.bsc.es> <53F21906.2040204@redhat.com> Date: Mon, 18 Aug 2014 18:02:45 +0200 In-Reply-To: <53F21906.2040204@redhat.com> (Eric Blake's message of "Mon, 18 Aug 2014 09:17:26 -0600") Message-ID: <87bnrh23bu.fsf@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Tracing HMP commands List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org, Stefan Hajnoczi , Luiz Capitulino Eric Blake writes: > On 08/18/2014 09:10 AM, Llu=C3=ADs Vilanova wrote: >> Hi! I've been writing some QAPI/QMP commands to control tracing state, a= nd I was >> wondering if the HMP commands (trace-event, trace-file and trace-events)= can be >> dropped, or whether I should adapt them to the new ones. > We've already documented that HMP is an unstable interface; if it is > easier for you to drop commands than to retrofit them to cover new QMP, > it won't hurt my feelings (libvirt only uses QMP). It boils down to a > judgment call of whether the ease of convenience for a developer's human > interface outweighs the burden of maintenance. So far I've added the QAPI commands: trace-event-get-state # returns a list of event state descripto= rs trace-event-set-state # has no return value They are used in the corresponding HMP commands "info trace-events" and "trace-event", respectively. Still, I have not figured out how to propagate= QMP errors to HMP, and I was wondering if I can just drop them even if they are simple to port (qmp-shell is quite convenient). What I have not ported is "trace-file", which only works for the simple bac= kend, and would probably require multiple QAPI commands. I'm in favour of just dropping this one, together with the backend code that exists only to handle this command (the st_* functions in "trace/simple.h" can then be static or dropped). 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