From patchwork Thu Feb 17 12:26:05 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jes Sorensen X-Patchwork-Id: 83448 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E31FEB7107 for ; Thu, 17 Feb 2011 23:32:32 +1100 (EST) Received: from localhost ([127.0.0.1]:54151 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pq2xL-0002Ki-K8 for incoming@patchwork.ozlabs.org; Thu, 17 Feb 2011 07:27:35 -0500 Received: from [140.186.70.92] (port=59534 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pq2wV-0002J2-Eg for qemu-devel@nongnu.org; Thu, 17 Feb 2011 07:26:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pq2wT-0006b0-SF for qemu-devel@nongnu.org; Thu, 17 Feb 2011 07:26:43 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41235) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pq2wT-0006ah-Gd for qemu-devel@nongnu.org; Thu, 17 Feb 2011 07:26:41 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p1HCQ74u031164 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 17 Feb 2011 07:26:08 -0500 Received: from red-feather.redhat.com (ovpn-113-79.phx2.redhat.com [10.3.113.79]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p1HCQ6dB001911; Thu, 17 Feb 2011 07:26:06 -0500 From: Jes.Sorensen@redhat.com To: qemu-devel@nongnu.org Date: Thu, 17 Feb 2011 13:26:05 +0100 Message-Id: <1297945565-10593-1-git-send-email-Jes.Sorensen@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: pbonzini@redhat.com, stefanha@linux.vnet.ibm.com Subject: [Qemu-devel] [PATCH v3] tracetool: Add optional argument to specify dtrace probe names X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Jes Sorensen Optional feature allowing a user to generate the probe list to match the name of the binary, in case they wish to install qemu under a Acked-by: Paolo Bonzini Acked-by: Stefan Hajnoczi different name than qemu-{system,user}, Signed-off-by: Jes Sorensen --- scripts/tracetool | 19 +++++++++++++------ 1 files changed, 13 insertions(+), 6 deletions(-) diff --git a/scripts/tracetool b/scripts/tracetool index e046683..412f695 100755 --- a/scripts/tracetool +++ b/scripts/tracetool @@ -30,9 +30,11 @@ Output formats: --stap Generate .stp file (DTrace with SystemTAP only) Options: - --binary [path] Full path to QEMU binary - --target-arch [arch] QEMU emulator target arch - --target-type [type] QEMU emulator target type ('system' or 'user') + --binary [path] Full path to QEMU binary + --target-arch [arch] QEMU emulator target arch + --target-type [type] QEMU emulator target type ('system' or 'user') + --probe-prefix [prefix] Prefix for dtrace probe names + (default: qemu-\$targettype-\$targetarch) EOF exit 1 @@ -472,7 +474,7 @@ linetostap_dtrace() # Define prototype for probe arguments cat <