acrntrace: Add opt to specify the cpus where we should capture the data

This patch adds one new option '-a' to specify the cpus where we should
capture the trace data. If the this option is not set or set with wrong
optarg, we will capture the trace data of all possible cpus.

The set of the cpus can be specified as A,B,C, or A-C, or A,D-F, and so on.

Tracked-On: #4175
Acked-by: Yan, Like <like.yan@intel.com>
Signed-off-by: Kaige Fu <kaige.fu@intel.com>
This commit is contained in:
Kaige Fu
2019-11-29 11:00:34 +00:00
committed by wenlingz
parent 366f4be454
commit 9e9e1f61ad
3 changed files with 32 additions and 9 deletions

View File

@@ -24,6 +24,7 @@ Options:
-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
-a cpu-set only capture the trace data on these configured cpu-set
acrntrace_format.py
===================