diff options
author | Lluís <xscript@gmx.net> | 2011-08-31 20:31:38 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-09-01 10:34:54 +0100 |
commit | dd215f646c72b4cf680097b13aeb8b0c589dceb2 (patch) | |
tree | 97e05a66abda7a327a3377c80652392bbca9e03c /scripts | |
parent | 23d15e860b33819ad76092fbb32577542fe0c44d (diff) | |
download | hqemu-dd215f646c72b4cf680097b13aeb8b0c589dceb2.zip hqemu-dd215f646c72b4cf680097b13aeb8b0c589dceb2.tar.gz |
trace: always use the "nop" backend on events with the "disable" keyword
Any event with the keyword/property "disable" generates an empty trace event
using the "nop" backend, regardless of the current backend.
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/tracetool | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/scripts/tracetool b/scripts/tracetool index e649a5b..e2cf117 100755 --- a/scripts/tracetool +++ b/scripts/tracetool @@ -506,21 +506,10 @@ convert() # Skip comments and empty lines test -z "${str%%#*}" && continue + echo # Process the line. The nop backend handles disabled lines. - disable="0" if has_property "$str" "disable"; then - disable="1" - fi - echo - if [ "$disable" = "1" ]; then - # Pass the disabled state as an arg for the simple - # or DTrace backends which handle it dynamically. - # For all other backends, call lineto$1_nop() - if [ $backend = "simple" -o "$backend" = "dtrace" ]; then - "$process_line" "$str" - else - "lineto$1_nop" "${str##disable }" - fi + "lineto$1_nop" "$str" else "$process_line" "$str" fi |