| /base/hiviewdfx/hiview/plugins/faultlogger/common/ |
| D | log_analyzer.cpp | 33 std::string logPath = info.logPath; in AnalysisFaultlog() local 36 !FileUtil::FileExists(info.logPath) && !info.summary.empty()) { in AnalysisFaultlog() 37 … logPath = std::string(FaultLogger::FAULTLOG_BASE_FOLDER) + eventType + std::to_string(info.time); in AnalysisFaultlog() 38 FileUtil::SaveStringToFile(logPath, info.summary); in AnalysisFaultlog() 42 eventInfos = SmartParser::Analysis(logPath, SMART_PARSER_PATH, eventType); in AnalysisFaultlog() 44 FileUtil::RemoveFile(logPath); in AnalysisFaultlog()
|
| D | faultlogger_plugin.h | 39 virtual std::unique_ptr<FaultLogInfo> GetFaultLogInfo(const std::string& logPath) in GetFaultLogInfo() argument
|
| D | faultlog_info.h | 34 std::string logPath; member
|
| /base/hiviewdfx/hiview/plugins/freeze_detector/test/unittest/common/ |
| D | freeze_detector_test.cpp | 42 const std::string& logPath) in makeEvent() argument 48 FileUtil::SaveStringToFile(logPath, str); in makeEvent() 65 std::string tmpStr = R"~(logPath:)~" + logPath; in makeEvent() 229 std::string logPath = "/data/test/test_data/LOG001.log"; variable 230 FileUtil::CreateFile(logPath); 231 if (!FileUtil::FileExists(logPath)) { 237 "FreezeDectorTest001", logPath); 280 std::string logPath = "/data/test/test_data/LOG002.log"; variable 281 FileUtil::CreateFile(logPath); 282 if (!FileUtil::FileExists(logPath)) { [all …]
|
| /base/hiviewdfx/hiview/plugins/faultlogger/service/idl/ |
| D | faultlog_query_result_ohos.cpp | 44 ret->logPath = info->logPath; in GetNext() 47 …if ((!info->logPath.empty()) && OHOS::HiviewDFX::FileUtil::PathToRealPath(info->logPath, realPath)… in GetNext()
|
| D | faultlogger_service_ohos.cpp | 128 outInfo.logPath = info.logPath; in AddFaultLog()
|
| /base/hiviewdfx/hiview/plugins/faultlogger/service/idl/src/ |
| D | faultlog_info_ohos.cpp | 42 if (!parcel.WriteString(logPath)) { in Marshalling() 43 HIVIEW_LOGE("Parcel failed to write log path(%{public}s).", logPath.c_str()); in Marshalling() 104 if (!parcel.ReadString(ret->logPath)) { in Unmarshalling() 105 HIVIEW_LOGE("Parcel failed to read log path(%{public}s).", ret->logPath.c_str()); in Unmarshalling()
|
| /base/hiviewdfx/hiview/plugins/freeze_detector/ |
| D | vendor.cpp | 82 std::string Vendor::SendFaultLog(const WatchPoint &watchPoint, const std::string& logPath, in SendFaultLog() argument 115 info.logPath = logPath; in SendFaultLog() 119 return logPath; in SendFaultLog() 176 std::string& logPath, std::string& logName) const in InitLogInfo() argument 198 logPath = FREEZE_DETECTOR_PATH + APPFREEZE + HYPHEN + processName + in InitLogInfo() 204 logPath = FREEZE_DETECTOR_PATH + SYSFREEZE + HYPHEN + processName + in InitLogInfo() 255 std::string logPath; in MergeEventLog() local 257 InitLogInfo(watchPoint, type, retPath, logPath, logName); in MergeEventLog() 282 HIVIEW_LOGE("failed to create log file %{public}s.", logPath.c_str()); in MergeEventLog() 289 return SendFaultLog(watchPoint, logPath, logName); in MergeEventLog()
|
| D | freeze_detector_plugin.cpp | 121 std::string logPath = ""; in MakeWatchPoint() local 123 logPath = result[1].str(); in MakeWatchPoint() 125 logPath = info; in MakeWatchPoint() 138 .InitLogPath(logPath) in MakeWatchPoint() 145 seq, packageName.c_str(), processName.c_str(), logPath.c_str()); in MakeWatchPoint()
|
| D | watch_point.cpp | 111 WatchPoint::Builder& WatchPoint::Builder::InitLogPath(const std::string& logPath) in InitLogPath() argument 113 logPath_ = logPath; in InitLogPath() 200 void WatchPoint::SetLogPath(const std::string& logPath) in SetLogPath() argument 202 logPath_ = logPath; in SetLogPath()
|
| D | vendor.h | 43 std::string& logPath, std::string& logName) const; 71 std::string SendFaultLog(const WatchPoint &watchPoint, const std::string& logPath,
|
| D | watch_point.h | 40 Builder& InitLogPath(const std::string& logPath); 79 void SetLogPath(const std::string& logPath);
|
| /base/hiviewdfx/hiview/plugins/faultlogger/service/ |
| D | faultlog_manager.cpp | 111 FaultLogger::WriteLogToFile(fd, info.logPath); in SaveFaultLogToFile() 118 std::string logFile = info.logPath; in SaveFaultLogToFile() 128 info.logPath = std::string(FaultLogger::DEFAULT_FAULTLOG_FOLDER) + fileName; in SaveFaultLogToFile()
|
| D | faultlogger.h | 61 std::unique_ptr<FaultLogInfo> GetFaultLogInfo(const std::string& logPath) override;
|
| D | faultlog_database.cpp | 66 info.logPath = LOG_PATH_BASE + GetFaultLogName(info); in ParseFaultLogInfoFromJson() 87 "LOG_PATH", info.logPath, in SaveFaultLogInfo()
|
| D | faultlogger.cpp | 440 sysEvent->SetEventValue("LOG_PATH", info.logPath); in OnEvent() 621 std::unique_ptr<FaultLogInfo> Faultlogger::GetFaultLogInfo(const std::string &logPath) in GetFaultLogInfo() argument 627 auto info = std::make_unique<FaultLogInfo>(FaultLogger::ParseFaultLogInfoFromFile(logPath)); in GetFaultLogInfo() 628 info->logPath = logPath; in GetFaultLogInfo()
|
| /base/hiviewdfx/hiview/plugins/faultlogger/service/idl/include/ |
| D | faultlog_info_ohos.h | 39 std::string logPath; variable
|
| /base/tee/tee_client/services/tlogcat/src/ |
| D | tlogcat.c | 306 const char *logPath, const struct FileNameAttr *nameAttr) in LogAssembleFilename() argument 309 … return snprintf_s(logName, logNameLen, strlen(LOG_FILE_TA_DEMO) + strlen(logPath), "%s%s%s-%u", in LogAssembleFilename() 310 logPath, "LOG@", nameAttr->uuidAscii, nameAttr->index); in LogAssembleFilename() 312 … return snprintf_s(logName, logNameLen, strlen(LOG_FILE_TEE_DEMO) + strlen(logPath), "%s%s-%u", in LogAssembleFilename() 313 logPath, "teeOS_log", nameAttr->index); in LogAssembleFilename() 318 const char *logPath, const struct FileNameAttr *nameAttr) in LogAssembleCompressFilename() argument 321 return snprintf_s(logName, logNameLen, strlen(LOG_FILE_TA_COMPRESS_DEMO) + strlen(logPath), in LogAssembleCompressFilename() 322 "%s%s%s-%u.tar.gz", logPath, "LOG@", nameAttr->uuidAscii, nameAttr->index); in LogAssembleCompressFilename() 324 return snprintf_s(logName, logNameLen, strlen(LOG_FILE_TEE_COMPRESS_DEMO) + strlen(logPath), in LogAssembleCompressFilename() 325 "%s%s-%u.tar.gz", logPath, "teeos-log", nameAttr->index); in LogAssembleCompressFilename()
|
| /base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/impl/ |
| D | faultlogger_client.cpp | 99 infoOhos.logPath = info.logPath; in AddFaultLog()
|
| /base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/include/ |
| D | faultlogger_client.h | 46 std::string logPath; member
|
| /base/hiviewdfx/hiview/plugins/faultlogger/test/common/fuzztest/faultloggerclient_fuzzer/ |
| D | faultlogger_client_fuzzer.cpp | 34 inner.logPath = std::string(reinterpret_cast<const char*>(data), size); in FuzzInterfaceAddFaultLog()
|
| /base/hiviewdfx/hilog/services/hilogd/include/ |
| D | log_persister.h | 69 static bool CheckRegistered(uint32_t id, const std::string& logPath);
|
| /base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/test/unittest/common/ |
| D | event_logger_catcher_test.cpp | 122 std::string logPath = path_ + "/" + logFile_; in JudgmentsFileSize() local 123 auto fd2 = open(logPath.c_str(), O_RDONLY, defaultLogFileMode); in JudgmentsFileSize() 159 std::string logPath = path_ + "/" + logFile_; in StartCreate() local 160 printf("logPath is %s\n", logPath.c_str()); in StartCreate() 161 auto fd = open(logPath.c_str(), O_CREAT | O_WRONLY | O_TRUNC, defaultLogFileMode); in StartCreate()
|
| /base/startup/appspawn/standard/ |
| D | appspawn_process.c | 57 char logPath[PATH_MAX] = {0}; in SetAsanEnabledEnv() local 58 int ret = snprintf_s(logPath, sizeof(logPath), sizeof(logPath) - 1, in SetAsanEnabledEnv()
|
| /base/hiviewdfx/faultloggerd/tools/process_dump/ |
| D | cppcrash_reporter.cpp | 39 std::string logPath; member
|