tools:acrn-crashlog: update operations about vmrecord

Replace vmrecord file operations with new functions in vmrecord.c.

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-18 16:00:38 +08:00
committed by ACRN System Integration
parent b5236f21fd
commit 84cf7156ae
5 changed files with 53 additions and 154 deletions

View File

@@ -11,6 +11,7 @@
#include <ext2fs/ext2fs.h>
#include "event_queue.h"
#include "probeutils.h"
#include "vmrecord.h"
#define CONTENT_MAX 10
#define EXPRESSION_MAX 5
@@ -136,7 +137,7 @@ struct sender_t {
struct uptime_t *uptime;
void (*send)(struct event_t *);
char *log_vmrecordid;
struct vmrecord_t vmrecord;
int sw_updated; /* each sender has their own record */
};