Commit 750912fa authored by Committed by Steven RostedtBrowse files
tracing: Add an 'overwrite' trace_option.
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: David Sharp <email@example.com> LKML-Reference: <firstname.lastname@example.org> Signed-off-by: Steven Rostedt <email@example.com>