|
@@ -2327,32 +2327,17 @@ static inline void rb_event_discard(struct ring_buffer_event *event)
|
|
|
event->time_delta = 1;
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * ring_buffer_event_discard - discard any event in the ring buffer
|
|
|
- * @event: the event to discard
|
|
|
- *
|
|
|
- * Sometimes a event that is in the ring buffer needs to be ignored.
|
|
|
- * This function lets the user discard an event in the ring buffer
|
|
|
- * and then that event will not be read later.
|
|
|
- *
|
|
|
- * Note, it is up to the user to be careful with this, and protect
|
|
|
- * against races. If the user discards an event that has been consumed
|
|
|
- * it is possible that it could corrupt the ring buffer.
|
|
|
- */
|
|
|
-void ring_buffer_event_discard(struct ring_buffer_event *event)
|
|
|
-{
|
|
|
- rb_event_discard(event);
|
|
|
-}
|
|
|
-EXPORT_SYMBOL_GPL(ring_buffer_event_discard);
|
|
|
-
|
|
|
/**
|
|
|
* ring_buffer_commit_discard - discard an event that has not been committed
|
|
|
* @buffer: the ring buffer
|
|
|
* @event: non committed event to discard
|
|
|
*
|
|
|
- * This is similar to ring_buffer_event_discard but must only be
|
|
|
- * performed on an event that has not been committed yet. The difference
|
|
|
- * is that this will also try to free the event from the ring buffer
|
|
|
+ * Sometimes an event that is in the ring buffer needs to be ignored.
|
|
|
+ * This function lets the user discard an event in the ring buffer
|
|
|
+ * and then that event will not be read later.
|
|
|
+ *
|
|
|
+ * This function only works if it is called before the the item has been
|
|
|
+ * committed. It will try to free the event from the ring buffer
|
|
|
* if another event has not been added behind it.
|
|
|
*
|
|
|
* If another event has been added behind it, it will set the event
|