ftrace: Have ftrace_startup() return failure code
authorSteven Rostedt <srostedt@redhat.com>
Mon, 23 May 2011 19:24:25 +0000 (15:24 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 26 May 2011 02:13:37 +0000 (22:13 -0400)
commita1cd6173596c6f7d1f0b41ac7d33ecf03c581edc
tree413ed775a2c48d8ad003740fa6ef0d912f784842
parent7cbc5b8d4a775a43875a09e29c49a2a8195b5b2d
ftrace: Have ftrace_startup() return failure code

The register_ftrace_function() returns an error code on failure
except if the call to ftrace_startup() fails. Add a error return to
ftrace_startup() if it fails to start, allowing register_ftrace_funtion()
to return a proper error value.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ftrace.c