ftrace: allow archs to preform pre and post process for code modification
authorSteven Rostedt <srostedt@redhat.com>
Tue, 17 Feb 2009 18:35:06 +0000 (13:35 -0500)
committerSteven Rostedt <srostedt@redhat.com>
Fri, 20 Feb 2009 18:16:18 +0000 (13:16 -0500)
commit000ab691172db3921efa3cb7f17fc79235a1de7f
tree5670e20fe203488b408977d5d5634fc9ddf418e1
parent07a66d7c53a538e1a9759954a82bb6c07365eff9
ftrace: allow archs to preform pre and post process for code modification

This patch creates the weak functions: ftrace_arch_code_modify_prepare
and ftrace_arch_code_modify_post_process that are called before and
after the stop machine is called to modify the kernel text.

If the arch needs to do pre or post processing, it only needs to define
these functions.

[ Update: Ingo Molnar suggested using the name ftrace_arch_code_modify_*
          over using ftrace_arch_modify_* ]

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
include/linux/ftrace.h
kernel/trace/ftrace.c