diff options
author | Steven Rostedt (Red Hat) <srostedt@redhat.com> | 2013-03-05 14:50:23 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-03-15 00:35:47 -0400 |
commit | 0b85ffc293044393623059eda9904a7d5b644e36 (patch) | |
tree | e74d33f01afe541d82f02ba727c421ea71ed470a /include/net | |
parent | f1affcaaa861f27752a769f889bf1486ebd301fe (diff) | |
download | op-kernel-dev-0b85ffc293044393623059eda9904a7d5b644e36.zip op-kernel-dev-0b85ffc293044393623059eda9904a7d5b644e36.tar.gz |
tracing: Add config option to allow snapshot to swap per cpu
When the preempt or irq latency tracers are enabled, they require
the ring buffer to be able to swap the per cpu sub buffers between
two main buffers. This adds a slight overhead to tracing as the
trace recording needs to perform some checks to synchronize
between recording and swaps that might be happening on other CPUs.
The config RING_BUFFER_ALLOW_SWAP is set when a user of the ring
buffer needs the "swap cpu" feature, otherwise the extra checks
are not implemented and removed from the tracing overhead.
The snapshot feature will swap per CPU if the RING_BUFFER_ALLOW_SWAP
config is set. But that only gets set by things like OPROFILE
and the irqs and preempt latency tracers.
This config is added to let the user decide to include this feature
with the snapshot agnostic from whether or not another user of
the ring buffer sets this config.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions