From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:34763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qz2IN-0002aH-Az for qemu-devel@nongnu.org; Thu, 01 Sep 2011 04:06:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qz2IL-0007e7-Q9 for qemu-devel@nongnu.org; Thu, 01 Sep 2011 04:06:43 -0400 Received: from mtagate7.uk.ibm.com ([194.196.100.167]:56349) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qz2IK-0007dS-Rq for qemu-devel@nongnu.org; Thu, 01 Sep 2011 04:06:41 -0400 Received: from d06nrmr1806.portsmouth.uk.ibm.com (d06nrmr1806.portsmouth.uk.ibm.com [9.149.39.193]) by mtagate7.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p8186dZU027336 for ; Thu, 1 Sep 2011 08:06:39 GMT Received: from d06av09.portsmouth.uk.ibm.com (d06av09.portsmouth.uk.ibm.com [9.149.37.250]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p8186amM1695900 for ; Thu, 1 Sep 2011 09:06:38 +0100 Received: from d06av09.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p8186Vvv020217 for ; Thu, 1 Sep 2011 02:06:32 -0600 From: Stefan Hajnoczi Date: Thu, 1 Sep 2011 09:06:23 +0100 Message-Id: <1314864386-14202-13-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1314864386-14202-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1314864386-14202-1-git-send-email-stefanha@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 12/15] trace: [simple] disable all trace points by default List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori , =?UTF-8?q?Llu=C3=ADs?= , =?UTF-8?q?Llu=C3=ADs=20Vilanova?= From: Llu=C3=ADs Note that this refers to the backend-specific state (whether the output m= ust be generated), not the event "disabled" property (which always uses the "nop= " backend). Signed-off-by: Llu=C3=ADs Vilanova --- docs/tracing.txt | 11 ++++++++--- scripts/tracetool | 9 ++------- trace-events | 3 --- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/docs/tracing.txt b/docs/tracing.txt index 85793cf..d1d4e8c 100644 --- a/docs/tracing.txt +++ b/docs/tracing.txt @@ -12,11 +12,16 @@ for debugging, profiling, and observing execution. ./configure --trace-backend=3Dsimple make =20 -2. Run the virtual machine to produce a trace file: +2. Create a file with the events you want to trace: =20 - qemu ... # your normal QEMU invocation + echo bdrv_aio_readv > /tmp/events + echo bdrv_aio_writev >> /tmp/events =20 -3. Pretty-print the binary trace file: +3. Run the virtual machine to produce a trace file: + + qemu -trace events=3D/tmp/events ... # your normal QEMU invocation + +4. Pretty-print the binary trace file: =20 ./simpletrace.py trace-events trace-* =20 diff --git a/scripts/tracetool b/scripts/tracetool index e2cf117..c740080 100755 --- a/scripts/tracetool +++ b/scripts/tracetool @@ -221,15 +221,10 @@ EOF =20 linetoc_simple() { - local name state + local name name=3D$(get_name "$1") - if has_property "$1" "disable"; then - state=3D"0" - else - state=3D"1" - fi cat < must be a valid as a C function name. # --=20 1.7.5.4