Messages in this thread | | | Date | Thu, 16 Jul 2009 17:29:57 +0800 | From | Li Zefan <> | Subject | Re: [PATCH 2/2] tracing/function: simplify for __ftrace_replace_code() |
| |
Xiao Guangrong wrote: > Rewrite the __ftrace_replace_code() function, let it's simple, but > not change the code's logic. > > First, we get the state we want to set, if the record has the same > state, then do nothing, if not, enable/disable it. > > Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Reviewed-by: Li Zefan <lizf@cn.fujitsu.com>
> --- > kernel/trace/ftrace.c | 75 +++++++++++++----------------------------------- > 1 files changed, 21 insertions(+), 54 deletions(-)
| |