From: Stefan Hajnoczi Date: Tue, 27 Sep 2011 08:00:22 +0000 (+0100) Subject: tracetool: Omit useless QEMU_*_ENABLED() check X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=bcec43324d02d586a8bc0c9093623636e870ad19;p=qemu.git tracetool: Omit useless QEMU_*_ENABLED() check SystemTap provides a "semaphore" that can optionally be tested before executing a trace event. The purpose of this mechanism is to skip expensive tracing code when the trace event is disabled. For example, some applications may have trace events that format or convert strings for trace events. This expensive processing should only be done in the case where the trace event is enabled. Since QEMU's generated trace events never have such special-purpose code, there is no reason to add the semaphore check. Reviewed-by: Masami Hiramatsu Signed-off-by: Stefan Hajnoczi --- diff --git a/scripts/tracetool b/scripts/tracetool index 701b517ec1..65bd0a1b4c 100755 --- a/scripts/tracetool +++ b/scripts/tracetool @@ -415,9 +415,7 @@ linetoh_dtrace() # Define an empty function for the trace event cat <