From patchwork Tue Mar 20 17:02:40 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Essen X-Patchwork-Id: 147813 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id BA3D8B6F13 for ; Wed, 21 Mar 2012 04:03:05 +1100 (EST) Received: from localhost ([::1]:47126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SA2Sd-00029o-MH for incoming@patchwork.ozlabs.org; Tue, 20 Mar 2012 13:03:03 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SA2SN-00027b-T3 for qemu-devel@nongnu.org; Tue, 20 Mar 2012 13:02:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SA2SH-000523-OV for qemu-devel@nongnu.org; Tue, 20 Mar 2012 13:02:47 -0400 Received: from 204.146.238.178.in-addr.arpa ([178.238.146.204]:50390 helo=mail.local) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SA2SH-00051o-HX for qemu-devel@nongnu.org; Tue, 20 Mar 2012 13:02:41 -0400 Received: from [178.238.146.101] (101.146.238.178.in-addr.arpa [178.238.146.101]) by mail.local (Postfix) with ESMTPSA id CD8D84A5F; Tue, 20 Mar 2012 17:02:39 +0000 (UTC) Message-ID: <4F68B830.9040008@nowonline.co.uk> Date: Tue, 20 Mar 2012 17:02:40 +0000 From: Lee Essen User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: qemu-devel@nongnu.org, stefanha@linux.vnet.ibm.com X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 178.238.146.204 Subject: [Qemu-devel] [PATCH v2] tracetool dtrace disabled-events fix 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 If there are "disabled" entries in the trace-events file then linetod_nop() is called if the backend is dtrace, it's currently not present. Also equivalent fix for stap. Signed-off-by: Lee Essen diff --git a/scripts/tracetool b/scripts/tracetool index 65bd0a1..a279c2c 100755 --- a/scripts/tracetool +++ b/scripts/tracetool @@ -161,6 +161,18 @@ linetoc_nop() return } +linetod_nop() +{ + # Used when "disabled" events are processed + return +} + +linetostap_nop() +{ + # Used when "disabled" events are processed + return +} + linetoc_end_nop() { return