qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v5 03/11] block: add basic backup support to blo


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v5 03/11] block: add basic backup support to block driver
Date: Wed, 19 Jun 2013 13:19:34 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6

Il 19/06/2013 12:50, Kevin Wolf ha scritto:
>> > +
>> > +    DPRINTF("%s enter %s C%" PRId64 " %" PRId64 " %d\n",
>> > +            __func__, bdrv_get_device_name(bs), start, sector_num, 
>> > nb_sectors);
> Maybe put the first "%s" and __func__ directly into the DPRINTF macro?
> 

Or just use tracepoints.  backup_do_cow could definitely be one, and it
would subsume another DPRINTF ("backup_run loop").

hbitmap_get and block_job_completed are two other useful tracepoint that
is not present.

All that's left then are the DPRINTF for failed readv and writev, which
could also be useful in generic code (bdrv_co_*_done).

Can be done as a follow-up, of course.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]