Skip to content
  • Steven Rostedt's avatar
    tracing: Fix read blocking on trace_pipe_raw · b627344f
    Steven Rostedt authored
    
    
    If the ring buffer is empty, a read to trace_pipe_raw wont block.
    The tracing code has the infrastructure to wake up waiting readers,
    but the trace_pipe_raw doesn't take advantage of that.
    
    When a read is done to trace_pipe_raw without the O_NONBLOCK flag
    set, have the read block until there's data in the requested buffer.
    
    Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
    b627344f