commit | b627344fef0c38fa4e3050348e168e46db87c905 | [log] [tgz] |
---|---|---|
author | Steven Rostedt <srostedt@redhat.com> | Thu Feb 28 13:44:11 2013 -0500 |
committer | Steven Rostedt <rostedt@goodmis.org> | Fri Mar 15 00:34:49 2013 -0400 |
tree | d828a640959fcb39667cbc56cd7cf8e75f34636f | |
parent | cc60cdc952be09bca5b0bff9fefc7aa6185c3049 [diff] |
tracing: Fix read blocking on trace_pipe_raw 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: Steven Rostedt <rostedt@goodmis.org>