Skip to content

Commit 9b4d5d3

Browse files
committed
ftrace: Make DYNAMIC_FTRACE always enabled for architectures that support it
ftrace has two flavors: 1) static: Where every function always calls the ftrace trampoline 2) dynamic: Where each function has nops that can be changed on demand to jump to the ftrace trampoline when needed. The static flavor has very high performance overhead and was only created to make it easier for architectures to implement the dynamic flavor. An architecture developer can first implement the static ftrace to make sure the trampolines work before working on the more complicated dynamic aspect of ftrace. Once the architecture can support dynamic ftrace, there's no reason to continue to support the static flavor. In fact, the static flavor tends to bitrot and bugs start to appear in them. Remove the prompt to pick DYNAMIC_FTRACE and simply enable it if the architecture supports it. Link: https://lore.kernel.org/all/[email protected]/ Cc: Masami Hiramatsu <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Alexandre Ghiti <[email protected]> Cc: ChenMiao <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 218d372 commit 9b4d5d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/trace/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ config FUNCTION_TRACE_ARGS
275275
funcgraph-args (for the function graph tracer)
276276

277277
config DYNAMIC_FTRACE
278-
bool "enable/disable function tracing dynamically"
278+
bool
279279
depends on FUNCTION_TRACER
280280
depends on HAVE_DYNAMIC_FTRACE
281281
default y

0 commit comments

Comments
 (0)