/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/test/common/fuzztest/faultloggerclient_fuzzer/ |
H A D | faultlogger_client_fuzzer.cpp | 30 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() 69 …faultLogType = 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 D | faultlog_manager.cpp | 44 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 D | faultlogger.cpp | 489 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 D | faultlog_database.cpp | 64 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 D | faultlogger.h | 90 std::string GetSanitizerReason(const int32_t faultLogType, const std::string &reason) const;
|
H A D | faultlog_formatter.cpp | 293 auto parseList = GetLogParseList(info.faultLogType); in ParseFaultLogInfoFromFile()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/impl/ |
H A D | faultlogger_client.cpp | 95 infoOhos.faultLogType = info.faultLogType; in AddFaultLog() 118 infoOhos.faultLogType = logType; in AddFaultLog() 152 "FAULT_TYPE", std::to_string(info.faultLogType), in ReportCppCrashEvent()
|
H A D | faultlog_query_result_impl.cpp | 63 ret->SetFaultType(info->faultLogType); in GetNext()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/test/common/unittest/ |
H A D | faultlogger_unittest.cpp | 453 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 D | faultlogger_service_fuzzer.cpp | 144 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 D | faultlog_util.cpp | 84 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 D | log_analyzer.cpp | 41 auto eventType = GetFaultNameByType(info.faultLogType, false); in GetFingerRawString() 51 auto eventType = GetFaultNameByType(info.faultLogType, false); in AnalysisFaultlog()
|
H A D | faultlog_info.h | 29 int32_t faultLogType {0};
|
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/service/idl/ |
H A D | faultlog_query_result_ohos.cpp | 40 ret->faultLogType = info->faultLogType; in GetNext()
|
H A D | faultlogger_service_ohos.cpp | 128 outInfo.faultLogType = info.faultLogType; in AddFaultLog()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/service/idl/src/ |
H A D | faultlog_info_ohos.cpp | 26 !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 D | faultlogger_client_msg.h | 32 int32_t faultLogType{0};
|
/ohos5.0/base/hiviewdfx/faultloggerd/tools/process_dump/ |
H A D | faultlogger_client_msg.h | 32 int32_t faultLogType{0};
|
H A D | cppcrash_reporter.cpp | 108 info.faultLogType = 2; // 2 : CPP_CRASH_TYPE in ReportToHiview()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/service/idl/include/ |
H A D | faultlog_info_ohos.h | 32 int32_t faultLogType {0};
|
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/test/common/ |
H A D | faultlogger_client_test.cpp | 49 info.faultLogType = type; in CreateFaultLogInfo()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/crash_validator/ |
H A D | crash_validator.cpp | 199 info.faultLogType = CPP_CRASH; in OnEvent()
|
/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/process_dump/ |
H A D | dfx_processdump_test.cpp | 412 info.faultLogType = 2; // 2 : CPP_CRASH_TYPE
|
/ohos5.0/base/hiviewdfx/hiview/plugins/freeze_detector/ |
H A D | vendor.cpp | 112 info.faultLogType = (type == APPFREEZE) ? FaultLogType::APP_FREEZE : ((type == SYSFREEZE) ? in SendFaultLog()
|