• Steven Rostedt's avatar
    ring-buffer: Make benchmark handle missed events · a838b2e6
    Steven Rostedt authored
    With the addition of the "missed events" flags that is stored in the
    commit field of the ring buffer page, the ring_buffer_benchmark
    was not updated to handle this. If events are missed, then the
    missed events flag is set in the ring buffer page, the benchmark
    will count that flag as part of the size of the page and will hit the BUG()
    when it tries to read beyond the page.
    
    The solution is simply to have the ring buffer benchmark mask off
    the extra bits.
    Reported-by: default avatarIngo Molnar <mingo@elte.hu>
    Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
    a838b2e6
ring_buffer_benchmark.c 10.5 KB