• Steven Rostedt's avatar
    ring-buffer: Check for end of page in iterator · 3c05d748
    Steven Rostedt authored
    If the iterator comes to an empty page for some reason, or if
    the page is emptied by a consuming read. The iterator code currently
    does not check if the iterator is pass the contents, and may
    return a false entry.
    
    This patch adds a check to the ring buffer iterator to test if the
    current page has been completely read and sets the iterator to the
    next page if necessary.
    Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
    3c05d748
ring_buffer.c 96.6 KB