• S
    ftrace: user run time file reading · b3806b43
    Steven Rostedt 提交于
    This patch creates a file called trace_pipe in the tracing
    debug directory. This file is a consumer of the trace buffers.
    This means that reads of this file consumes the entries from
    the trace buffers so that they will not be read a second time,
    as contrast to the static buffers latency_trace and trace.
    
    Reading from the trace_pipe will remove the entries from trace
    and latency_trace too.
    
    The advantage that trace_pipe has is that it can record live
    traces. It will block when there is nothing in the buffer,
    and read the entries as they are entered.  An EOF happens when
    tracing is disabled (tracing_enabled = 0).
    Signed-off-by: NSteven Rostedt <srostedt@redhat.com>
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
    b3806b43
trace.h 6.1 KB