From patchwork Wed Aug 31 16:53:26 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?Q?Llu=C3=ADs?= X-Patchwork-Id: 112623 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 B674EB6F77 for ; Thu, 1 Sep 2011 02:54:51 +1000 (EST) Received: from localhost ([::1]:51228 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qyo3t-0006Hi-5J for incoming@patchwork.ozlabs.org; Wed, 31 Aug 2011 12:54:49 -0400 Received: from eggs.gnu.org ([140.186.70.92]:53985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qyo3J-000517-6h for qemu-devel@nongnu.org; Wed, 31 Aug 2011 12:54:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qyo3C-0000i6-Um for qemu-devel@nongnu.org; Wed, 31 Aug 2011 12:54:13 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:35288) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Qyo3C-0000et-Gv for qemu-devel@nongnu.org; Wed, 31 Aug 2011 12:54:06 -0400 Received: (qmail invoked by alias); 31 Aug 2011 16:53:50 -0000 Received: from unknown (EHLO localhost) [84.88.53.92] by mail.gmx.net (mp071) with SMTP; 31 Aug 2011 18:53:50 +0200 X-Authenticated: #12333383 X-Provags-ID: V01U2FsdGVkX18jYR4NFRgjvZ24NiorpWYGz1Ai+SEnxgo1F6rrvs VS1bbxEm19JqYS To: qemu-devel@nongnu.org, chouteau@adacore.com From: =?utf-8?b?TGx1w61z?= Date: Wed, 31 Aug 2011 18:53:26 +0200 Message-ID: <20110831165326.4389.21341.stgit@ginnungagap.bsc.es> In-Reply-To: <20110831165206.4389.17250.stgit@ginnungagap.bsc.es> References: <20110831165206.4389.17250.stgit@ginnungagap.bsc.es> User-Agent: StGit/0.15 MIME-Version: 1.0 X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.23 Cc: stefanha@gmail.com Subject: [Qemu-devel] [PATCH v8 12/14] trace-state: [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 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. #