mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-07 03:40:27 +00:00
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>
This commit is contained in:
@@ -6,6 +6,33 @@
|
||||
#ifndef __EVENT_QUEUE_H__
|
||||
#define __EVENT_QUEUE_H__
|
||||
|
||||
#include <sys/queue.h>
|
||||
|
||||
enum event_type_t {
|
||||
CRASH,
|
||||
INFO,
|
||||
UPTIME,
|
||||
HEART_BEAT,
|
||||
REBOOT,
|
||||
VM,
|
||||
UNKNOWN
|
||||
};
|
||||
|
||||
__extension__
|
||||
struct event_t {
|
||||
int watchfd;
|
||||
enum event_type_t event_type;
|
||||
char *channel;
|
||||
void *private;
|
||||
|
||||
TAILQ_ENTRY(event_t) entries;
|
||||
|
||||
/* dir to storage logs */
|
||||
char *dir;
|
||||
int len;
|
||||
char path[0]; /* keep this at tail*/
|
||||
};
|
||||
|
||||
void init_event_queue(void);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user