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

@@ -2,7 +2,7 @@
OUT_DIR ?= .
all:
$(CC) -o $(OUT_DIR)/acrntrace acrntrace.c sbuf.c -I. -lpthread
$(CC) -o $(OUT_DIR)/acrntrace acrntrace.c sbuf.c -I. -lpthread -lrt
clean:
rm -f $(OUT_DIR)/acrntrace