tools: acrntrace: Add option -t for max capture time

If option -t is configured, a timer will be set with configured timeout when
launching acrntrace. When timer fired, acrntrace will exit.

Signed-off-by: Kaige Fu <kaige.fu@intel.com>
Reviewed-by: Eddie Dong <eddie.dong@intel.com>
Reviewed-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
This commit is contained in:
Kaige Fu
2018-07-02 10:59:43 +08:00
committed by lijinxia
parent 5042ba6009
commit d7f071200d
3 changed files with 68 additions and 2 deletions

View File

@@ -19,6 +19,7 @@ Options:
-h print this message
-i period specify polling interval in milliseconds [1-999]
-t max time to capture trace data (in second)
-c clear the buffered old data
-r minimal amount (in MB) of free space kept on the disk
before acrntrace stops