Received: from [140.186.70.92] (port=38378 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8pjm-0008Vx-7U for qemu-devel@nongnu.org; Thu, 21 Oct 2010 03:38:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8pjk-0003Ph-NY for qemu-devel@nongnu.org; Thu, 21 Oct 2010 03:38:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:22792) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8pjk-0003Oz-Gy for qemu-devel@nongnu.org; Thu, 21 Oct 2010 03:38:56 -0400 Date: Thu, 21 Oct 2010 08:38:38 +0100 From: "Richard W.M. Jones" Subject: Re: Tracing block devices (was: Re: [Qemu-devel] Static tracepoint control via trace-event) Message-ID: <20101021073838.GE4150@amd.home.annexia.org> References: <4CBD9838.6040004@siemens.com> <20101019133659.GH23535@redhat.com> <4CBDA448.1040108@siemens.com> <20101019142951.GB32682@amd.home.annexia.org> <20101021052027.GA15430@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101021052027.GA15430@lst.de> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christoph Hellwig Cc: qemu-devel , Jan Kiszka , Stefan Hajnoczi , Stefan Hajnoczi On Thu, Oct 21, 2010 at 07:20:27AM +0200, Christoph Hellwig wrote: > On Tue, Oct 19, 2010 at 03:29:51PM +0100, Richard W.M. Jones wrote: > > On Tue, Oct 19, 2010 at 03:59:36PM +0200, Jan Kiszka wrote: > > > Once we have "-trace events=...", defining the list of active > > > tracepoints before starting qemu will be trivial (e.g. via a config > > > file). Of course, this requires that all tracepoints are built-in... > > > > Sorry that I've not been following this very closely, but does this > > sort of thing allow tracing reads and writes to block devices? Am I > > right in thinking that if a tracepoint existed in the right place, one > > could get a log file from that which could be post-processed in > > another tool? > > I don't think it does. But I have a patch that I need to update which > outputs traces in the form of the Linux blktrace block I/O tracing tool, > which does exactly what you need (and more). You can simply use > all the blktrace-enabled tools, including seekwatcher on it. It's on the to-do list to use blktrace instead, so a patch which changed qemu to produce blktrace-like output would be useful. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/