ftrace: trace_pipe implement NONBLOCK
commit2dc8f09571a61d9cb3dc47bba6608689dfe15d16
authorSteven Rostedt <rostedt@goodmis.org>
Mon, 12 May 2008 19:20:58 +0000 (12 21:20 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 23 May 2008 19:47:07 +0000 (23 21:47 +0200)
tree5f23089a821ecff3ae9c57206b10d911f67cd279
parent845279972f1736c3463c9cebd1bad92a0a347176
ftrace: trace_pipe implement NONBLOCK

This patch implements "NONBLOCK" for trace_pipe. If the trace_pipe is opened
with O_NONBLOCK, then the trace_pipe read will not block when buffer is empty.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/trace/trace.c