]> git.baikalelectronics.ru Git - kernel.git/commit
ring-buffer: remove ring_buffer_event_discard
authorSteven Rostedt <srostedt@redhat.com>
Thu, 3 Sep 2009 19:33:41 +0000 (15:33 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 4 Sep 2009 15:36:19 +0000 (11:36 -0400)
commita2968e595ff9d007332758ab5c69ea1d4f4e272c
tree3377439556b600c7bd3d53cbc0a893dd75bed634
parentb92baa0ba7431ca06fec04559ae68ec9dc78efd4
ring-buffer: remove ring_buffer_event_discard

The function ring_buffer_event_discard can be used on any item in the
ring buffer, even after the item was committed. This function provides
no safety nets and is very race prone.

An item may be safely removed from the ring buffer before it is committed
with the ring_buffer_discard_commit.

Since there are currently no users of this function, and because this
function is racey and error prone, this patch removes it altogether.

Note, removing this function also allows the counters to ignore
all discarded events (patches will follow).

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