diff options
author | David Sharp <[email protected]> | 2010-12-08 13:46:47 -0800 |
---|---|---|
committer | Steven Rostedt <[email protected]> | 2011-03-09 13:52:27 -0500 |
commit | 750912fa366312e9c5bc83eab352898a26750401 (patch) | |
tree | bb8e5cd1444a74ea283e3fa55607225e7fda4d70 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 2a8247a2600c3e087a568fc68a6ec4eedac27ef1 (diff) |
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 protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions