Re: [PATCH v2 1/2] ftrace: Add check of sched_stopped forprobe_sched_wakeup

From: Steven Rostedt
Date: Fri Apr 03 2009 - 15:51:30 EST



On Tue, 31 Mar 2009, Zhaolei wrote:

> We need check sched_stopped in probe_sched_wakeup() to stop tracing when an
> user stops it.
>
> But current code can also do the right thing(stop tracing after
> echo 0 > tracing_enabled) just because tracing_sched_wakeup_trace() can return
> on buffer->record_disabled.
>
> Signed-off-by: Zhao Lei <zhaolei@xxxxxxxxxxxxxx>

Thanks, applied.

-- Steve

--
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/