Home
last modified time | relevance | path

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

12

/base/hiviewdfx/hiview/plugins/faultlogger/common/
Dlog_analyzer.cpp32 std::string logPath = info.logPath; in AnalysisFaultlog() local
34 if (eventType == "JS_ERROR" && !FileUtil::FileExists(info.logPath) && !info.summary.empty()) { in AnalysisFaultlog()
35 logPath = info.logPath + "tmp"; in AnalysisFaultlog()
36 FileUtil::SaveStringToFile(logPath, info.summary); in AnalysisFaultlog()
39 eventInfos = SmartParser::Analysis(logPath, SMART_PARSER_PATH, eventType); in AnalysisFaultlog()
41 FileUtil::RemoveFile(logPath); in AnalysisFaultlog()
Dfaultlogger_plugin.h39 virtual std::unique_ptr<FaultLogInfo> GetFaultLogInfo(const std::string& logPath) in GetFaultLogInfo() argument
Dfaultlog_info.h33 std::string logPath; member
/base/hiviewdfx/hiview/plugins/freeze_detector/test/unittest/common/
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()
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/
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()
Dfaultlogger_service_ohos.cpp127 outInfo.logPath = info.logPath; in AddFaultLog()
/base/hiviewdfx/hiview/plugins/freeze_detector/
Dvendor.cpp80 std::string Vendor::SendFaultLog(const WatchPoint &watchPoint, const std::string& logPath, in SendFaultLog() argument
111 info.logPath = logPath; in SendFaultLog()
115 return logPath; in SendFaultLog()
162 std::string logPath; in MergeEventLog() local
167 logPath = FREEZE_DETECTOR_PATH + APPFREEZE + HYPHEN + processName in MergeEventLog()
173 logPath = FREEZE_DETECTOR_PATH + SYSFREEZE + HYPHEN + processName in MergeEventLog()
230 HIVIEW_LOGE("failed to create log file %{public}s.", logPath.c_str()); in MergeEventLog()
237 return SendFaultLog(watchPoint, logPath, logName); in MergeEventLog()
Dwatch_point.cpp111 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()
Dfreeze_detector_plugin.cpp122 std::string logPath = ""; in MakeWatchPoint() local
124 logPath = result[1].str(); in MakeWatchPoint()
137 .InitLogPath(logPath) in MakeWatchPoint()
144 seq, packageName.c_str(), processName.c_str(), msg.c_str(), logPath.c_str()); in MakeWatchPoint()
Dwatch_point.h40 Builder& InitLogPath(const std::string& logPath);
79 void SetLogPath(const std::string& logPath);
Dvendor.h66 std::string SendFaultLog(const WatchPoint &watchPoint, const std::string& logPath,
/base/hiviewdfx/hiview/plugins/eventlogger/test/unittest/common/
Devent_logger_action_test.cpp114 std::string logPath = path_ + "/" + logFile_; in JudgmentsFileSize() local
115 auto fd2 = open(logPath.c_str(), O_RDONLY, defaultLogFileMode); in JudgmentsFileSize()
151 std::string logPath = path_ + "/" + logFile_; in StartCreate() local
152 printf("logPath is %s\n", logPath.c_str()); in StartCreate()
153 auto fd = open(logPath.c_str(), O_CREAT | O_WRONLY | O_TRUNC, defaultLogFileMode); in StartCreate()
/base/hiviewdfx/hiview/plugins/faultlogger/service/idl/src/
Dfaultlog_info_ohos.cpp51 if (!parcel.WriteString(logPath)) { in Marshalling()
106 if (!parcel.ReadString(ret->logPath)) { in Unmarshalling()
/base/hiviewdfx/hiview/plugins/faultlogger/service/
Dfaultlog_manager.cpp111 FaultLogger::WriteLogToFile(fd, info.logPath); in SaveFaultLogToFile()
114 std::string logFile = info.logPath; in SaveFaultLogToFile()
122 info.logPath = std::string(FaultLogger::DEFAULT_FAULTLOG_FOLDER) + fileName; in SaveFaultLogToFile()
Dfaultlogger.cpp372 sysEvent->SetEventValue("LOG_PATH", info.logPath); in OnEvent()
482 std::unique_ptr<FaultLogInfo> Faultlogger::GetFaultLogInfo(const std::string &logPath) in GetFaultLogInfo() argument
488 auto info = std::make_unique<FaultLogInfo>(FaultLogger::ParseFaultLogInfoFromFile(logPath)); in GetFaultLogInfo()
489 info->logPath = logPath; in GetFaultLogInfo()
Dfaultlogger.h59 std::unique_ptr<FaultLogInfo> GetFaultLogInfo(const std::string& logPath) override;
Dfaultlog_database.cpp66 info.logPath = LOG_PATH_BASE + GetFaultLogName(info); in ParseFaultLogInfoFromJson()
86 "LOG_PATH", info.logPath, in SaveFaultLogInfo()
/base/hiviewdfx/hiview/plugins/faultlogger/service/idl/include/
Dfaultlog_info_ohos.h38 std::string logPath; variable
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/include/
Dfaultlogger_client.h44 std::string logPath; member
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/test/unittest/common/
Devent_logger_catcher_test.cpp123 std::string logPath = path_ + "/" + logFile_; in JudgmentsFileSize() local
124 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/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/impl/
Dfaultlogger_client.cpp99 infoOhos.logPath = info.logPath; in AddFaultLog()
/base/hiviewdfx/hiview/plugins/faultlogger/test/common/fuzztest/faultloggerclient_fuzzer/
Dfaultlogger_client_fuzzer.cpp34 inner.logPath = std::string(reinterpret_cast<const char*>(data), size); in FuzzInterfaceAddFaultLog()
/base/hiviewdfx/hiview/plugins/eventlogger/
Devent_logger.cpp394 auto logPath = R"~(logPath:)~" + LOGGER_EVENT_LOG_PATH + "/" + logFile; in UpdateDB() local
395 event->SetEventValue(EventStore::EventCol::INFO, logPath, true); in UpdateDB()
501 std::string logPath = dirPath + "/" + fileName; in CreateAndPublishEvent() local
502 if (!FileUtil::FileExists(logPath)) { in CreateAndPublishEvent()
503 HIVIEW_LOGW("file %{public}s not exist. exit!", logPath.c_str()); in CreateAndPublishEvent()
526 std::string tmpStr = R"~(logPath:)~" + logPath; in CreateAndPublishEvent()
/base/hiviewdfx/hilog/services/hilogd/include/
Dlog_persister.h69 static bool CheckRegistered(uint32_t id, const std::string& logPath);
/base/hiviewdfx/faultloggerd/tools/process_dump/
Dcppcrash_reporter.cpp35 std::string logPath; member

12