From: Blue Swirl <blauwirbel@gmail.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] scsi: fix tracing of scsi requests with simple backend
Date: Sun, 5 Jun 2011 18:25:55 +0300 [thread overview]
Message-ID: <BANLkTik=m1Mq7SgprfaNeTQZDu-Hiu4XSQ@mail.gmail.com> (raw)
In-Reply-To: <1307105826-21517-1-git-send-email-pbonzini@redhat.com>
Thanks, applied.
On Fri, Jun 3, 2011 at 3:57 PM, Paolo Bonzini <pbonzini@redhat.com> wrote:
> The simple backend only supports a maximum of 6 arguments. Split the
> scsi_req_parsed event in two parts to cope with the limit.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> hw/scsi-bus.c | 6 +++++-
> trace-events | 3 ++-
> 2 files changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/hw/scsi-bus.c b/hw/scsi-bus.c
> index 837f24e..ad6a730 100644
> --- a/hw/scsi-bus.c
> +++ b/hw/scsi-bus.c
> @@ -413,7 +413,11 @@ int scsi_req_parse(SCSIRequest *req, uint8_t *buf)
> scsi_req_xfer_mode(req);
> req->cmd.lba = scsi_req_lba(req);
> trace_scsi_req_parsed(req->dev->id, req->lun, req->tag, buf[0],
> - req->cmd.mode, req->cmd.xfer, req->cmd.lba);
> + req->cmd.mode, req->cmd.xfer);
> + if (req->cmd.lba != -1) {
> + trace_scsi_req_parsed_lba(req->dev->id, req->lun, req->tag, buf[0],
> + req->cmd.lba);
> + }
> return 0;
> }
>
> diff --git a/trace-events b/trace-events
> index 3137a15..e0e9574 100644
> --- a/trace-events
> +++ b/trace-events
> @@ -210,7 +210,8 @@ disable scsi_req_alloc(int target, int lun, int tag) "target %d lun %d tag %d"
> disable scsi_req_data(int target, int lun, int tag, int len) "target %d lun %d tag %d len %d"
> disable scsi_req_dequeue(int target, int lun, int tag) "target %d lun %d tag %d"
> disable scsi_req_continue(int target, int lun, int tag) "target %d lun %d tag %d"
> -disable scsi_req_parsed(int target, int lun, int tag, int cmd, int mode, int xfer, uint64_t lba) "target %d lun %d tag %d command %d dir %d length %d lba %"PRIu64""
> +disable scsi_req_parsed(int target, int lun, int tag, int cmd, int mode, int xfer) "target %d lun %d tag %d command %d dir %d length %d"
> +disable scsi_req_parsed_lba(int target, int lun, int tag, int cmd, uint64_t lba) "target %d lun %d tag %d command %d lba %"PRIu64""
> disable scsi_req_parse_bad(int target, int lun, int tag, int cmd) "target %d lun %d tag %d command %d"
>
> # vl.c
> --
> 1.7.4.4
>
>
>
prev parent reply other threads:[~2011-06-05 15:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-03 12:57 [Qemu-devel] [PATCH] scsi: fix tracing of scsi requests with simple backend Paolo Bonzini
2011-06-05 15:25 ` Blue Swirl [this message]
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='BANLkTik=m1Mq7SgprfaNeTQZDu-Hiu4XSQ@mail.gmail.com' \
--to=blauwirbel@gmail.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/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).