Home
last modified time | relevance | path

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

/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/test/common/moduletest/
Dfaultlogger_native_interface_test.cpp55 auto info = CreateFaultLogInfo(now, getuid(), FaultLogType::CPP_CRASH, "faultloggertest");
77 AddFaultLog(now, FaultLogType::CPP_CRASH, module, "faultloggertestsummary2");
101 AddFaultLog(now + i, FaultLogType::CPP_CRASH, module, "faultloggertestsummary2");
130 AddFaultLog(now + i, FaultLogType::CPP_CRASH, module, "faultloggertestsummary6");
142 auto result = QuerySelfFaultLog(FaultLogType::NO_SPECIFIC, maxQueryCount);
185 auto result = QuerySelfFaultLog(FaultLogType::NO_SPECIFIC, maxQueryCount);
187 auto result2 = QuerySelfFaultLog(FaultLogType::NO_SPECIFIC, maxQueryCount);
205 auto result = QuerySelfFaultLog(FaultLogType::CPP_CRASH, maxQueryCount);
207 auto result2 = QuerySelfFaultLog(FaultLogType::CPP_CRASH, maxQueryCount);
225 …auto result = QuerySelfFaultLog(static_cast<OHOS::HiviewDFX::FaultLogType>(-1), -1); // -1 : inval…
[all …]
/base/hiviewdfx/hiview/plugins/faultlogger/common/
Dfaultlog_util.cpp56 case FaultLogType::JS_CRASH: in GetFaultNameByType()
58 case FaultLogType::CPP_CRASH: in GetFaultNameByType()
60 case FaultLogType::APP_FREEZE: in GetFaultNameByType()
62 case FaultLogType::SYS_FREEZE: in GetFaultNameByType()
64 case FaultLogType::RUST_PANIC: in GetFaultNameByType()
93 return FaultLogType::JS_CRASH; in GetLogTypeByName()
95 return FaultLogType::CPP_CRASH; in GetLogTypeByName()
97 return FaultLogType::APP_FREEZE; in GetLogTypeByName()
99 return FaultLogType::SYS_FREEZE; in GetLogTypeByName()
101 return FaultLogType::ALL; in GetLogTypeByName()
Dfaultlog_info.h38 enum FaultLogType { enum
/base/hiviewdfx/hiview/plugins/faultlogger/service/
Dfaultlog_formatter.cpp95 case FaultLogType::CPP_CRASH: in GetLogParseList()
97 case FaultLogType::JS_CRASH: in GetLogParseList()
99 case FaultLogType::APP_FREEZE: in GetLogParseList()
101 case FaultLogType::SYS_FREEZE: in GetLogParseList()
103 case FaultLogType::RUST_PANIC: in GetLogParseList()
114 case FaultLogType::JS_CRASH: in GetSummaryByType()
115 case FaultLogType::APP_FREEZE: in GetSummaryByType()
116 case FaultLogType::SYS_FREEZE: in GetSummaryByType()
119 case FaultLogType::CPP_CRASH: in GetSummaryByType()
Dfaultlog_database.cpp105 if (faultType == FaultLogType::JS_CRASH || faultType == FaultLogType::ALL) { in CreateQueries()
115 if (faultType != FaultLogType::JS_CRASH) { in CreateQueries()
118 if (faultType == FaultLogType::ALL) { in CreateQueries()
136 if (faultType < FaultLogType::ALL || faultType > FaultLogType::RUST_PANIC) { in GetFaultInfoList()
175 if (faultType < FaultLogType::ALL || faultType > FaultLogType::RUST_PANIC) { in IsFaultExist()
Dfaultlogger.cpp363 info.faultLogType = isJsError ? FaultLogType::JS_CRASH : FaultLogType::RUST_PANIC; in OnEvent()
500 if ((faultType < FaultLogType::ALL) || (faultType > FaultLogType::RUST_PANIC)) { in QuerySelfFaultLog()
522 … if ((info.faultLogType <= FaultLogType::ALL) || (info.faultLogType > FaultLogType::RUST_PANIC)) { in AddFaultLogIfNeed()
542 …if (info.faultLogType != FaultLogType::JS_CRASH && info.faultLogType != FaultLogType::RUST_PANIC) { in AddFaultLogIfNeed()
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/include/
Dfaultlogger_client.h74 enum FaultLogType { enum
134 std::unique_ptr<FaultLogQueryResult> QuerySelfFaultLog(FaultLogType faultType, int32_t maxNum);
/base/hiviewdfx/hiview/plugins/faultlogger/test/common/fuzztest/faultloggerclient_fuzzer/
Dfaultlogger_client_fuzzer.cpp30 inner.faultLogType = static_cast<HiviewDFX::FaultLogType>(*data); in FuzzInterfaceAddFaultLog()
41 auto type = static_cast<HiviewDFX::FaultLogType>(*data); in FuzzInterfaceQuerySelfFaultLog()
/base/hiviewdfx/hiview/plugins/faultlogger/test/common/unittest/
Dfaultlogger_client_unittest.cpp55 auto info = CreateFaultLogInfo(now, getuid(), FaultLogType::CPP_CRASH, "faultlogtest0");
91 auto info = CreateFaultLogInfo(now, getuid(), FaultLogType::CPP_CRASH, "faultlogtest1"); in __anonb2b276460102()
127 auto result = QuerySelfFaultLog(FaultLogType::NO_SPECIFIC, maxQueryCount);
Dfaultlogger_unittest.cpp438 ASSERT_EQ(info.faultLogType, FaultLogType::APP_FREEZE); // 4 : APP_FREEZE
452 ASSERT_EQ(info.faultLogType, FaultLogType::APP_FREEZE); // 4 : APP_FREEZE
457 ASSERT_EQ(info3.faultLogType, FaultLogType::JS_CRASH); // 3 : JS_CRASH
462 ASSERT_EQ(info4.faultLogType, FaultLogType::CPP_CRASH); // 2 : CPP_CRASH
467 ASSERT_EQ(info5.faultLogType, FaultLogType::ALL); // 0 : ALL
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/js/napi/
Dnapi_faultlogger.cpp82 auto faultLogResult = QuerySelfFaultLog((FaultLogType)faultLogInfoContext->faultType, in FaultLogExecuteCallback()
319 napi_create_int32(env, FaultLogType::NO_SPECIFIC, &noSpecific); in FaultLogTypeEnumInit()
320 napi_create_int32(env, FaultLogType::CPP_CRASH, &cppCrash); in FaultLogTypeEnumInit()
321 napi_create_int32(env, FaultLogType::JS_CRASH, &jsCrash); in FaultLogTypeEnumInit()
322 napi_create_int32(env, FaultLogType::APP_FREEZE, &appCrash); in FaultLogTypeEnumInit()
364 napi_create_int32(env, FaultLogType::NO_SPECIFIC, &type); in FaultLogInfoClassInit()
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/impl/
Dfaultlogger_client.cpp124 std::unique_ptr<FaultLogQueryResult> QuerySelfFaultLog(FaultLogType faultType, int32_t maxNum) in QuerySelfFaultLog()
/base/hiviewdfx/hiview/plugins/freeze_detector/
Dvendor.cpp106 ? FaultLogType::APP_FREEZE : FaultLogType::SYS_FREEZE; in SendFaultLog()