Received: from eggs.gnu.org ([140.186.70.92]:50558) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYzxh-0007l4-Pd for qemu-devel@nongnu.org; Fri, 09 Dec 2011 07:54:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYzxg-0001zv-8R for qemu-devel@nongnu.org; Fri, 09 Dec 2011 07:54:01 -0500 Received: from mail-ey0-f173.google.com ([209.85.215.173]:51625) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYzxg-0001zq-06 for qemu-devel@nongnu.org; Fri, 09 Dec 2011 07:54:00 -0500 Received: by eaaa14 with SMTP id a14so408869eaa.4 for ; Fri, 09 Dec 2011 04:53:59 -0800 (PST) Date: Fri, 9 Dec 2011 12:53:56 +0000 From: Stefan Hajnoczi Message-ID: <20111209125356.GA19382@stefanha-thinkpad.localdomain> References: <20111206163815.9767.50412.stgit@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20111206163815.9767.50412.stgit@ginnungagap.bsc.es> Subject: Re: [Qemu-devel] [PATCH v2] trace: Provide a per-event status define for conditional compilation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Llu=EDs?= Vilanova Cc: Blue Swirl , qemu-devel@nongnu.org, Richard Henderson On Tue, Dec 06, 2011 at 05:38:15PM +0100, Lluís Vilanova wrote: > Adds a 'TRACE_${NAME}_ENABLED' preprocessor define for each tracing event in > "trace.h". > > This lets the user conditionally compile code with a relatively high execution > cost that is only necessary when producing the tracing information for an event > that is enabled. > > Note that events using this define will probably have the "disable" property by > default, in order to avoid such costs on regular builds. > > Signed-off-by: Lluís Vilanova > --- > docs/tracing.txt | 46 ++++++++++++++++++++++++++++++++++++++++------ > scripts/tracetool | 9 ++++++++- > 2 files changed, 48 insertions(+), 7 deletions(-) Thanks, applied to the tracing tree: http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/tracing Stefan