/ohos5.0/base/hiviewdfx/hiview/plugins/freeze_detector/test/unittest/common/ |
H A 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() 230 FileUtil::CreateFile(logPath); 231 if (!FileUtil::FileExists(logPath)) { 281 FileUtil::CreateFile(logPath); 282 if (!FileUtil::FileExists(logPath)) { 323 FileUtil::CreateFile(logPath); 324 if (!FileUtil::FileExists(logPath)) { 362 FileUtil::CreateFile(logPath); [all …]
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/log/ |
H A D | backup_hi_audit.cpp | 32 std::string logPath; member 44 const std::string HIAUDIT_LOG_NAME = HIAUDIT_CONFIG.logPath + HIAUDIT_CONFIG.logName + "_audit.csv"; 66 if (access(HIAUDIT_CONFIG.logPath.c_str(), F_OK) != 0) { in Init() 67 int ret = mkdir(HIAUDIT_CONFIG.logPath.c_str(), S_IRWXU | S_IRWXG | S_IRWXO); in Init() 69 MEDIA_ERR_LOG("Failed to create directory %{public}s.", HIAUDIT_CONFIG.logPath.c_str()); in Init() 150 DIR* dir = opendir(HIAUDIT_CONFIG.logPath.c_str()); in CleanOldAuditFile() 163 oldestAuditFile = HIAUDIT_CONFIG.logPath + std::string(ptr->d_name); in CleanOldAuditFile() 167 stat((HIAUDIT_CONFIG.logPath + std::string(ptr->d_name)).c_str(), &st); in CleanOldAuditFile() 171 oldestAuditFile = HIAUDIT_CONFIG.logPath + std::string(ptr->d_name); in CleanOldAuditFile() 194 std::string zipFileName = HIAUDIT_CONFIG.logPath + HIAUDIT_CONFIG.logName + "_audit_" + in ZipAuditLog()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | hi_audit.cpp | 32 std::string logPath; member 43 const std::string HIAUDIT_LOG_NAME = HIAUDIT_CONFIG.logPath + HIAUDIT_CONFIG.logName + "_audit.csv"; 65 if (access(HIAUDIT_CONFIG.logPath.c_str(), F_OK) != 0) { in Init() 66 int ret = mkdir(HIAUDIT_CONFIG.logPath.c_str(), S_IRWXU | S_IRWXG | S_IRWXO); in Init() 68 MEDIA_ERR_LOG("Failed to create directory %{public}s.", HIAUDIT_CONFIG.logPath.c_str()); in Init() 151 DIR* dir = opendir(HIAUDIT_CONFIG.logPath.c_str()); in CleanOldAuditFile() 161 oldestAuditFile = HIAUDIT_CONFIG.logPath + std::string(ptr->d_name); in CleanOldAuditFile() 165 stat((HIAUDIT_CONFIG.logPath + std::string(ptr->d_name)).c_str(), &st); in CleanOldAuditFile() 169 oldestAuditFile = HIAUDIT_CONFIG.logPath + std::string(ptr->d_name); in CleanOldAuditFile() 192 std::string zipFileName = HIAUDIT_CONFIG.logPath + HIAUDIT_CONFIG.logName + "_audit_" + in ZipAuditLog()
|
/ohos5.0/foundation/arkui/ui_lite/test/autotest/src/ |
H A D | auto_test_manager.cpp | 45 const char logPath[] = ".\\auto_test_log.txt"; in SetUpTestCase() local 46 CompareTools::SetLogPath(logPath, sizeof(logPath)); in SetUpTestCase() 48 const char logPath[] = "./auto_test_log.txt"; in SetUpTestCase() local 49 CompareTools::SetLogPath(logPath, sizeof(logPath)); in SetUpTestCase()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/common/ |
H A D | log_analyzer.cpp | 50 std::string logPath = info.logPath; in AnalysisFaultlog() local 53 … logPath = std::string(FaultLogger::FAULTLOG_BASE_FOLDER) + eventType + std::to_string(info.time); in AnalysisFaultlog() 54 FileUtil::SaveStringToFile(logPath, info.summary); in AnalysisFaultlog() 58 eventInfos = SmartParser::Analysis(logPath, SMART_PARSER_PATH, eventType); in AnalysisFaultlog() 60 FileUtil::RemoveFile(logPath); in AnalysisFaultlog()
|
H A D | faultlogger_plugin.h | 39 virtual std::unique_ptr<FaultLogInfo> GetFaultLogInfo(const std::string& logPath) in GetFaultLogInfo() argument
|
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/service/idl/ |
H A 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()
|
H A D | faultlogger_service_ohos.cpp | 134 outInfo.logPath = info.logPath; in AddFaultLog()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/service/idl/src/ |
H A 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()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/service/ |
H A D | faultlogger.cpp | 502 sysEvent->SetEventValue("LOG_PATH", info.logPath); in OnEvent() 565 if (!logPath.empty()) { in ReportJsErrorToAppEvent() 566 externalLog.append(logPath); in ReportJsErrorToAppEvent() 620 if (!logPath.empty()) { in ReportSanitizerToAppEvent() 621 externalLog.append(logPath); in ReportSanitizerToAppEvent() 675 info->logPath = logPath; in GetFaultLogInfo() 708 std::ifstream logReadFile(logPath); in FaultlogLimit() 731 std::ofstream logWriteFile(logPath); in FaultlogLimit() 790 FaultlogLimit(info.logPath, info.faultLogType); in AddFaultLogIfNeed() 883 externalLog.append(info.logPath); in GetStackInfo() [all …]
|
H A D | faultlog_manager.cpp | 116 FaultLogger::WriteLogToFile(fd, info.logPath); in SaveFaultLogToFile() 124 std::string logFile = info.logPath; in SaveFaultLogToFile() 134 info.logPath = std::string(FaultLogger::DEFAULT_FAULTLOG_FOLDER) + fileName; in SaveFaultLogToFile()
|
H A D | faultlogger.h | 62 std::unique_ptr<FaultLogInfo> GetFaultLogInfo(const std::string& logPath) override; 97 void FaultlogLimit(const std::string &logPath, int32_t faultType) const;
|
/ohos5.0/base/hiviewdfx/hiview/plugins/freeze_detector/ |
H A D | freeze_detector_plugin.cpp | 117 std::string logPath = ""; in MakeWatchPoint() local 119 logPath = result[1].str(); in MakeWatchPoint() 121 logPath = info; in MakeWatchPoint() 137 .InitLogPath(logPath) in MakeWatchPoint() 143 …event.eventName_.c_str(), pid, uid, seq, packageName.c_str(), processName.c_str(), logPath.c_str()… in MakeWatchPoint()
|
H A D | watch_point.cpp | 118 WatchPoint::Builder& WatchPoint::Builder::InitLogPath(const std::string& logPath) in InitLogPath() argument 120 logPath_ = logPath; in InitLogPath() 212 void WatchPoint::SetLogPath(const std::string& logPath) in SetLogPath() argument 214 logPath_ = logPath; in SetLogPath()
|
H A D | watch_point.h | 41 Builder& InitLogPath(const std::string& logPath); 82 void SetLogPath(const std::string& logPath);
|
H A D | vendor.cpp | 100 std::string Vendor::SendFaultLog(const WatchPoint &watchPoint, const std::string& logPath, in SendFaultLog() argument 120 info.logPath = logPath; in SendFaultLog() 126 return logPath; in SendFaultLog()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/test/common/fuzztest/faultloggerclient_fuzzer/ |
H A D | faultlogger_client_fuzzer.cpp | 52 … std::string logPath(reinterpret_cast<const char*>(data), FAULTLOGGER_FUZZTEST_MAX_STRING_LENGTH); in FuzzInterfaceAddFaultLog() 54 inner.logPath = logPath; in FuzzInterfaceAddFaultLog()
|
/ohos5.0/base/tee/tee_client/services/tlogcat/src/ |
H A 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()
|
/ohos5.0/base/hiviewdfx/hiview/adapter/plugins/eventlogger/log_catcher/impl/ |
H A D | log_catcher_utils.cpp | 83 std::string logPath = "/data/log/eventlog/"; in WriteKernelStackToFd() local 85 FileUtil::GetDirFiles(logPath, files, false); in WriteKernelStackToFd() 108 realPath = logPath + logName; in WriteKernelStackToFd()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/service/sanitizer_collector/gwp_asan/ |
H A D | gwpasan_collector.cpp | 145 currInfo.logPath = fullName; in ReadGwpAsanRecord() 147 currInfo.uid, currInfo.logPath.c_str()); in ReadGwpAsanRecord() 159 "LOG_PATH", currInfo.logPath); in ReadGwpAsanRecord()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/test/common/fuzztest/faultloggerservice_fuzzer/ |
H A D | faultlogger_service_fuzzer.cpp | 163 … std::string logPath(reinterpret_cast<const char*>(data), FAULTLOGGER_FUZZTEST_MAX_STRING_LENGTH); in FuzzServiceInterfaceAddFaultLog() 165 info.logPath = logPath; in FuzzServiceInterfaceAddFaultLog()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/impl/ |
H A D | faultlogger_client.cpp | 99 infoOhos.logPath = info.logPath; in AddFaultLog()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/include/ |
H A D | faultlogger_client_msg.h | 36 std::string logPath; member
|
/ohos5.0/base/hiviewdfx/faultloggerd/tools/process_dump/ |
H A D | faultlogger_client_msg.h | 36 std::string logPath; member
|
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/service/idl/include/ |
H A D | faultlog_info_ohos.h | 39 std::string logPath; variable
|