acrntrace: Set FLAG_CLEAR_BUF by default

Normally, we care more about the current trace data than
buffered old data. So, this patch set FLAG_CLEAR_BUF by
default and adds one new option '-r' to unset the FLAG_CLEAR_BUF
if we want to capture the buffered old data.

---
  v1 -> v2:
  Add 'deprecated' mark to '-c' option

Tracked-On: #4175
Signed-off-by: Kaige Fu <kaige.fu@intel.com>
This commit is contained in:
Kaige Fu
2019-12-01 22:01:02 +00:00
committed by wenlingz
parent 9e9e1f61ad
commit 0bf03b411e
2 changed files with 13 additions and 5 deletions

View File

@@ -23,7 +23,8 @@ Options:
-h print this message
-i period specify polling interval in milliseconds [1-999]
-t max_time max time to capture trace data (in second)
-c clear the buffered old data
-c clear the buffered old data (deprecated)
-r capture the buffered old data instead of clearing it
-a cpu-set only capture the trace data on these configured cpu-set
acrntrace_format.py