• D
    tracing: Add an 'overwrite' trace_option. · 750912fa
    David Sharp 提交于
    Add an "overwrite" trace_option for ftrace to control whether the buffer should
    be overwritten on overflow or not. The default remains to overwrite old events
    when the buffer is full. This patch adds the option to instead discard newest
    events when the buffer is full. This is useful to get a snapshot of traces just
    after enabling traces. Dropping the current event is also a simpler code path.
    Signed-off-by: NDavid Sharp <dhsharp@google.com>
    LKML-Reference: <1291844807-15481-1-git-send-email-dhsharp@google.com>
    Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
    750912fa
trace.h 21.9 KB