From patchwork Thu Sep 1 08:06:23 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 112831 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C366BB6F7C for ; Thu, 1 Sep 2011 18:07:06 +1000 (EST) Received: from localhost ([::1]:60944 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qz2Ic-0002xr-Io for incoming@patchwork.ozlabs.org; Thu, 01 Sep 2011 04:06:58 -0400 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 Received: from stefanha-thinkpad.manchester-maybrook.uk.ibm.com (dyn-9-174-219-30.manchester-maybrook.uk.ibm.com [9.174.219.30]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p8186RXX019938; Thu, 1 Sep 2011 02:06:31 -0600 From: Stefan Hajnoczi To: Date: Thu, 1 Sep 2011 09:06:23 +0100 Message-Id: <1314864386-14202-13-git-send-email-stefanha@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.5.4 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 X-MIME-Autoconverted: from 8bit to quoted-printable by mtagate7.uk.ibm.com id p8186dZU027336 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 194.196.100.167 Cc: Anthony Liguori , =?UTF-8?q?Llu=C3=ADs?= , =?UTF-8?q?Llu=C3=ADs=20Vilanova?= Subject: [Qemu-devel] [PATCH 12/15] trace: [simple] disable all trace points by default X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Lluís Note that this refers to the backend-specific state (whether the output must be generated), not the event "disabled" property (which always uses the "nop" backend). Signed-off-by: Lluís 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=simple make -2. Run the virtual machine to produce a trace file: +2. Create a file with the events you want to trace: - qemu ... # your normal QEMU invocation + echo bdrv_aio_readv > /tmp/events + echo bdrv_aio_writev >> /tmp/events -3. Pretty-print the binary trace file: +3. Run the virtual machine to produce a trace file: + + qemu -trace events=/tmp/events ... # your normal QEMU invocation + +4. Pretty-print the binary trace file: ./simpletrace.py trace-events trace-* diff --git a/scripts/tracetool b/scripts/tracetool index e2cf117..c740080 100755 --- a/scripts/tracetool +++ b/scripts/tracetool @@ -221,15 +221,10 @@ EOF linetoc_simple() { - local name state + local name name=$(get_name "$1") - if has_property "$1" "disable"; then - state="0" - else - state="1" - fi cat < must be a valid as a C function name. #