]> Pileus Git - ~andy/linux/commit
trace: do not disable wake up tracer on output of trace
authorSteven Rostedt <srostedt@redhat.com>
Wed, 21 Jan 2009 19:36:52 +0000 (14:36 -0500)
committerIngo Molnar <mingo@elte.hu>
Thu, 22 Jan 2009 09:26:50 +0000 (10:26 +0100)
commit5bc4564b224c3d9fe6dddafa25f56059bd978231
tree22ddf4de8fe115ab7dd8d29c7ff2fa1bf318acd1
parent03b30d151a918364c1c7d08bcb3e167be0a3746f
trace: do not disable wake up tracer on output of trace

Impact: fix to erased trace output

To try not to have the outputing of a trace interfere with the wakeup
tracer, it would disable tracing while the output was printing. But
if a trace had started when it was disabled, it can show a partial
trace. To try to solve this, on closing of the tracer, it would
clear the trace buffer.

The latency tracers (wakeup and irqsoff) have two buffers. One for
recording and one for holding the max trace that is printed. The
clearing of the trace above should only affect the recording buffer.
But for some reason it would move the erased trace to the print
buffer. Probably due to a race with the closing of the trace and
the saving ofhe max race.

The above is all pretty useless, and if the user does not want the
printing of the trace to be traced itself, then the user can manual
disable tracing. This patch removes all the code that tries to keep
the output of the tracer from modifying the trace.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_sched_wakeup.c