summaryrefslogtreecommitdiff
path: root/kernel/trace/ring_buffer_benchmark.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-06-17 05:22:48 +0400
committerSteven Rostedt <rostedt@goodmis.org>2009-06-17 22:16:27 +0400
commit8d707e8eb4de4b930573155ab4df4b3270ee25dd (patch)
tree2594b38c73fa1c944587f62a2f9ce70fe4f90ce4 /kernel/trace/ring_buffer_benchmark.c
parentd47882078f05c2cb46b85f1e12a58ed9315b9d63 (diff)
downloadlinux-8d707e8eb4de4b930573155ab4df4b3270ee25dd.tar.xz
ring-buffer: do not grab locks in nmi
If ftrace_dump_on_oops is set, and an NMI detects a lockup, then it will need to read from the ring buffer. But the read side of the ring buffer still takes locks. This patch adds a check on the read side that if it is in an NMI, then it will disable the ring buffer and not take any locks. Reads can still happen on a disabled ring buffer. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/ring_buffer_benchmark.c')
0 files changed, 0 insertions, 0 deletions