2017-03-26 11 views
0

基本的にftraceログを読むには2つの方法があります。 いずれかが/ SYS /カーネル/デバッグ/トレース/ トレースまたは /SYS /カーネル/デバッグ/トレース/ trace_pipeから読み出さ から読み出さftraceでtrace_pipeのバッファサイズを設定する方法は?

前者のバッファサイズは /SYS /カーネル/デバッグを使用して設定することができる

/tracing/buffer_size_kb

trace_pipeのバッファサイズを設定することは可能ですか?はいの場合、どうですか?

答えて

0

有効なデータがない場合は、ライブトレースとブロックを提供するため、trace_pipeのバッファサイズを設定する必要はありません。もっと(https://www.kernel.org/doc/Documentation/trace/ftrace.txt)で読む

trace_pipe:

The output is the same as the "trace" file but this 
file is meant to be streamed with live tracing. 
Reads from this file will block until new data is 
retrieved. Unlike the "trace" file, this file is a 
consumer. This means reading from this file causes 
sequential reads to display more current data. Once 
data is read from this file, it is consumed, and 
will not be read again with a sequential read. The 
"trace" file is static, and if the tracer is not 
adding more data, it will display the same 
information every time it is read. 
+0

ご回答をお寄せいただきありがとうございますしかし、あなたは正しく私の質問を理解していない可能性があります。私は再びそれを明確にしましょう。私が疑問に思うのは、timestamp、t1でtrace_pipeからデータを読み始めると、ft1ログのみをt1時間から、またはt1-K時間(Kは定数)から得ます。 –

+0

あなたが説明したことは、トレースにも当てはまります。 trace_pipeでは使用できません。 – rk1825

関連する問題