@@ -125,10 +125,13 @@ of ftrace. Here is a list of some of the key files:
125
125
trace:
126
126
127
127
This file holds the output of the trace in a human
128
- readable format (described below). Note, tracing is temporarily
129
- disabled when the file is open for reading. Once all readers
130
- are closed, tracing is re-enabled. Opening this file for
128
+ readable format (described below). Opening this file for
131
129
writing with the O_TRUNC flag clears the ring buffer content.
130
+ Note, this file is not a consumer. If tracing is off
131
+ (no tracer running, or tracing_on is zero), it will produce
132
+ the same output each time it is read. When tracing is on,
133
+ it may produce inconsistent results as it tries to read
134
+ the entire buffer without consuming it.
132
135
133
136
trace_pipe:
134
137
@@ -142,9 +145,7 @@ of ftrace. Here is a list of some of the key files:
142
145
will not be read again with a sequential read. The
143
146
"trace" file is static, and if the tracer is not
144
147
adding more data, it will display the same
145
- information every time it is read. Unlike the
146
- "trace" file, opening this file for reading will not
147
- temporarily disable tracing.
148
+ information every time it is read.
148
149
149
150
trace_options:
150
151
0 commit comments