Home
last modified time | relevance | path

Searched refs:g_hiviewConfig (Results 1 – 13 of 13) sorted by relevance

/base/hiviewdfx/hiview_lite/
Dhiview_config.c19 HiviewConfig g_hiviewConfig = { variable
31 g_hiviewConfig.hiviewInited = FALSE; in HiviewConfigInit()
32 g_hiviewConfig.logOutputModule = (uint64_t)LOG_OUTPUT_MODULE; in HiviewConfigInit()
33 g_hiviewConfig.writeFailureCount = 0; in HiviewConfigInit()
Dhiview_config.h97 extern HiviewConfig g_hiviewConfig;
Dhiview_service.c69 g_hiviewConfig.hiviewInited = TRUE; in Initialize()
/base/hiviewdfx/hilog_lite/command/
Dhilog_command.c53 HiviewConfig g_hiviewConfig = { variable
86 g_hiviewConfig.level = level; in SetLogLevel()
100 int modSize = sizeof(g_hiviewConfig.logOutputModule); in SetOutputDomain()
102 (void)memset_s(g_hiviewConfig.logOutputModule, modSize, '0', modSize); in SetOutputDomain()
108 …if (strncpy_s(g_hiviewConfig.logOutputModule + destStart, modSize - destStart, mod + sourceStart, … in SetOutputDomain()
113 printf("Set log domain : %s \n", g_hiviewConfig.logOutputModule); in SetOutputDomain()
183 g_hiviewConfig.silenceMod = SILENT_MODE_ON; in HilogSilenceProc()
249 return strncmp(logModule, g_hiviewConfig.logOutputModule, DOMAIN_ID_LENGTH) == 0; in FilterModuleLog()
Dhilog_command.h53 extern HiviewConfig g_hiviewConfig;
/base/hiviewdfx/hilog_lite/services/hilogcat/
Dhiview_logcat.c35 if (ret == -1 || g_hiviewConfig.silenceMod == SILENT_MODE_ON) { in main()
65 printFlag = FilterLevelLog(g_hiviewConfig.level, *(head->msg)); in main()
70 printFlag = FilterModuleLog(g_hiviewConfig.logOutputModule, (head->msg) + MODULE_OFFSET); in main()
/base/hiviewdfx/hilog_lite/frameworks/mini/
Dhiview_log.c28 #define LOG_IS_OUTPUT(mod) (g_hiviewConfig.logOutputModule & (((uint64_t)1) << (mod)))
69 if ((level < g_hiviewConfig.level) || (level < HILOG_COMPILE_LEVEL) || in CheckParameters()
119 if (g_hiviewConfig.logSwitch == HIVIEW_FEATURE_OFF || !CheckParameters(module, level) || in HiLogPrintf()
154 if (g_hiviewConfig.logSwitch == HIVIEW_FEATURE_OFF || !CheckParameters(module, level) || in HILOG_HashPrintf()
228 return g_hiviewConfig.level; in HiLogGetLogLevel()
234 g_hiviewConfig.level = level; in HiLogSetLogLevel()
Dhiview_output_log.c100 int8 opt = GETOPTION(g_hiviewConfig.outputOption); in InitLogOutput()
117 int8 opt = GETOPTION(g_hiviewConfig.outputOption); in ClearLogOutput()
160 int8 opt = GETOPTION(g_hiviewConfig.outputOption); in OutputLog()
161 boolean isPrint = g_hiviewConfig.outputOption >= OUTPUT_OPTION_PRINT; in OutputLog()
174 if (g_hiviewConfig.hiviewInited == FALSE) { in OutputLog()
274 g_hiviewConfig.writeFailureCount++; in OutputLog2TextFile()
335 g_hiviewConfig.writeFailureCount++; in OutputLog2BinFile()
376 } else if (GETOPTION(g_hiviewConfig.outputOption) == OUTPUT_OPTION_DEBUG) { in LogContentFmt()
602 int8 opt = GETOPTION(g_hiviewConfig.outputOption); in FlushLog()
645 return GETOPTION(g_hiviewConfig.outputOption); in HiviewGetConfigOption()
Dhiview_log_limit.c61 if (GETOPTION(g_hiviewConfig.outputOption) == OUTPUT_OPTION_DEBUG) { in LogIsLimited()
/base/hiviewdfx/hievent_lite/command/
Dhievent_lite_command.c83 if (g_hiviewConfig.eventSwitch == HIVIEW_FEATURE_ON) { in HieventSetProc()
106g_hiviewConfig.eventSwitch = (flag == HIVIEW_FEATURE_ON) ? HIVIEW_FEATURE_ON : HIVIEW_FEATURE_OFF in SwitchEvent()
/base/hiviewdfx/hievent_lite/frameworks/
Dhiview_event.c43 if (g_hiviewConfig.eventSwitch == HIVIEW_FEATURE_ON && HIEVENT_COMPILE_TYPE > HIEVENT_NONE) { in HiEventInit()
53 if (g_hiviewConfig.eventSwitch == HIVIEW_FEATURE_OFF) { in HiEventPrintf()
75 if (g_hiviewConfig.eventSwitch == HIVIEW_FEATURE_OFF || num > EVENT_VALUE_MAX_NUM) { in HiEventCreate()
99 … if (g_hiviewConfig.eventSwitch == HIVIEW_FEATURE_OFF || event == NULL || event->payload == NULL || in HiEventPutInteger()
116 … if (g_hiviewConfig.eventSwitch == HIVIEW_FEATURE_OFF || event == NULL || event->payload == NULL) { in HiEventReport()
Dhiview_output_event.c118 int8 opt = GETOPTION(g_hiviewConfig.outputOption); in ClearEventOutput()
128 int8 opt = GETOPTION(g_hiviewConfig.outputOption); in InitFaultEventOutput()
146 int8 opt = GETOPTION(g_hiviewConfig.outputOption); in InitUeEventOutput()
161 int8 opt = GETOPTION(g_hiviewConfig.outputOption); in InitStatEventOutput()
250 int8 opt = GETOPTION(g_hiviewConfig.outputOption); in OutputEvent()
367 g_hiviewConfig.writeFailureCount++; in Output2Flash()
467 switch (GETOPTION(g_hiviewConfig.outputOption)) { in FlushEventAsync()
493 switch (GETOPTION(g_hiviewConfig.outputOption)) { in FlushEventInfo()
/base/hiviewdfx/hilog_lite/services/apphilogcat/
Dhiview_applogcat.c212 printFlag = FilterLevelLog(g_hiviewConfig.level, *(head->msg)); in main()
217 printFlag = FilterModuleLog(g_hiviewConfig.logOutputModule, (head->msg) + MODULE_OFFSET); in main()
227 if (g_hiviewConfig.silenceMod == SILENT_MODE_OFF) { in main()