Skip to content

Commit

Permalink
ftrace: start wakeup tracing after setting function tracer
Browse files Browse the repository at this point in the history
Enabling the wakeup tracer before enabling the function tracing causes
some strange results due to the dynamic enabling of the functions.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Cc: Steven Rostedt <srostedt@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Steven Rostedt authored and Ingo Molnar committed Jul 11, 2008
1 parent b5c21b4 commit ad59124
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/trace/trace_sched_wakeup.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,10 @@ static void start_wakeup_tracer(struct trace_array *tr)
*/
smp_wmb();

tracer_enabled = 1;
register_ftrace_function(&trace_ops);

tracer_enabled = 1;

return;
fail_deprobe_wake_new:
marker_probe_unregister("kernel_sched_wakeup_new",
Expand Down

0 comments on commit ad59124

Please sign in to comment.