ftrace/x86: Have x86 ftrace use the ftrace_modify_all_code()
authorSteven Rostedt <srostedt@redhat.com>
Fri, 27 Apr 2012 13:13:18 +0000 (09:13 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 17 May 2012 00:00:27 +0000 (20:00 -0400)
commite4f5d5440bb860a3e8942ca8f7277a7f31798965
tree324091109c5bbaae5a06e52a77369cf2731ebb54
parent8ed3e2cfe40ffe43630fd8efa34fc97c95b4c298
ftrace/x86: Have x86 ftrace use the ftrace_modify_all_code()

To remove duplicate code, have the ftrace arch_ftrace_update_code()
use the generic ftrace_modify_all_code(). This requires that the
default ftrace_replace_code() becomes a weak function so that an
arch may override it.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
arch/x86/kernel/ftrace.c
include/linux/ftrace.h
kernel/trace/ftrace.c