2 # SPDX-License-Identifier: GPL-2.0
3 # description: event tracing - enable/disable with subsystem level files
4 # requires: set_event events/sched/enable
17 echo 'sched:*' > set_event
21 count
=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l`
22 if [ $count -lt 3 ]; then
23 fail
"at least fork, exec and exit events should be recorded"
28 echo 1 > events
/sched
/enable
32 count
=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l`
33 if [ $count -lt 3 ]; then
34 fail
"at least fork, exec and exit events should be recorded"
39 echo 0 > events
/sched
/enable
43 count
=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l`
44 if [ $count -ne 0 ]; then
45 fail
"any of scheduler events should not be recorded"