2 # SPDX-License-Identifier: GPL-2.0
3 # description: event tracing - enable/disable with subsystem level files
16 if [ ! -f set_event
-o ! -d events
/sched
]; then
17 echo "event tracing is not supported"
21 echo 'sched:*' > set_event
25 count
=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l`
26 if [ $count -lt 3 ]; then
27 fail
"at least fork, exec and exit events should be recorded"
32 echo 1 > events
/sched
/enable
36 count
=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l`
37 if [ $count -lt 3 ]; then
38 fail
"at least fork, exec and exit events should be recorded"
43 echo 0 > events
/sched
/enable
47 count
=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l`
48 if [ $count -ne 0 ]; then
49 fail
"any of scheduler events should not be recorded"