mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
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>
This commit is contained in:
parent
23d15e860b
commit
dd215f646c
2 changed files with 18 additions and 24 deletions
|
@ -506,21 +506,10 @@ convert()
|
|||
# Skip comments and empty lines
|
||||
test -z "${str%%#*}" && continue
|
||||
|
||||
# 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
|
||||
# Process the line. The nop backend handles disabled lines.
|
||||
if has_property "$str" "disable"; then
|
||||
"lineto$1_nop" "$str"
|
||||
else
|
||||
"$process_line" "$str"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue