diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-09-03 23:53:46 (GMT) |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-09-04 15:46:25 (GMT) |
commit | 077c5407cd3231cf13472623995f0dfdda510d62 (patch) | |
tree | 843c729463363495f13333b2b55f3985ea75dfd8 /kernel/trace/trace.c | |
parent | a1863c212b7517afc2b13e549552ac322fb44cab (diff) | |
download | linux-fsl-qoriq-077c5407cd3231cf13472623995f0dfdda510d62.tar.xz |
ring-buffer: disable all cpu buffers when one finds a problem
Currently the way RB_WARN_ON works, is to disable either the current
CPU buffer or all CPU buffers, depending on whether a ring_buffer or
ring_buffer_per_cpu struct was passed into the macro.
Most users of the RB_WARN_ON pass in the CPU buffer, so only the one
CPU buffer gets disabled but the rest are still active. This may
confuse users even though a warning is sent to the console.
This patch changes the macro to disable the entire buffer even if
the CPU buffer is passed in.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.c')
0 files changed, 0 insertions, 0 deletions