From: Eric Blake <eblake@redhat.com>
To: "Lluís Vilanova" <vilanova@ac.upc.edu>, qemu-devel@nongnu.org
Cc: Michael Roth <mdroth@linux.vnet.ibm.com>,
Markus Armbruster <armbru@redhat.com>,
Stefan Hajnoczi <stefanha@redhat.com>,
Luiz Capitulino <lcapitulino@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v4 1/2] trace: [qmp] Add commands to query and control event tracing state
Date: Wed, 24 Sep 2014 08:45:36 -0600 [thread overview]
Message-ID: <5422D910.9070503@redhat.com> (raw)
In-Reply-To: <20140825111957.31112.31733.stgit@fimbulvetr.bsc.es>
[-- Attachment #1: Type: text/plain, Size: 1418 bytes --]
On 08/25/2014 05:19 AM, Lluís Vilanova wrote:
> Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
> ---
> qapi-schema.json | 3 ++
> qapi/trace.json | 65 ++++++++++++++++++++++++++++++++++++++++++++
> qmp-commands.hx | 35 ++++++++++++++++++++++++
> trace/Makefile.objs | 1 +
> trace/qmp.c | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++
> 5 files changed, 179 insertions(+)
> create mode 100644 qapi/trace.json
> create mode 100644 trace/qmp.c
> +##
> +# @trace-event-set-state:
> +#
> +# Set the dynamic tracing state of events.
> +#
> +# @name: Event name pattern (case-sensitive glob).
> +# @enable: Whether to enable tracing.
> +# @ignore-unavailable: #optional Do not match unavailable events with @name.
Would be nice to state that this bool defaults to false (at least,
that's my assumption).
> +
> +Query the state of events.
> +
> +Example:
> +
> +-> { "execute": "trace-event-get-state", "arguments": { "name": "qemu_memalign" } }
> +<- { "return": [ { "name": "qemu_memalign", "state": "disabled" } ] }
It would be nice to use a glob in the "name" of the example, and show a
multi-element array as the result.
Those changes can be done in a followup patch, since Stefan has already
queued this patch.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 539 bytes --]
next prev parent reply other threads:[~2014-09-24 14:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-25 11:19 [Qemu-devel] [PATCH v4 0/2] trace: Trace control commands Lluís Vilanova
2014-08-25 11:19 ` [Qemu-devel] [PATCH v4 1/2] trace: [qmp] Add commands to query and control event tracing state Lluís Vilanova
2014-09-24 14:45 ` Eric Blake [this message]
2014-08-25 11:20 ` [Qemu-devel] [PATCH v4 2/2] trace: [hmp] Reimplement "trace-event" and "info trace-events" using QMP Lluís Vilanova
2014-09-08 20:03 ` [Qemu-devel] [PATCH v4 0/2] trace: Trace control commands Lluís Vilanova
2014-09-08 20:08 ` Luiz Capitulino
2014-09-24 13:33 ` Stefan Hajnoczi
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=5422D910.9070503@redhat.com \
--to=eblake@redhat.com \
--cc=armbru@redhat.com \
--cc=lcapitulino@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=vilanova@ac.upc.edu \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).