ring-buffer: try to discard unneeded timestamps
authorSteven Rostedt <srostedt@redhat.com>
Wed, 3 Jun 2009 03:00:53 +0000 (23:00 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 3 Jun 2009 14:15:22 +0000 (10:15 -0400)
There are times that a race may happen that we add a timestamp in a
nested write. This timestamp would just contain a zero delta and serves
no purpose.

Now that we have a way to discard events, this patch will try to discard
the timestamp instead of just wasting the space in the ring buffer.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ring_buffer.c

Simple merge