ring-buffer: only enable ring_buffer_swap_cpu when needed
authorSteven Rostedt <srostedt@redhat.com>
Fri, 4 Sep 2009 18:24:40 +0000 (14:24 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 4 Sep 2009 23:42:22 +0000 (19:42 -0400)
Since the ability to swap the cpu buffers adds a small overhead to
the recording of a trace, we only want to add it when needed.

Only the irqsoff and preemptoff tracers use this feature, and both are
not recommended for production kernels. This patch disables its use
when neither irqsoff nor preemptoff is configured.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

No differences found