2 # description: event tracing - enable/disable with top level files
16 ping localhost
-c 1 ||
sleep .001 ||
usleep 1 ||
sleep 1
19 if [ ! -f available_events
-o ! -f set_event
-o ! -d events
]; then
20 echo "event tracing is not supported"
27 echo '*:*' > set_event
31 count
=`cat trace | grep -v ^# | wc -l`
32 if [ $count -eq 0 ]; then
33 fail
"none of events are recorded"
38 echo 1 > events
/enable
42 count
=`cat trace | grep -v ^# | wc -l`
43 if [ $count -eq 0 ]; then
44 fail
"none of events are recorded"
49 echo 0 > events
/enable
53 count
=`cat trace | grep -v ^# | wc -l`
54 if [ $count -ne 0 ]; then
55 fail
"any of events should not be recorded"