]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ring-buffer: do not swap if recording is disabled
authorSteven Rostedt <srostedt@redhat.com>
Wed, 21 Jan 2009 20:24:56 +0000 (15:24 -0500)
committerIngo Molnar <mingo@elte.hu>
Thu, 22 Jan 2009 09:27:16 +0000 (10:27 +0100)
commit97b17efe4537e11bf6669106cfe4ee2c5331b267
tree46310b25ea38628fc631d4c4c248ebe66426036f
parent5bc4564b224c3d9fe6dddafa25f56059bd978231
ring-buffer: do not swap if recording is disabled

If the ring buffer recording has been disabled. Do not let
swapping of ring buffers occur. Simply return -EAGAIN.

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