Re: [PATCH 2/2] tracing/function: simplify for __ftrace_replace_code()

From: Li Zefan
Date: Thu Jul 16 2009 - 05:31:35 EST


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@xxxxxxxxxxxxxx>

Reviewed-by: Li Zefan <lizf@xxxxxxxxxxxxxx>

> ---
> kernel/trace/ftrace.c | 75 +++++++++++++-----------------------------------
> 1 files changed, 21 insertions(+), 54 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/