]> git.ipfire.org Git - thirdparty/linux.git/commit
tracing: Move ftrace_trace_stack() out of trace.c and into trace.h
authorSteven Rostedt <rostedt@goodmis.org>
Sun, 8 Feb 2026 03:24:21 +0000 (22:24 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 9 Feb 2026 02:01:12 +0000 (21:01 -0500)
commit3e6c8f80e5ddd0644e509547c61366a2c09117b0
tree7104c56ecb3c53c8ae288812566305141cc5a918
parent0e730bc067e7a790d61344dbf6d9dfdce7f99ea3
tracing: Move ftrace_trace_stack() out of trace.c and into trace.h

The file trace.c has become a catchall for most things tracing. Start
making it smaller by breaking out various aspects into their own files.

Make ftrace_trace_stack() into a static inline that tests if stack tracing
is enabled and if so to call __ftrace_trace_stack() to do the stack trace.
This keeps the test inlined in the fast paths and only does the function
call if stack tracing is enabled.

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: https://patch.msgid.link/20260208032449.974218132@kernel.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace.c
kernel/trace/trace.h