2 # SPDX-License-Identifier: GPL-2.0
3 # 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"
20 echo '*:*' > set_event
26 count
=`head -n 128 trace | grep -v ^# | wc -l`
27 if [ $count -eq 0 ]; then
28 fail
"none of events are recorded"
33 echo 1 > events
/enable
39 count
=`head -n 128 trace | grep -v ^# | wc -l`
40 if [ $count -eq 0 ]; then
41 fail
"none of events are recorded"
46 echo 0 > events
/enable
50 count
=`cat trace | grep -v ^# | wc -l`
51 if [ $count -ne 0 ]; then
52 fail
"any of events should not be recorded"