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

@@ -9,6 +9,9 @@
#include "event_queue.h"
#include "log_sys.h"
const char *etype_str[] = {"CRASH", "INFO", "UPTIME", "HEART_BEAT",
"REBOOT", "VM", "UNKNOWN"};
static pthread_mutex_t eq_mtx = PTHREAD_MUTEX_INITIALIZER;
static pthread_cond_t pcond = PTHREAD_COND_INITIALIZER;
TAILQ_HEAD(, event_t) event_q;