ftrace: Have unregister_ftrace_function_probe_func() return a value
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 4 Apr 2017 20:44:43 +0000 (16:44 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 21 Apr 2017 02:06:42 +0000 (22:06 -0400)
commitd3d532d798c5720055ab02a10bf7829a33c3645a
tree3d5d3ac5e0fba823e06b59b004580a5e4f4d3c8a
parente16b35ddb840788e023fac2482b61c0b6bf98057
ftrace: Have unregister_ftrace_function_probe_func() return a value

Currently unregister_ftrace_function_probe_func() is a void function. It
does not give any feedback if an error occurred or no item was found to
remove and nothing was done.

Change it to return status and success if it removed something. Also update
the callers to return that feedback to the user.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ftrace.c
kernel/trace/trace.c
kernel/trace/trace.h
kernel/trace/trace_events.c
kernel/trace/trace_functions.c