/base/hiviewdfx/hiview/plugins/hicollie_collector/test/unittest/common/ |
D | hicollie_collector_test.cpp | 40 const std::string& logPath) in makeEvent() argument 46 FileUtil::SaveStringToFile(logPath, str); in makeEvent() 63 std::string tmpStr = R"~(logPath:)~" + logPath; in makeEvent() 66 printf("Failed to parse from queryResult file name %s.\n", logPath.c_str()); in makeEvent() 175 std::string logPath = "/data/test/test_data/LOG001.log"; variable 176 FileUtil::CreateFile(logPath); 177 if (!FileUtil::FileExists(logPath)) { 183 "HicollieCollectorTest001", logPath); 217 std::string logPath = "/data/test/test_data/LOG002.log"; variable 218 FileUtil::CreateFile(logPath); [all …]
|
/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() 68 printf("Failed to parse from queryResult file name %s.\n", logPath.c_str()); in makeEvent() 238 std::string logPath = "/data/test/test_data/LOG001.log"; variable 239 FileUtil::CreateFile(logPath); 240 if (!FileUtil::FileExists(logPath)) { 246 "FreezeDectorTest001", logPath); 288 std::string logPath = "/data/test/test_data/LOG002.log"; variable 289 FileUtil::CreateFile(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 | 117 outInfo.logPath = info.logPath; in AddFaultLog()
|
/base/hiviewdfx/hiview/plugins/freeze_detector/ |
D | vendor.cpp | 80 std::string Vendor::SendFaultLog(const WatchPoint &watchPoint, const std::string& logPath, in SendFaultLog() argument 111 info.logPath = logPath; in SendFaultLog() 113 return logPath; in SendFaultLog() 160 std::string logPath; in MergeEventLog() local 165 logPath = FREEZE_DETECTOR_PATH + APPFREEZE + HYPHEN + processName in MergeEventLog() 171 logPath = FREEZE_DETECTOR_PATH + SYSFREEZE + HYPHEN + processName in MergeEventLog() 222 HIVIEW_LOGE("failed to create log file %{public}s.", logPath.c_str()); in MergeEventLog() 229 return SendFaultLog(watchPoint, logPath, logName); in MergeEventLog()
|
D | watch_point.cpp | 109 WatchPoint::Builder& WatchPoint::Builder::InitLogPath(const std::string& logPath) in InitLogPath() argument 111 logPath_ = logPath; in InitLogPath() 176 void WatchPoint::SetLogPath(const std::string& logPath) in SetLogPath() argument 178 logPath_ = logPath; in SetLogPath()
|
D | db_helper.cpp | 111 std::string logPath = watchPoint.GetLogPath(); in UpdateEventIntoDB() local 112 if (logPath != "" && logPath != "nolog") { in UpdateEventIntoDB() 113 info += ",logPath:" + logPath; in UpdateEventIntoDB()
|
D | freeze_detector_plugin.cpp | 116 std::string logPath = ""; in MakeWatchPoint() local 118 logPath = result[1].str(); in MakeWatchPoint() 131 .InitLogPath(logPath) in MakeWatchPoint() 136 seq, packageName.c_str(), processName.c_str(), msg.c_str(), logPath.c_str()); in MakeWatchPoint()
|
D | watch_point.h | 40 Builder& InitLogPath(const std::string& logPath); 73 void SetLogPath(const std::string& logPath);
|
D | vendor.h | 66 std::string SendFaultLog(const WatchPoint &watchPoint, const std::string& logPath,
|
/base/hiviewdfx/hiview/plugins/eventlogger/test/unittest/common/ |
D | event_logger_action_test.cpp | 114 std::string logPath = path_ + "/" + logFile_; in JudgmentsFileSize() local 115 auto fd2 = open(logPath.c_str(), O_RDONLY, defaultLogFileMode); in JudgmentsFileSize() 152 std::string logPath = path_ + "/" + logFile_; in StartCreate() local 153 printf("logPath is %s\n", logPath.c_str()); in StartCreate() 154 auto fd = open(logPath.c_str(), O_CREAT | O_WRONLY | O_TRUNC, defaultLogFileMode); in StartCreate()
|
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/test/unittest/common/ |
D | event_logger_catcher_test.cpp | 117 std::string logPath = path_ + "/" + logFile_; in JudgmentsFileSize() local 118 auto fd2 = open(logPath.c_str(), O_RDONLY, defaultLogFileMode); in JudgmentsFileSize() 154 std::string logPath = path_ + "/" + logFile_; in StartCreate() local 155 printf("logPath is %s\n", logPath.c_str()); in StartCreate() 156 auto fd = open(logPath.c_str(), O_CREAT | O_WRONLY | O_TRUNC, defaultLogFileMode); in StartCreate()
|
/base/hiviewdfx/hiview/plugins/faultlogger/service/idl/src/ |
D | faultlog_info_ohos.cpp | 51 if (!parcel.WriteString(logPath)) { in Marshalling() 106 if (!parcel.ReadString(ret->logPath)) { in Unmarshalling()
|
/base/hiviewdfx/hiview/plugins/faultlogger/service/ |
D | faultlog_manager.cpp | 111 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()
|
D | faultlogger.cpp | 381 HIVIEW_LOGI("Seq match success, info.logPath %{public}s", info.logPath.c_str()); in OnEvent() 384 sysEvent->SetEventValue("LOG_PATH", info.logPath); in OnEvent() 505 std::unique_ptr<FaultLogInfo> Faultlogger::GetFaultLogInfo(const std::string &logPath) in GetFaultLogInfo() argument 511 auto info = std::make_unique<FaultLogInfo>(FaultLogger::ParseFaultLogInfoFromFile(logPath)); in GetFaultLogInfo() 512 info->logPath = logPath; in GetFaultLogInfo()
|
D | faultlogger.h | 59 std::unique_ptr<FaultLogInfo> GetFaultLogInfo(const std::string& logPath) override;
|
/base/hiviewdfx/hiview/plugins/faultlogger/common/ |
D | faultlogger_plugin.h | 39 virtual std::unique_ptr<FaultLogInfo> GetFaultLogInfo(const std::string& logPath) in GetFaultLogInfo() argument
|
D | faultlog_info.h | 33 std::string logPath; member
|
D | log_analyzer.cpp | 26 eventInfos = SmartParser::Analysis(info.logPath, SMART_PARSER_PATH, eventType); in AnalysisFaultlog()
|
/base/hiviewdfx/hiview/plugins/faultlogger/service/idl/include/ |
D | faultlog_info_ohos.h | 38 std::string logPath; variable
|
/base/hiviewdfx/hiview/plugins/eventlogger/ |
D | event_logger.cpp | 252 auto logPath = R"~(logPath:)~" + LOGGER_EVENT_LOG_PATH + "/" + logFile; in UpdateDB() local 253 event->SetEventValue(EventStore::EventCol::INFO, logPath, true); in UpdateDB() 318 std::string logPath = dirPath + "/" + fileName; in CreateAndPublishEvent() local 319 if (!FileUtil::FileExists(logPath)) { in CreateAndPublishEvent() 320 HIVIEW_LOGW("file %{public}s not exist. exit!", logPath.c_str()); in CreateAndPublishEvent() 343 std::string tmpStr = R"~(logPath:)~" + logPath; in CreateAndPublishEvent()
|
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/include/ |
D | faultlogger_client.h | 32 std::string logPath; member
|
/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/test/common/hiviewdfxfaultlogger_fuzzer/ |
D | hiviewdfx_faultlogger_fuzzer.cpp | 34 inner.logPath = std::string(reinterpret_cast<const char*>(data), size); in FuzzInterfaceAddFaultLog()
|
/base/hiviewdfx/faultloggerd/tools/process_dump/ |
D | cppcrash_reporter.cpp | 37 std::string logPath; member
|