Files
kernel_xiaomi_sm8250/include/linux
Steven Rostedt f0d2c681ac ring-buffer: add counters for commit overrun and nmi dropped entries
The WARN_ON in the ring buffer when a commit is preempted and the
buffer is filled by preceding writes can happen in normal operations.
The WARN_ON makes it look like a bug, not to mention, because
it does not stop tracing and calls printk which can also recurse, this
is prone to deadlock (the WARN_ON is not in a position to recurse).

This patch removes the WARN_ON and replaces it with a counter that
can be retrieved by a tracer. This counter is called commit_overrun.

While at it, I added a nmi_dropped counter to count any time an NMI entry
is dropped because the NMI could not take the spinlock.

[ Impact: prevent deadlock by printing normal case warning ]

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2009-05-05 13:51:02 -04:00
..
2009-04-07 10:23:34 +01:00
2009-04-08 00:00:33 -07:00
2009-04-05 02:14:15 -04:00
2009-04-06 20:00:51 -04:00
2009-04-07 08:59:11 +02:00
2009-04-03 14:53:32 -07:00
2009-04-03 14:53:32 -07:00
2009-04-08 14:13:03 +02:00
2009-04-06 16:06:26 +01:00
2009-04-07 08:12:38 +02:00
2009-04-03 17:41:23 -07:00
2009-04-03 17:41:12 -07:00
2009-04-10 21:36:18 +02:00
2009-04-08 14:33:38 -07:00
2009-04-20 12:59:29 -04:00