]> Git Repo - qemu.git/commit
tracetool: Omit useless QEMU_*_ENABLED() check
authorStefan Hajnoczi <[email protected]>
Tue, 27 Sep 2011 08:00:22 +0000 (09:00 +0100)
committerStefan Hajnoczi <[email protected]>
Mon, 12 Mar 2012 10:12:34 +0000 (10:12 +0000)
commitbcec43324d02d586a8bc0c9093623636e870ad19
tree000a968dc4e7fd5fab3d7766b48dec5e3dd03886
parentb7d66a761f44a725352e19b64c587924647e6f83
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 <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
scripts/tracetool
This page took 0.026091 seconds and 4 git commands to generate.