mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-09 02:24:45 +00:00
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:
committed by
ACRN System Integration
parent
901ce53971
commit
728a480693
@@ -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*/
|
||||
};
|
||||
|
||||
@@ -48,7 +48,7 @@ void generate_crashfile(const char *dir, const char *event, size_t elen,
|
||||
const char *type, size_t tlen, const char *data0,
|
||||
size_t d0len, const char *data1, size_t d1len,
|
||||
const char *data2, size_t d2len);
|
||||
char *generate_log_dir(enum e_dir_mode mode, char *hashkey);
|
||||
char *generate_log_dir(enum e_dir_mode mode, char *hashkey, size_t *dlen);
|
||||
int is_boot_id_changed(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#define VMRECORD_TAG_NOT_FOUND "NOT_FOUND"
|
||||
#define VMRECORD_TAG_MISS_LOG "MISS_LOGS"
|
||||
#define VMRECORD_TAG_ON_GOING " ON_GOING"
|
||||
#define VMRECORD_TAG_NO_RESOURCE "NO_RESORC"
|
||||
#define VMRECORD_TAG_SUCCESS " "
|
||||
|
||||
enum vmrecord_mark_t {
|
||||
@@ -20,6 +21,7 @@ enum vmrecord_mark_t {
|
||||
NOT_FOUND,
|
||||
WAITING_SYNC,
|
||||
ON_GOING,
|
||||
NO_RESRC,
|
||||
MISS_LOG
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user