mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-09 02:24:45 +00:00
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:
@@ -11,6 +11,7 @@ TRACE_CFLAGS += -Werror
|
||||
TRACE_CFLAGS += -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
|
||||
TRACE_CFLAGS += -Wformat -Wformat-security -fno-strict-aliasing
|
||||
TRACE_CFLAGS += -fpie -fpic
|
||||
TRACE_CFLAGS += -lnuma
|
||||
TRACE_CFLAGS += $(CFLAGS)
|
||||
|
||||
GCC_MAJOR=$(shell echo __GNUC__ | $(CC) -E -x c - | tail -n 1)
|
||||
|
||||
Reference in New Issue
Block a user