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: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH v5 03/11] block: add basic backup support to block driver
Date: Thu, 20 Jun 2013 14:06:55 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed, Jun 19, 2013 at 01:19:34PM +0200, Paolo Bonzini wrote:
> 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.

I need to respin anyway.  The only reason for DPRINTF() is that I
originally wanted to change as little as possible from the orginal
patch.  But we've gone so far we might as well do this too :).

Stefan



reply via email to

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