]> www.infradead.org Git - users/hch/misc.git/commit
ftrace/selftest: Test combination of function_graph tracer and function profiler
authorSteven Rostedt <rostedt@goodmis.org>
Thu, 10 Oct 2024 20:52:35 +0000 (16:52 -0400)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 11 Oct 2024 21:05:16 +0000 (15:05 -0600)
commit4ee5ca9a29384fcf3f18232fdf8474166dea8dca
tree04260a807277195acd8a1c9db09b0081c8a78f51
parenta0cc649353bb726d4aa0db60dce467432197b746
ftrace/selftest: Test combination of function_graph tracer and function profiler

Masami reported a bug when running function graph tracing then the
function profiler. The following commands would cause a kernel crash:

  # cd /sys/kernel/tracing/
  # echo function_graph > current_tracer
  # echo 1 > function_profile_enabled

In that order. Create a test to test this two to make sure this does not
come back as a regression.

Link: https://lore.kernel.org/172398528350.293426.8347220120333730248.stgit@devnote2
Link: https://lore.kernel.org/all/20241010165235.35122877@gandalf.local.home/
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/ftrace/test.d/ftrace/fgraph-profiler.tc [new file with mode: 0644]