Searched refs:g_logCache (Results 1 – 1 of 1) sorted by relevance
/base/hiviewdfx/hilog_lite/frameworks/mini/ |
D | hiview_output_log.c | 46 static HiviewCache g_logCache = { variable 91 InitHiviewStaticCache(&g_logCache, LOG_CACHE, g_logCacheBuffer, sizeof(g_logCacheBuffer)); in InitCoreLogOutput() 118 if (g_logCache.usedSize > 0) { in ClearLogOutput() 175 if (WriteToCache(&g_logCache, data, len) != (int32)len) { in OutputLog() 182 if (WriteToCache(&g_logCache, (uint8 *)data, len) != (int32)len) { in OutputLog() 186 if (g_logCache.usedSize >= HIVIEW_HILOG_FILE_BUF_SIZE) { in OutputLog() 204 WriteToCache(&g_logCache, (uint8 *)data, len); in OutputLog() 216 while (ReadFromCache(&g_logCache, (uint8 *)&(logContent.commonContent), in OutputLogRealtime() 219 DiscardCacheData(&g_logCache); in OutputLogRealtime() 224 if (len > 0 && ReadFromCache(&g_logCache, (uint8 *)&(logContent.values), len) != len) { in OutputLogRealtime() [all …]
|