Home
last modified time | relevance | path

Searched refs:logPath (Results 1 – 25 of 38) sorted by relevance

12

/ohos5.0/base/hiviewdfx/hiview/plugins/freeze_detector/test/unittest/common/
H A Dfreeze_detector_test.cpp42 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 Dbackup_hi_audit.cpp32 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 Dhi_audit.cpp32 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 Dauto_test_manager.cpp45 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 Dlog_analyzer.cpp50 std::string logPath = info.logPath; in AnalysisFaultlog() local
53logPath = 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 Dfaultlogger_plugin.h39 virtual std::unique_ptr<FaultLogInfo> GetFaultLogInfo(const std::string& logPath) in GetFaultLogInfo() argument
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/service/idl/
H A Dfaultlog_query_result_ohos.cpp44 ret->logPath = info->logPath; in GetNext()
47 …if ((!info->logPath.empty()) && OHOS::HiviewDFX::FileUtil::PathToRealPath(info->logPath, realPath)… in GetNext()
H A Dfaultlogger_service_ohos.cpp134 outInfo.logPath = info.logPath; in AddFaultLog()
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/service/idl/src/
H A Dfaultlog_info_ohos.cpp42 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 Dfaultlogger.cpp502 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 Dfaultlog_manager.cpp116 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 Dfaultlogger.h62 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 Dfreeze_detector_plugin.cpp117 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 Dwatch_point.cpp118 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 Dwatch_point.h41 Builder& InitLogPath(const std::string& logPath);
82 void SetLogPath(const std::string& logPath);
H A Dvendor.cpp100 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 Dfaultlogger_client_fuzzer.cpp52 … 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 Dtlogcat.c306 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 Dlog_catcher_utils.cpp83 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 Dgwpasan_collector.cpp145 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 Dfaultlogger_service_fuzzer.cpp163 … 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 Dfaultlogger_client.cpp99 infoOhos.logPath = info.logPath; in AddFaultLog()
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/include/
H A Dfaultlogger_client_msg.h36 std::string logPath; member
/ohos5.0/base/hiviewdfx/faultloggerd/tools/process_dump/
H A Dfaultlogger_client_msg.h36 std::string logPath; member
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/service/idl/include/
H A Dfaultlog_info_ohos.h39 std::string logPath; variable

12