Home
last modified time | relevance | path

Searched refs:faultLogType (Results 1 – 24 of 24) sorted by relevance

/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/test/common/fuzztest/faultloggerclient_fuzzer/
H A Dfaultlogger_client_fuzzer.cpp30 int32_t faultLogType {0}; in FuzzInterfaceAddFaultLog() local
31 …setTotalLength = sizeof(inner.time) + sizeof(inner.id) + sizeof(inner.pid) + sizeof(faultLogType) + in FuzzInterfaceAddFaultLog()
40 STREAM_TO_VALUEINFO(data, faultLogType); in FuzzInterfaceAddFaultLog()
41 …inner.faultLogType = abs(faultLogType % 10); // 10 : get the absolute value of the last digit of t… in FuzzInterfaceAddFaultLog()
56 HiviewDFX::AddFaultLog(inner.time, inner.faultLogType, inner.module, inner.summary); in FuzzInterfaceAddFaultLog()
61 int32_t faultLogType; in FuzzInterfaceQuerySelfFaultLog() local
63 int offsetTotalLength = sizeof(faultLogType) + sizeof(count); in FuzzInterfaceQuerySelfFaultLog()
68 STREAM_TO_VALUEINFO(data, faultLogType); in FuzzInterfaceQuerySelfFaultLog()
69faultLogType = abs(faultLogType % 10); // 10 : get the absolute value of the last digit of the num… in FuzzInterfaceQuerySelfFaultLog()
72 HiviewDFX::FaultLogType type = static_cast<HiviewDFX::FaultLogType>(faultLogType); in FuzzInterfaceQuerySelfFaultLog()
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/service/
H A Dfaultlog_manager.cpp44 LogStoreEx::LogFileFilter CreateLogFileFilter(time_t time, int32_t id, int32_t faultLogType, const … in CreateLogFileFilter() argument
46 LogStoreEx::LogFileFilter filter = [time, id, faultLogType, module](const LogFile &file) { in CreateLogFileFilter()
56 if ((faultLogType != 0) && (info.faultLogType != faultLogType)) { in CreateLogFileFilter()
82 info.faultLogType = faultType; in CreateTempFaultLogFile()
115 FaultLogger::WriteFaultLogToFile(fd, info.faultLogType, info.sectionMap); in SaveFaultLogToFile()
121 FaultLogger::LimitCppCrashLog(fd, info.faultLogType); in SaveFaultLogToFile()
132 … store_->ClearSameLogFilesIfNeeded(CreateLogFileFilter(0, info.id, info.faultLogType, info.module), in SaveFaultLogToFile()
H A Dfaultlogger.cpp489 info.faultLogType = FaultLogType::JS_CRASH; in OnEvent()
500 sysEvent->SetEventValue("FAULT_TYPE", std::to_string(info.faultLogType)); in OnEvent()
739 …if ((info.faultLogType <= FaultLogType::ALL) || (info.faultLogType > FaultLogType::ADDR_SANITIZER)… in AddFaultLogIfNeed()
763 if (info.faultLogType == FaultLogType::CPP_CRASH) { in AddFaultLogIfNeed()
765 } else if (info.faultLogType == FaultLogType::APP_FREEZE) { in AddFaultLogIfNeed()
770 if (info.faultLogType != FaultLogType::JS_CRASH && info.faultLogType != FaultLogType::RUST_PANIC in AddFaultLogIfNeed()
771 && info.faultLogType != FaultLogType::ADDR_SANITIZER) { in AddFaultLogIfNeed()
781 if (!isSystemProcess && info.faultLogType == FaultLogType::CPP_CRASH) { in AddFaultLogIfNeed()
788 …if (((info.faultLogType == FaultLogType::CPP_CRASH) || (info.faultLogType == FaultLogType::APP_FRE… in AddFaultLogIfNeed()
790 FaultlogLimit(info.logPath, info.faultLogType); in AddFaultLogIfNeed()
[all …]
H A Dfaultlog_database.cpp64 info.faultLogType = std::atoi(sysEvent->GetEventValue("FAULT_TYPE").c_str()); in ParseFaultLogInfoFromJson()
78 if (info.faultLogType == FaultLogType::SYS_FREEZE) { in SaveFaultLogInfo()
92 GetFaultNameByType(info.faultLogType, false), in SaveFaultLogInfo()
94 "FAULT_TYPE", std::to_string(info.faultLogType), in SaveFaultLogInfo()
H A Dfaultlogger.h90 std::string GetSanitizerReason(const int32_t faultLogType, const std::string &reason) const;
H A Dfaultlog_formatter.cpp293 auto parseList = GetLogParseList(info.faultLogType); in ParseFaultLogInfoFromFile()
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/impl/
H A Dfaultlogger_client.cpp95 infoOhos.faultLogType = info.faultLogType; in AddFaultLog()
118 infoOhos.faultLogType = logType; in AddFaultLog()
152 "FAULT_TYPE", std::to_string(info.faultLogType), in ReportCppCrashEvent()
H A Dfaultlog_query_result_impl.cpp63 ret->SetFaultType(info->faultLogType); in GetNext()
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/test/common/unittest/
H A Dfaultlogger_unittest.cpp453 info.faultLogType = -1;
483 info.faultLogType = 1;
509 info.faultLogType = 1;
536 info.faultLogType = 2;
559 info.faultLogType = 3;
674 info.faultLogType = 2;
751 .faultLogType = 2,
775 info.faultLogType = 2;
940 info.faultLogType = 2;
949 info.faultLogType = 2;
[all …]
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/test/common/fuzztest/faultloggerservice_fuzzer/
H A Dfaultlogger_service_fuzzer.cpp144 int32_t faultLogType {0}; in FuzzServiceInterfaceAddFaultLog() local
145 …ffsetTotalLength = sizeof(info.time) + sizeof(info.pid) + sizeof(info.uid) + sizeof(faultLogType) + in FuzzServiceInterfaceAddFaultLog()
154 STREAM_TO_VALUEINFO(data, faultLogType); in FuzzServiceInterfaceAddFaultLog()
155 …info.faultLogType = abs(faultLogType % 10); // 10 : get the absolute value of the last digit of th… in FuzzServiceInterfaceAddFaultLog()
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/common/
H A Dfaultlog_util.cpp84 if (info.faultLogType == FaultLogType::ADDR_SANITIZER) { in GetFaultLogName()
99 ret.append(GetFaultNameByType(info.faultLogType, true)); in GetFaultLogName()
139 info.faultLogType = GetLogTypeByName(splitStr[0]); // 0 : index of log type in ExtractInfoFromFileName()
156 info.faultLogType = GetLogTypeByName(splitStr[0]); // 0 : index of log type in ExtractInfoFromTempFile()
H A Dlog_analyzer.cpp41 auto eventType = GetFaultNameByType(info.faultLogType, false); in GetFingerRawString()
51 auto eventType = GetFaultNameByType(info.faultLogType, false); in AnalysisFaultlog()
H A Dfaultlog_info.h29 int32_t faultLogType {0};
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/service/idl/
H A Dfaultlog_query_result_ohos.cpp40 ret->faultLogType = info->faultLogType; in GetNext()
H A Dfaultlogger_service_ohos.cpp128 outInfo.faultLogType = info.faultLogType; in AddFaultLog()
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/service/idl/src/
H A Dfaultlog_info_ohos.cpp26 !parcel.WriteInt32(pid) || !parcel.WriteInt32(faultLogType)) { in Marshalling()
85 if (!parcel.ReadInt32(ret->faultLogType)) { in Unmarshalling()
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/include/
H A Dfaultlogger_client_msg.h32 int32_t faultLogType{0};
/ohos5.0/base/hiviewdfx/faultloggerd/tools/process_dump/
H A Dfaultlogger_client_msg.h32 int32_t faultLogType{0};
H A Dcppcrash_reporter.cpp108 info.faultLogType = 2; // 2 : CPP_CRASH_TYPE in ReportToHiview()
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/service/idl/include/
H A Dfaultlog_info_ohos.h32 int32_t faultLogType {0};
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/test/common/
H A Dfaultlogger_client_test.cpp49 info.faultLogType = type; in CreateFaultLogInfo()
/ohos5.0/base/hiviewdfx/hiview/plugins/crash_validator/
H A Dcrash_validator.cpp199 info.faultLogType = CPP_CRASH; in OnEvent()
/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/process_dump/
H A Ddfx_processdump_test.cpp412 info.faultLogType = 2; // 2 : CPP_CRASH_TYPE
/ohos5.0/base/hiviewdfx/hiview/plugins/freeze_detector/
H A Dvendor.cpp112 info.faultLogType = (type == APPFREEZE) ? FaultLogType::APP_FREEZE : ((type == SYSFREEZE) ? in SendFaultLog()