trace: [simple] disable all trace points by default

Note that this refers to the backend-specific state (whether the output must be
generated), not the event "disabled" property (which always uses the "nop"
backend).

Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
This commit is contained in:
Lluís 2011-08-31 20:31:45 +02:00 committed by Stefan Hajnoczi
parent dd215f646c
commit 03727e6a06
3 changed files with 10 additions and 13 deletions

View file

@ -221,15 +221,10 @@ EOF
linetoc_simple()
{
local name state
local name
name=$(get_name "$1")
if has_property "$1" "disable"; then
state="0"
else
state="1"
fi
cat <<EOF
{.tp_name = "$name", .state=$state},
{.tp_name = "$name", .state=0},
EOF
simple_event_num=$((simple_event_num + 1))
}