aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/fgraph.c
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <linux@treblig.org>2024-05-07 00:33:05 +0100
committerSteven Rostedt (Google) <rostedt@goodmis.org>2024-05-14 02:09:40 -0400
commitd2cc859cc8885e98907cffd47b990491c5321a80 (patch)
tree22a2e7dc51735bdeb7f443db5f4595662c52d62b /kernel/trace/fgraph.c
parentftrace: Remove unused list 'ftrace_direct_funcs' (diff)
downloadlinux-d2cc859cc8885e98907cffd47b990491c5321a80.tar.gz
linux-d2cc859cc8885e98907cffd47b990491c5321a80.zip
ftrace: Remove unused global 'ftrace_direct_func_count'
Commit 8788ca164eb4b ("ftrace: Remove the legacy _ftrace_direct API") stopped setting the 'ftrace_direct_func_count' variable, but left it around. Clean it up. Link: https://lore.kernel.org/linux-trace-kernel/20240506233305.215735-1-linux@treblig.org Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/fgraph.c')
-rw-r--r--kernel/trace/fgraph.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/kernel/trace/fgraph.c b/kernel/trace/fgraph.c
index c83c005e654e..a130b2d898f7 100644
--- a/kernel/trace/fgraph.c
+++ b/kernel/trace/fgraph.c
@@ -125,17 +125,6 @@ int function_graph_enter(unsigned long ret, unsigned long func,
{
struct ftrace_graph_ent trace;
-#ifndef CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS
- /*
- * Skip graph tracing if the return location is served by direct trampoline,
- * since call sequence and return addresses are unpredictable anyway.
- * Ex: BPF trampoline may call original function and may skip frame
- * depending on type of BPF programs attached.
- */
- if (ftrace_direct_func_count &&
- ftrace_find_rec_direct(ret - MCOUNT_INSN_SIZE))
- return -EBUSY;
-#endif
trace.func = func;
trace.depth = ++current->curr_ret_depth;