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: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
parent a0e6369e
...@@ -7550,9 +7550,7 @@ static int instance_rmdir(const char *name) ...@@ -7550,9 +7550,7 @@ static int instance_rmdir(const char *name)
} }
tracing_set_nop(tr); tracing_set_nop(tr);
#if defined(CONFIG_FUNCTION_TRACER) && defined(CONFIG_DYNAMIC_FTRACE)
clear_ftrace_function_probes(tr); clear_ftrace_function_probes(tr);
#endif
event_trace_del_tracer(tr); event_trace_del_tracer(tr);
ftrace_clear_pids(tr); ftrace_clear_pids(tr);
ftrace_destroy_function_files(tr); ftrace_destroy_function_files(tr);
......
...@@ -999,6 +999,10 @@ static inline __init int unregister_ftrace_command(char *cmd_name) ...@@ -999,6 +999,10 @@ static inline __init int unregister_ftrace_command(char *cmd_name)
{ {
return -EINVAL; return -EINVAL;
} }
static inline void clear_ftrace_function_probes(struct trace_array *tr)
{
}
/* /*
* The ops parameter passed in is usually undefined. * The ops parameter passed in is usually undefined.
* This must be a macro. * This must be a macro.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment