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