From: Sam Li <faithilikerun@gmail.com>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>
Cc: qemu-devel@nongnu.org,
Raphael Norwitz <raphael.norwitz@nutanix.com>,
stefanha@redhat.com, damien.lemoal@opensource.wdc.com,
"Michael S. Tsirkin" <mst@redhat.com>,
Kevin Wolf <kwolf@redhat.com>,
hare@suse.de, Hanna Reitz <hreitz@redhat.com>,
qemu-block@nongnu.org, dmitry.fomichev@wdc.com
Subject: Re: [RFC v4 3/3] virtio-blk: add some trace events for zoned emulation
Date: Fri, 4 Nov 2022 09:14:03 +0800 [thread overview]
Message-ID: <CAAAx-8JEHsDBOtGU6hKwJAgBHHPFD4ASgz7kpRC604FFLoZ4Zg@mail.gmail.com> (raw)
In-Reply-To: <ef061624-f599-3020-50aa-57b8e049daa9@linaro.org>
Philippe Mathieu-Daudé <philmd@linaro.org> 于2022年11月3日周四 05:21写道:
>
> Hi,
>
> On 30/10/22 10:32, Sam Li wrote:
> > Signed-off-by: Sam Li <faithilikerun@gmail.com>
> > ---
> > hw/block/trace-events | 7 +++++++
> > hw/block/virtio-blk.c | 12 ++++++++++++
> > 2 files changed, 19 insertions(+)
> >
> > diff --git a/hw/block/trace-events b/hw/block/trace-events
> > index 2c45a62bd5..f47da6fcd4 100644
> > --- a/hw/block/trace-events
> > +++ b/hw/block/trace-events
> > @@ -44,9 +44,16 @@ pflash_write_unknown(const char *name, uint8_t cmd) "%s: unknown command 0x%02x"
> > # virtio-blk.c
> > virtio_blk_req_complete(void *vdev, void *req, int status) "vdev %p req %p status %d"
> > virtio_blk_rw_complete(void *vdev, void *req, int ret) "vdev %p req %p ret %d"
> > +virtio_blk_zone_report_complete(void *vdev, void *req, unsigned int nr_zones, int ret) "vdev %p req %p nr_zones %d ret %d"
>
> " ... nr_zones %u ..."
>
> > +virtio_blk_zone_mgmt_complete(void *vdev, void *req, int ret) "vdev %p req %p ret %d"
> > +virtio_blk_zone_append_complete(void *vdev, void *req, int64_t sector, int ret) "vdev %p req %p, append sector 0x%" PRIx64 " ret %d"
> > virtio_blk_handle_write(void *vdev, void *req, uint64_t sector, size_t nsectors) "vdev %p req %p sector %"PRIu64" nsectors %zu"
> > virtio_blk_handle_read(void *vdev, void *req, uint64_t sector, size_t nsectors) "vdev %p req %p sector %"PRIu64" nsectors %zu"
> > virtio_blk_submit_multireq(void *vdev, void *mrb, int start, int num_reqs, uint64_t offset, size_t size, bool is_write) "vdev %p mrb %p start %d num_reqs %d offset %"PRIu64" size %zu is_write %d"
>
> " ... is_write %u"
>
> > +virtio_blk_handle_zone_report(void *vdev, void *req, int64_t sector, unsigned int nr_zones) "vdev %p req %p sector 0x%" PRIx64 " nr_zones %d"
>
> " ... nr_zones %u"
Thanks!
>
> > +virtio_blk_handle_zone_mgmt(void *vdev, void *req, uint8_t op, int64_t sector, int64_t len) "vdev %p req %p op 0x%x sector 0x%" PRIx64 " len 0x%" PRIx64 ""
> > +virtio_blk_handle_zone_reset_all(void *vdev, void *req, int64_t sector, int64_t len) "vdev %p req %p sector 0x%" PRIx64 " cap 0x%" PRIx64 ""
> > +virtio_blk_handle_zone_append(void *vdev, void *req, int64_t sector) "vdev %p req %p, append sector 0x%" PRIx64 ""
>
> You can probably drop the trailing "".
It is necessary for formatted output as %" PRIx64 ".
Sam
prev parent reply other threads:[~2022-11-04 4:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-30 9:32 [RFC v4 0/3] Add zoned storage emulation to virtio-blk driver Sam Li
2022-10-30 9:32 ` [RFC v4 1/3] include: update virtio_blk headers Sam Li
2022-10-30 9:32 ` [RFC v4 2/3] virtio-blk: add zoned storage emulation for zoned devices Sam Li
2022-11-02 20:58 ` Stefan Hajnoczi
2022-11-04 1:22 ` Sam Li
2022-10-30 9:32 ` [RFC v4 3/3] virtio-blk: add some trace events for zoned emulation Sam Li
2022-11-02 21:01 ` Stefan Hajnoczi
2022-11-02 21:21 ` Philippe Mathieu-Daudé
2022-11-04 1:14 ` Sam Li [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=CAAAx-8JEHsDBOtGU6hKwJAgBHHPFD4ASgz7kpRC604FFLoZ4Zg@mail.gmail.com \
--to=faithilikerun@gmail.com \
--cc=damien.lemoal@opensource.wdc.com \
--cc=dmitry.fomichev@wdc.com \
--cc=hare@suse.de \
--cc=hreitz@redhat.com \
--cc=kwolf@redhat.com \
--cc=mst@redhat.com \
--cc=philmd@linaro.org \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=raphael.norwitz@nutanix.com \
--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 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).