2 # SPDX-License-Identifier: GPL-2.0
3 # description: event tracing - enable/disable with event level files
18 ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1
21 if [ ! -f set_event -o ! -d events/sched ]; then
22 echo "event tracing is not supported"
29 echo 'sched:sched_switch' > set_event
33 count=`cat trace | grep sched_switch | wc -l`
34 if [ $count -eq 0 ]; then
35 fail "sched_switch events are not recorded"
40 echo 1 > events/sched/sched_switch/enable
44 count=`cat trace | grep sched_switch | wc -l`
45 if [ $count -eq 0 ]; then
46 fail "sched_switch events are not recorded"
51 echo 0 > events/sched/sched_switch/enable
55 count=`cat trace | grep sched_switch | wc -l`
56 if [ $count -ne 0 ]; then
57 fail "sched_switch events should not be recorded"