qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2] trace: Provide a per-event status define for


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH v2] trace: Provide a per-event status define for conditional compilation
Date: Fri, 9 Dec 2011 12:53:56 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

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 <address@hidden>
> ---
>  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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]