tracing: limit the number of loops the ring buffer self test can make
authorSteven Rostedt <srostedt@redhat.com>
Thu, 19 Feb 2009 03:50:01 +0000 (22:50 -0500)
committerSteven Rostedt <srostedt@redhat.com>
Thu, 19 Feb 2009 03:50:01 +0000 (22:50 -0500)
Impact: prevent deadlock if ring buffer gets corrupted

This patch adds a paranoid check to make sure the ring buffer consumer
does not go into an infinite loop. Since the ring buffer has been set
to read only, the consumer should not loop for more than the ring buffer
size. A check is added to make sure the consumer does not loop more than
the ring buffer size.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>

No differences found