On 05/14/2016 06:01 AM, Denis V. Lunev wrote: > Signed-off-by: Denis V. Lunev <d...@openvz.org> > CC: Kevin Wolf <kw...@redhat.com> > --- > block/qcow2.c | 5 +++++ > trace-events | 2 ++ > 2 files changed, 7 insertions(+) > > diff --git a/block/qcow2.c b/block/qcow2.c > index 9a54bbd..97bf870 100644 > --- a/block/qcow2.c > +++ b/block/qcow2.c > @@ -2435,6 +2435,9 @@ static coroutine_fn int > qcow2_co_write_zeroes(BlockDriverState *bs, > int head = sector_num % s->cluster_sectors; > int tail = (sector_num + nb_sectors) % s->cluster_sectors; > > + trace_qcow2_write_zeroes_start_req(qemu_coroutine_self(), sector_num, > + nb_sectors); > +
Can we trace these by byte locations rather than by sector count? Ultimately, I think we want to move write_zeroes to a byte-based interface, even if we still assert internally that it is at least sector-aligned. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature