]>
git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc
2 # description: event tracing - enable/disable with subsystem level files
17 ping localhost
-c 1 ||
sleep .001 ||
usleep 1 ||
sleep 1
20 if [ ! -f set_event
-o ! -d events
/sched
]; then
21 echo "event tracing is not supported"
28 echo 'sched:*' > set_event
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 1 > events
/sched
/enable
43 count
=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l`
44 if [ $count -lt 3 ]; then
45 fail
"at least fork, exec and exit events should be recorded"
50 echo 0 > events
/sched
/enable
54 count
=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l`
55 if [ $count -ne 0 ]; then
56 fail
"any of scheduler events should not be recorded"