From: Steven Rostedt (Red Hat) Date: Wed, 25 Jun 2014 15:28:20 +0000 (-0400) Subject: ftrace: Do no disable function tracing on enabling function tracing X-Git-Tag: v4.14-rc1~7129^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1820122a76c6d64adc6e2a7ff438029ffb8d7cb4;p=platform%2Fkernel%2Flinux-rpi.git ftrace: Do no disable function tracing on enabling function tracing When function tracing is being updated function_trace_stop is set to keep from tracing the updates. This was fine when function tracing was done from stop machine. But it is no longer done that way and this can cause real tracing to be missed. Remove it. Reviewed-by: Masami Hiramatsu Signed-off-by: Steven Rostedt --- diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 8063280..0fa1b87 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -2261,11 +2261,6 @@ static void ftrace_run_update_code(int command) FTRACE_WARN_ON(ret); if (ret) return; - /* - * Do not call function tracer while we update the code. - * We are in stop machine. - */ - function_trace_stop++; /* * By default we use stop_machine() to modify the code. @@ -2275,8 +2270,6 @@ static void ftrace_run_update_code(int command) */ arch_ftrace_update_code(command); - function_trace_stop--; - ret = ftrace_arch_code_modify_post_process(); FTRACE_WARN_ON(ret);