tracing: Fix selftest config check for function graph start up test
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 21 Oct 2021 17:43:57 +0000 (13:43 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 21 Oct 2021 18:18:48 +0000 (14:18 -0400)
commit4e341cad6b7a58376bfc6d1c8347727d094a6274
treebd5fd183a81c6b67ddc46874a2f9e0b9eb392b85
parent130c08065848a98163b243b55e99f66c24609efb
tracing: Fix selftest config check for function graph start up test

There's a new test in trace_selftest_startup_function_graph() that
requires the use of ftrace args being supported as well does some tricks
with dynamic tracing. Although this code checks HAVE_DYNAMIC_FTRACE_WITH_ARGS
it fails to check DYNAMIC_FTRACE, and the kernel fails to build due to
that dependency.

Also only define the prototype of trace_direct_tramp() if it is used.

Link: https://lkml.kernel.org/r/20211021134357.7f48e173@gandalf.local.home
Acked-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_selftest.c