tools: acrn-crashlog: interfaces to control history_event in acrnprobe

"history_event" is the file to manage all evebts collected by
acrnprobe. This patch provides the operation APIs for this file in a
fixed format.

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:
Liu Xinwu
2018-05-09 18:21:01 +08:00
committed by lijinxia
parent 384c195faa
commit 2cea6129eb
2 changed files with 268 additions and 1 deletions

View File

@@ -22,6 +22,14 @@
#ifndef __HISTORY_H__
#define __HISTORY_H__
#define HISTORY_NAME "history_event"
extern char *history_file;
int prepare_history(void);
void hist_raise_infoerror(char *type);
void hist_raise_uptime(char *lastuptime);
void hist_raise_event(char *event, char *type, char *log, char *lastuptime,
char *key);
#endif