Skip to content

Commit 8a49f3e

Browse files
committed
ftrace: Remove #ifdef from code and add clear_ftrace_function_probes() stub
No need to add ugly #ifdefs in the code. Having a standard stub file is much prettier. Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
1 parent a0e6369 commit 8a49f3e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎kernel/trace/trace.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7550,9 +7550,7 @@ static int instance_rmdir(const char *name)
75507550
}
75517551

75527552
tracing_set_nop(tr);
7553-
#if defined(CONFIG_FUNCTION_TRACER) && defined(CONFIG_DYNAMIC_FTRACE)
75547553
clear_ftrace_function_probes(tr);
7555-
#endif
75567554
event_trace_del_tracer(tr);
75577555
ftrace_clear_pids(tr);
75587556
ftrace_destroy_function_files(tr);

‎kernel/trace/trace.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,10 @@ static inline __init int unregister_ftrace_command(char *cmd_name)
999999
{
10001000
return -EINVAL;
10011001
}
1002+
static inline void clear_ftrace_function_probes(struct trace_array *tr)
1003+
{
1004+
}
1005+
10021006
/*
10031007
* The ops parameter passed in is usually undefined.
10041008
* This must be a macro.

0 commit comments

Comments
 (0)