Skip to content
  • Steven Rostedt's avatar
    tracing: only add splice page if entries exist · 93459c6c
    Steven Rostedt authored
    
    
    The splice code allocates a page even when the ring buffer is empty.
    It detects the ring buffer being empty when it it fails to copy
    anything from the ring buffer into the page.
    
    This patch adds a check to see if there is anything in the ring buffer
    before allocating a page.
    
    Thanks to logdev for letting me trace the tracer to find this.
    
    [ Impact: speed up due to removing unnecessary allocation ]
    
    Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
    93459c6c