Received: from [140.186.70.92] (port=46953 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PG6t3-0000Z9-TC for qemu-devel@nongnu.org; Wed, 10 Nov 2010 04:22:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PG6t2-00027W-PK for qemu-devel@nongnu.org; Wed, 10 Nov 2010 04:22:37 -0500 Received: from mtagate3.de.ibm.com ([195.212.17.163]:35232) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PG6t2-000266-68 for qemu-devel@nongnu.org; Wed, 10 Nov 2010 04:22:36 -0500 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate3.de.ibm.com (8.13.1/8.13.1) with ESMTP id oAA9MLSD000478 for ; Wed, 10 Nov 2010 09:22:21 GMT Received: from d12av01.megacenter.de.ibm.com (d12av01.megacenter.de.ibm.com [9.149.165.212]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id oAA9MJpa3182612 for ; Wed, 10 Nov 2010 10:22:21 +0100 Received: from d12av01.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av01.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id oAA9MI9V029313 for ; Wed, 10 Nov 2010 10:22:18 +0100 Date: Wed, 10 Nov 2010 09:22:18 +0000 From: Stefan Hajnoczi Subject: Re: [Qemu-devel] [PATCH] trace: Trace SCSI request lifecycle Message-ID: <20101110092217.GB2816@stefan-thinkpad.transitives.com> References: <1289209443-2528-1-git-send-email-stefanha@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: Stefan Hajnoczi , qemu-devel@nongnu.org On Tue, Nov 09, 2010 at 05:47:24PM +0000, Blue Swirl wrote: > On Mon, Nov 8, 2010 at 9:30 PM, Stefan Hajnoczi wr= ote: > > On Mon, Nov 8, 2010 at 7:18 PM, Blue Swirl wro= te: > >> On Mon, Nov 8, 2010 at 9:44 AM, Stefan Hajnoczi > >> wrote: > >>> This patch adds trace events for SCSI request allocation, freeing, = CDB > >>> parsing, read, and write. =A0These trace events can be used to inst= rument > >>> the SCSI request lifecycle. > >> > >> How about converting also the DPRINTFs in hw/scsi-disk.c to tracepoi= nts? > > > > Good idea. =A0I don't understand the SCSI emulation well enough to tr= ace > > the rest, so I couldn't do much besides a mechanical conversion. >=20 > I also did only a mechanical conversion of Sparc32 devices earlier. I > thought about removing or merging some of them, but then I considered > that more tracepoints may be better to fewer. Is there a downside? >=20 > There's a difference in the viewpoints. DPRINTFs may have been > designed with debugging internal logic in mind. Alternatively we could > be interested in only tracing the external interfaces. I don't think > these views are in conflict since tracepoints are much more precise > than DPRINTFs. Having too many trace events makes it harder to choose which ones to look at. But when distros build in trace events by default we'll be thankful for the ones we have available in production. There needs to be a balance between too much noise and not enough information. I'll send a patch to cover more of SCSI soon. Stefan