• S
    ring-buffer: remove ring_buffer_event_discard · dc892f73
    Steven Rostedt 提交于
    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: NSteven Rostedt <rostedt@goodmis.org>
    dc892f73
ring_buffer.c 94.5 KB