ftrace/x86_64: Have function graph tracer depend on DYNAMIC_FTRACE
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 21 Oct 2021 03:35:55 +0000 (23:35 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 21 Oct 2021 03:44:35 +0000 (23:44 -0400)
The function graph tracer is going to now depend on
ARCH_SUPPORTS_FTRACE_OPS, as that also means that it can support ftrace
args. Since ARCH_SUPPORTS_FTRACE_OPS depends on DYNAMIC_FTRACE, this
means that the function graph tracer for x86_64 will need to depend on
DYNAMIC_FTRACE.

Link: https://lkml.kernel.org/r/20211020233555.16b0dbf2@rorschach.local.home
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
arch/x86/Kconfig

index ab83c22d274e7161b82fdf6ff2a8c892e2eff3f9..e39e2bd6acc532960d8bb4cfa9c6d5a1c6a514d4 100644 (file)
@@ -197,7 +197,7 @@ config X86
        select HAVE_FAST_GUP
        select HAVE_FENTRY                      if X86_64 || DYNAMIC_FTRACE
        select HAVE_FTRACE_MCOUNT_RECORD
-       select HAVE_FUNCTION_GRAPH_TRACER
+       select HAVE_FUNCTION_GRAPH_TRACER       if X86_32 || (X86_64 && DYNAMIC_FTRACE)
        select HAVE_FUNCTION_TRACER
        select HAVE_GCC_PLUGINS
        select HAVE_HW_BREAKPOINT