Liu, Xinwu
728a480693
tools:acrn-crashlog: request resources of SOS in crashlog
...
Dispatch the new event id and log directory in one place.
Tracked-On: #1024
Signed-off-by: Liu, Xinwu <xinwu.liu@intel.com >
Reviewed-by: Liu, Xiaojing <xiaojing.liu@intel.com >
Acked-by: Chen, Gang <gang.c.chen@intel.com >
2019-04-29 17:04:27 +08:00
Liu, Xinwu
6938caa25f
tools: acrn-crashlog: refine the configuration structure
...
1. get string size when parsing configuration.
2. add 'const' for strings got from configuration.
Tracked-On: #1254
Signed-off-by: Liu, Xinwu <xinwu.liu@intel.com >
Reviewed-by: Yonghua Huang <yonghua.huang@intel.com >
Acked-by: Chen Gang <gang.c.chen@intel.com >
2018-10-19 22:49:04 +08:00
Liu Xinwu
bc18f1d65f
tools: acrn-crashlog: event queue operations for acrnprobe
...
There is a global queue to receive all events detected. Genarally,
events are enqueued in channel, and dequeued in event handler.
Signed-off-by: Liu Xinwu <xinwu.liu@intel.com >
Reviewed-by: Zhang Yanmin <yanmin.zhang@intel.com >
Reviewed-by: Liu Chuansheng <chuansheng.liu@intel.com >
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com >
Reviewed-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com >
Acked-by: Eddie Dong <Eddie.dong@intel.com >
2018-05-23 17:10:51 +08:00
Liu Xinwu
a35ef1aa90
tools: acrn-crashlog: configuration module of acrnprobe
...
To show the relationship between configuration items more clearly,
acrnprobe chose xml as its configuration file format.
This file provides functions to parse configuration and load them
into global variable conf.
Signed-off-by: Liu Xinwu <xinwu.liu@intel.com >
Reviewed-by: Zhang Yanmin <yanmin.zhang@intel.com >
Reviewed-by: Liu Chuansheng <chuansheng.liu@intel.com >
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com >
Reviewed-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com >
Acked-by: Eddie Dong <Eddie.dong@intel.com >
2018-05-23 17:10:51 +08:00
Liu Xinwu
e86da09974
tools: acrn-crashlog: main thread of acrn-crashlog/acrnprobe
...
This patch implements the main thread of acrnprobe.
As a log collection mechanism to record critical events on the
platform, acrnprobe provides the following features:
1. detect event.
2. analyze event and determine the event type.
3. collect information for the detected events.
4. archive these information as logs, and generate records.
Signed-off-by: Liu Xinwu <xinwu.liu@intel.com >
Reviewed-by: Zhang Yanmin <yanmin.zhang@intel.com >
Reviewed-by: Liu Chuansheng <chuansheng.liu@intel.com >
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com >
Reviewed-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com >
Acked-by: Eddie Dong <Eddie.dong@intel.com >
2018-05-23 17:10:51 +08:00