ftrace: return error on failed modified text.
authorSteven Rostedt <rostedt@goodmis.org>
Thu, 23 Oct 2008 13:32:59 +0000 (09:32 -0400)
committerIngo Molnar <mingo@elte.hu>
Thu, 23 Oct 2008 14:00:13 +0000 (16:00 +0200)
commit593eb8a2d63e95772a5f22d746f18a997c5ee463
tree2a99c61ccffc2c0fd280bb2e5f81ac2f22e2f471
parent34698bcbdf7b0629d6c873b5da7c63073fb45361
ftrace: return error on failed modified text.

Have the ftrace_modify_code return error values:

  -EFAULT on error of reading the address

  -EINVAL if what is read does not match what it expected

  -EPERM  if the write fails to update after a successful match.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/ftrace.c
include/linux/ftrace.h
kernel/trace/ftrace.c