From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
To: Harsh Prateek Bora <harsh@linux.vnet.ibm.com>, qemu-devel@nongnu.org
Cc: stefanha@gmail.com
Subject: Re: [Qemu-devel] [PATCH 1/2] Introduce tracing for 9p pdu handlers
Date: Fri, 30 Sep 2011 10:56:58 +0530 [thread overview]
Message-ID: <8739fer465.fsf@skywalker.in.ibm.com> (raw)
In-Reply-To: <1317299989-30571-2-git-send-email-harsh@linux.vnet.ibm.com>
On Thu, 29 Sep 2011 18:09:48 +0530, Harsh Prateek Bora <harsh@linux.vnet.ibm.com> wrote:
> Plan is to replace the existing debug infrastructure with Qemu tracing
> infrastructure so that user can dynamically enable/disable trace events and
> therefore a meaningful trace log can be generated which can be further
> filtered using analysis script.
>
> Note: Because of current simpletrace limitations, the trace events are
> logging at max 6 args, however, once the more args are supported, we can
> change trace events to log more info as well. Also, This initial patch only
> provides a replacement for existing debug infra. More trace events to be
> added later for newly added handlers and sub-routines.
>
> Signed-off-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com>
> ---
> hw/9pfs/virtio-9p.c | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++
> trace-events | 47 ++++++++++++++++++++++++++++++++++++++
> 2 files changed, 109 insertions(+), 0 deletions(-)
>
> diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c
> index 1d1933f..6ee498f 100644
> --- a/hw/9pfs/virtio-9p.c
> +++ b/hw/9pfs/virtio-9p.c
> @@ -20,6 +20,7 @@
> #include "virtio-9p-debug.h"
> #include "virtio-9p-xattr.h"
> #include "virtio-9p-coth.h"
> +#include "trace.h"
>
> int debug_9p_pdu;
> int open_fd_hw;
> @@ -977,6 +978,7 @@ static void complete_pdu(V9fsState *s, V9fsPDU *pdu, ssize_t len)
> if (s->proto_version == V9FS_PROTO_2000L) {
> id = P9_RLERROR;
> }
> + trace_complete_pdu(pdu->tag, pdu->id, id); /* Trace ERROR */
> }
>
> /* fill out the header */
> @@ -1286,6 +1288,7 @@ static void v9fs_version(void *opaque)
> size_t offset = 7;
>
> pdu_unmarshal(pdu, offset, "ds", &s->msize, &version);
> + trace_v9fs_version1(pdu->tag, pdu->id, s->msize, version.data);
Can this be named trace_v9fs_version
>
> if (!strcmp(version.data, "9P2000.u")) {
> s->proto_version = V9FS_PROTO_2000U;
> @@ -1296,6 +1299,8 @@ static void v9fs_version(void *opaque)
> }
>
> offset += pdu_marshal(pdu, offset, "ds", s->msize, &version);
> + trace_v9fs_version2(pdu->tag, pdu->id, s->msize, version.data);
> +
and this one trace_v9fs_version_return
-aneesh
next prev parent reply other threads:[~2011-09-30 5:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-29 12:39 [Qemu-devel] [RFC PATCH 0/2] Replace 9p debug infrastructure with Qemu Tracing Harsh Prateek Bora
2011-09-29 12:39 ` [Qemu-devel] [PATCH 1/2] Introduce tracing for 9p pdu handlers Harsh Prateek Bora
2011-09-30 5:26 ` Aneesh Kumar K.V [this message]
2011-09-29 12:39 ` [Qemu-devel] [PATCH 2/2] Remove virtio-9p-debug.* infra since we are using Qemu Tracing now Harsh Prateek Bora
2011-09-30 5:29 ` Aneesh Kumar K.V
2011-09-29 17:16 ` [Qemu-devel] [RFC PATCH 0/2] Replace 9p debug infrastructure with Qemu Tracing Stefan Hajnoczi
2011-09-30 10:56 ` Harsh Bora
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=8739fer465.fsf@skywalker.in.ibm.com \
--to=aneesh.kumar@linux.vnet.ibm.com \
--cc=harsh@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.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.