• S
    ring-buffer: fix check of try_to_discard result · 0f2541d2
    Steven Rostedt 提交于
    The function ring_buffer_discard_commit inversed the code path
    of the result of try_to_discard. It should skip incrementing the
    entry counter if try_to_discard succeeded. But instead, it increments
    the entry conder if it succeeded to discard, and does not increment
    it if it fails.
    
    The result of this bug is that filtering will make the stat counters
    incorrect.
    Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
    0f2541d2
ring_buffer.c 79.0 KB