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>
This commit is contained in:
Liu, Xinwu
2019-04-19 13:46:46 +08:00
committed by ACRN System Integration
parent 901ce53971
commit 728a480693
7 changed files with 162 additions and 136 deletions

View File

@@ -18,6 +18,8 @@ enum event_type_t {
UNKNOWN
};
extern const char *etype_str[];
__extension__
struct event_t {
int watchfd;
@@ -29,6 +31,7 @@ struct event_t {
/* dir to storage logs */
char *dir;
size_t dlen;
int len;
char path[0]; /* keep this at tail*/
};