Re: [PATCH] selftests/ftrace: Fix test to handle both old and new kernels

From: Shuah Khan
Date: Wed Aug 21 2024 - 02:58:29 EST


On 8/19/24 13:20, Steven Rostedt wrote:
On Fri, 14 Jun 2024 12:43:22 -0400
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

Shuah,

Can you take this through your tree?

Ping.

-- Steve


Thanks,

-- Steve


On Wed, 15 May 2024 01:36:20 -0400
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx>

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: 86dd6c04ef9f2 ("sched/balancing: Rename scheduler_tick() => sched_tick()")
Signed-off-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx>


Sorry about the delay.

It is now applied to liniux-kselftest next for Linux 6.12-rc1.

thanks,
-- Shuah