diff options
author | Steven Rostedt <srostedt@redhat.com> | 2012-04-27 09:13:18 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2012-05-16 20:00:27 -0400 |
commit | e4f5d5440bb860a3e8942ca8f7277a7f31798965 (patch) | |
tree | 324091109c5bbaae5a06e52a77369cf2731ebb54 /include | |
parent | 8ed3e2cfe40ffe43630fd8efa34fc97c95b4c298 (diff) | |
download | op-kernel-dev-e4f5d5440bb860a3e8942ca8f7277a7f31798965.zip op-kernel-dev-e4f5d5440bb860a3e8942ca8f7277a7f31798965.tar.gz |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ftrace.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index cd72ace..55e6d63 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h @@ -314,6 +314,7 @@ ftrace_set_early_filter(struct ftrace_ops *ops, char *buf, int enable); /* defined in arch */ extern int ftrace_ip_converted(unsigned long ip); extern int ftrace_dyn_arch_init(void *data); +extern void ftrace_replace_code(int enable); extern int ftrace_update_ftrace_func(ftrace_func_t func); extern void ftrace_caller(void); extern void ftrace_call(void); |