lkml.org 
[lkml]   [2011]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subjectftrace: trace_pipe_raw, blocking, and splice()
From
Hi ftrace users,

I notice that tracing_buffers_splice_read() has this comment in it
around line 3900:

/* TODO: block */

Was the original intention that reading from trace_pipe_raw with
tracing enabled should block if there is no data available, rather
than returning with end of file?

If so, I suggest adding a new trace_raw special file which behaves
like the current trace_pipe_raw (return 0 on EOF). Then we'd change
trace_pipe_raw to block on EOF.

Does this sound reasonable or is breaking APIs like this unacceptable?

Slava


\
 
 \ /
  Last update: 2011-07-13 02:29    [W:0.035 / U:0.332 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site