All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Lluís Vilanova" <vilanova@ac.upc.edu>
To: Eric Blake <eblake@redhat.com>
Cc: qemu-devel@nongnu.org, Stefan Hajnoczi <stefanha@redhat.com>,
	Luiz Capitulino <lcapitulino@redhat.com>
Subject: Re: [Qemu-devel] Tracing HMP commands
Date: Mon, 18 Aug 2014 18:02:45 +0200	[thread overview]
Message-ID: <87bnrh23bu.fsf@fimbulvetr.bsc.es> (raw)
In-Reply-To: <53F21906.2040204@redhat.com> (Eric Blake's message of "Mon, 18 Aug 2014 09:17:26 -0600")

Eric Blake writes:

> On 08/18/2014 09:10 AM, Lluís Vilanova wrote:
>> Hi! I've been writing some QAPI/QMP commands to control tracing state, and 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 <pattern> # returns a list of event state descriptors
  trace-event-set-state <pattern> <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 backend,
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

-- 
 "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	other threads:[~2014-08-18 16:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-18 15:10 [Qemu-devel] Tracing HMP commands Lluís Vilanova
2014-08-18 15:17 ` Eric Blake
2014-08-18 16:02   ` Lluís Vilanova [this message]
2014-08-18 15:17 ` Luiz Capitulino

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bnrh23bu.fsf@fimbulvetr.bsc.es \
    --to=vilanova@ac.upc.edu \
    --cc=eblake@redhat.com \
    --cc=lcapitulino@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.