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)
commitedd813bffc62a980bb4fb9b1243f31c1cce78da3
tree45dd8b0ca7b74f05bd545a1c3c7c4d2137f1b1d0
parenta2023556409cf7fec5d67a26f7fcfa57c5a4086d
ring-buffer: try to discard unneeded timestamps

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