]> www.infradead.org Git - users/willy/xarray.git/commit
selftests/ftrace: Fix test to handle both old and new kernels
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 15 May 2024 05:36:20 +0000 (01:36 -0400)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 21 Aug 2024 06:56:43 +0000 (00:56 -0600)
commitc049acee3c71cfc26c739f82617a84e13e471a45
tree1de9c32d2ba6385b8b6e3c30c71138a5fabdde17
parent99338cc1e47187c3efdd39cda2a31500d0f2305d
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: 86dd6c04ef9f ("sched/balancing: Rename scheduler_tick() => sched_tick()")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/ftrace/test.d/ftrace/func_set_ftrace_file.tc