diff options
Diffstat (limited to 'tools/testing/selftests/ftrace/test.d/instances/instance-event.tc')
-rw-r--r-- | tools/testing/selftests/ftrace/test.d/instances/instance-event.tc | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc b/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc index 4c5a061a5b4e..8a353314dc9b 100644 --- a/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc +++ b/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc @@ -75,10 +75,17 @@ rmdir foo if [ -d foo ]; then fail "foo still exists" fi -exit 0 - - +mkdir foo +echo "schedule:enable_event:sched:sched_switch" > foo/set_ftrace_filter +rmdir foo +if [ -d foo ]; then + fail "foo still exists" +fi +if grep -q "schedule:enable_event:sched:sched_switch" ../set_ftrace_filter; then + echo "Older kernel detected. Cleanup filter" + echo '!schedule:enable_event:sched:sched_switch' > ../set_ftrace_filter +fi instance_slam() { while :; do |