2 # SPDX-License-Identifier: GPL-2.0
3 # description: event tracing - enable/disable with subsystem 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:*' > set_event
33 count=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l`
34 if [ $count -lt 3 ]; then
35 fail "at least fork, exec and exit events should be recorded"
40 echo 1 > events/sched/enable
44 count=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l`
45 if [ $count -lt 3 ]; then
46 fail "at least fork, exec and exit events should be recorded"
51 echo 0 > events/sched/enable
55 count=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l`
56 if [ $count -ne 0 ]; then
57 fail "any of scheduler events should not be recorded"