diff options
author | 2024-09-14 17:48:08 -0400 | |
---|---|---|
committer | 2024-09-30 11:12:46 -0400 | |
commit | f1f36e22bee967db5e812a65e24389e54c46f3c2 (patch) | |
tree | 6ca6497a81dbf3437901f77881c513443b8ba0f4 /include/linux/ftrace.h | |
parent | ftrace: Use a running sleeptime instead of saving on shadow stack (diff) | |
download | wireguard-linux-f1f36e22bee967db5e812a65e24389e54c46f3c2.tar.xz wireguard-linux-f1f36e22bee967db5e812a65e24389e54c46f3c2.zip |
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>
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r-- | include/linux/ftrace.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index aabd348cad4a..e684addf6508 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h @@ -1091,7 +1091,6 @@ void *fgraph_retrieve_parent_data(int idx, int *size_bytes, int depth); struct ftrace_ret_stack { unsigned long ret; unsigned long func; - unsigned long long calltime; #ifdef HAVE_FUNCTION_GRAPH_FP_TEST unsigned long fp; #endif |