kernel/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc
.. .. @@ -1,11 +1,7 @@ 1 1 #!/bin/sh 2 2 # SPDX-License-Identifier: GPL-2.0 3 3 # description: Test creation and deletion of trace instances while setting an event 4 -5 -if [ ! -d instances ] ; then6 - echo "no instance directory with this kernel"7 - exit_unsupported;8 -fi4 +# requires: instances9 5 10 6 fail() { # mesg 11 7 rmdir foo 2>/dev/null .. .. @@ -43,7 +39,7 @@ 43 39 44 40 instance_set() { 45 41 while :; do 46 - echo 1 > foo/events/sched/sched_switch42 + echo 1 > foo/events/sched/sched_switch/enable47 43 done 2> /dev/null 48 44 } 49 45