From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=56300 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8DLB-0001tt-DS for qemu-devel@nongnu.org; Tue, 19 Oct 2010 10:39:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8DLA-0006fh-BL for qemu-devel@nongnu.org; Tue, 19 Oct 2010 10:39:01 -0400 Received: from thoth.sbs.de ([192.35.17.2]:23094) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8DLA-0006f5-2q for qemu-devel@nongnu.org; Tue, 19 Oct 2010 10:39:00 -0400 Message-ID: <4CBDAD79.7060901@siemens.com> Date: Tue, 19 Oct 2010 16:38:49 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <4CBD9838.6040004@siemens.com> <20101019133659.GH23535@redhat.com> <4CBDA448.1040108@siemens.com> <20101019142951.GB32682@amd.home.annexia.org> In-Reply-To: <20101019142951.GB32682@amd.home.annexia.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: Tracing block devices List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Richard W.M. Jones" Cc: Stefan Hajnoczi , Stefan Hajnoczi , qemu-devel Am 19.10.2010 16:29, 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? > > cf: > http://rwmj.wordpress.com/2010/10/05/visualizing-reads-writes-and-alignment/#content > > Rich. > Yes. The block layer is instrumented, not sure if already sufficiently, but you may simply want to try the simpletrace backend and inspect the result via its postprocessor (simpletrace.py). Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux