Commit c049acee authored by Steven Rostedt (Google)'s avatar Steven Rostedt (Google) Committed by Shuah Khan
Browse files

selftests/ftrace: Fix test to handle both old and new kernels



The function "scheduler_tick" was renamed to "sched_tick" and a selftest
that used that function for testing function trace filtering used that
function as part of the test.

But the change causes it to fail when run on older kernels. As tests
should not fail on older kernels, add a check to see which name is
available before testing.

Fixes: 86dd6c04 ("sched/balancing: Rename scheduler_tick() => sched_tick()")
Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent 99338cc1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment