selftests/ftrace: Add test to exercize function tracer across cpu hotplug
authorNaveen N Rao <naveen@kernel.org>
Fri, 16 Feb 2024 09:56:26 +0000 (15:26 +0530)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 21 Feb 2024 00:28:19 +0000 (17:28 -0700)
commit3425a2005b291b62b6f6deeeab1156839c41cf85
tree0cfa9b91654d64459729325c812e148675330a04
parent5bc9dc068afe95e924136d57c1a385194282a919
selftests/ftrace: Add test to exercize function tracer across cpu hotplug

Add a test to exercize cpu hotplug with the function tracer active to
ensure that sensitive functions in idle path are excluded from being
traced. This helps catch issues such as the one fixed by commit
4b3338aaa74d ("powerpc/ftrace: Fix stack teardown in ftrace_no_trace").

Signed-off-by: Naveen N Rao <naveen@kernel.org>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/ftrace/test.d/ftrace/func_hotplug.tc [new file with mode: 0644]