120 if (logDir == NULL ||
info == NULL) {
121 BBOX_PRINT_ERR(
"logDir: %p, info: %p!\n", logDir,
info);
125 BBOX_PRINT_ERR(
"g_logBuffer is NULL, alloc physical pages failed!\n");
129 if (strcmp(
info->
event, EVENT_PANIC) == 0) {
131 (
void)memset_s(pLogInfo,
sizeof(*pLogInfo), 0,
sizeof(*pLogInfo));
132#ifdef LOSCFG_SAVE_EXCINFO
137 (
void)memcpy_s(&pLogInfo->
flag,
sizeof(pLogInfo->
flag), LOG_FLAG, strlen(LOG_FLAG));
138 (
void)memcpy_s(&pLogInfo->
info,
sizeof(pLogInfo->
info),
info,
sizeof(*info));
141#ifdef LOSCFG_SAVE_EXCINFO
static void SaveFaultLog(const char *filePath, const char *dataBuf, size_t bufSize, struct ErrorInfo *info)
UINT32 GetExcInfoIndex(VOID)
获取异常信息索引位
VOID DCacheFlushRange(UINT32 start, UINT32 end)
char event[EVENT_MAX_LEN]
ARG_NUM_3 ARG_NUM_1 ARG_NUM_2 ARG_NUM_2 ARG_NUM_3 ARG_NUM_1 ARG_NUM_4 ARG_NUM_2 ARG_NUM_2 ARG_NUM_5 ARG_NUM_2 void