]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ftrace: Have calltime be saved in the fgraph storage
authorSteven Rostedt <rostedt@goodmis.org>
Sat, 14 Sep 2024 21:48:08 +0000 (17:48 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 30 Sep 2024 15:12:46 +0000 (11:12 -0400)
commitf1f36e22bee967db5e812a65e24389e54c46f3c2
tree6ca6497a81dbf3437901f77881c513443b8ba0f4
parent3c9880f3ab52b52b5b4e1850a70e80dd7329cb4c
ftrace: Have calltime be saved in the fgraph storage

The calltime field in the shadow stack frame is only used by the function
graph tracer and profiler. But now that there's other users of the function
graph infrastructure, this adds overhead and wastes space on the shadow
stack. Move the calltime to the fgraph data storage, where the function
graph and profiler entry functions will save it in its own graph storage and
retrieve it in its exit functions.

Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jiri Olsa <olsajiri@gmail.com>
Link: https://lore.kernel.org/20240914214827.096968730@goodmis.org
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
include/linux/ftrace.h
kernel/trace/fgraph.c
kernel/trace/ftrace.c
kernel/trace/trace_functions_graph.c