2 # description: event tracing - enable/disable with top level files
15 if [ ! -f available_events -o ! -f set_event -o ! -d events ]; then
16 echo "event tracing is not supported"
23 echo '*:*' > set_event
24 count=`cat trace | grep -v ^# | wc -l`
25 if [ $count -eq 0 ]; then
26 fail "none of events are recorded"
31 echo 1 > events/enable
32 count=`cat trace | grep -v ^# | wc -l`
33 if [ $count -eq 0 ]; then
34 fail "none of events are recorded"
39 echo 0 > events/enable
40 count=`cat trace | grep -v ^# | wc -l`
41 if [ $count -ne 0 ]; then
42 fail "any of events should not be recorded"