Liu, Xinwu
41b39c5e1f
tools: acrn-crashlog: Defer the vm events processing when failed
...
In the original design, acrnprobe marked all handled VMs'events as "synced"
in file vmrecordid(this patch changes the name to VM_eventsID.log).
Currently, the Android log events are not logged if the first attempt at
reading collecting them from the VM fails. This patch changes the logic
so that the acrn-crashlog tool will retry continuously.
This patch defines different tags for handled VMs'events, and only marks
VMs'events "synced" after it returns successfully.
Signed-off-by: Liu, Xinwu <xinwu.liu@intel.com >
Reviewed-by: xiaojin2 <xiaojing.liu@intel.com >
Reviewed-by: Jin Zhi <zhi.jin@intel.com >
Acked-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com >
Acked-by: Chen gang <gang.c.chen@intel.com >
2018-06-29 15:23:18 +08:00
Liu Xinwu
543cdce6c6
tools: acrn-crashlog: add more functions to file system utils
...
More file system operations for acrn-crashlog.
Signed-off-by: Liu Xinwu <xinwu.liu@intel.com >
Signed-off-by: CHEN Gang <gang.c.chen@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
87b8968314
tools: acrn-crashlog: file system utils for acrn-crashlog
...
This file provides file system operations for acrn-crashlog.
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
88ba420af1
tools: acrn-crashlog: command utils for acrn-crashlog
...
This file provides functions to call system commands.
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
780fefcc20
tools: acrn-crashlog: string utils for acrn-crashlog
...
This file provides some string operations for acrn-crashlog.
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
6f9dfa49bf
tools: acrn-crashlog: framework of acrn-crashlog
...
This is the first patch of acrn-crashlog.
This patch initializes the framework of acrn-crashlog: acrnprobe,
common, data, and usercrash. And it initializes the Makefile for
each part.
Signed-off-by: Liu Xinwu <xinwu.liu@intel.com >
Signed-off-by: CHEN Gang <gang.c.chen@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