ftrace: Warn on error when modifying ftrace function
authorPetr Mladek <pmladek@suse.cz>
Mon, 24 Feb 2014 16:12:21 +0000 (17:12 +0100)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 7 Mar 2014 15:06:15 +0000 (10:06 -0500)
commitcd21067f69240041d36e491ff5597e0217615465
treeeff9e12c7531d213c4e7c2fdf546681b1f038274
parenta762782d780b341b1836489692190d26be624ed7
ftrace: Warn on error when modifying ftrace function

We should print some warning and kill ftrace functionality when the ftrace
function is not set correctly. Otherwise, ftrace might do crazy things without
an explanation. The error value has been ignored so far.

Note that an error that happens during updating all the traced calls is handled
in ftrace_replace_code(). We print more details about the particular
failing address via ftrace_bug() there.

Link: http://lkml.kernel.org/r/1393258342-29978-3-git-send-email-pmladek@suse.cz
Signed-off-by: Petr Mladek <pmladek@suse.cz>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ftrace.c