Home
last modified time | relevance | path

Searched refs:fullPath (Results 1 – 21 of 21) sorted by relevance

/base/hiviewdfx/hiview/base/logstore/
Dlog_file.cpp30 LogFile::LogFile(const std::string& fullPath) : path_(fullPath) in LogFile() argument
33 if ((fullPath.length() == 0) || (stat(fullPath.c_str(), &sb) == -1)) { in LogFile()
41 size_ = FileUtil::GetFolderSize(fullPath); in LogFile()
44 name_ = FileUtil::ExtractFileName(fullPath); in LogFile()
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/
Ddmesg_catcher.cpp103 std::string fullPath = FULL_DIR + "sysrq-" + sysrqTime + ".log"; in DmesgSaveTofile() local
105 if (FileUtil::FileExists(fullPath)) { in DmesgSaveTofile()
106 HIVIEW_LOGW("filename: %{public}s is existed, direct use.", fullPath.c_str()); in DmesgSaveTofile()
107 return fullPath; in DmesgSaveTofile()
110 if (!FileUtil::PathToRealPath(fullPath,realPath)) { in DmesgSaveTofile()
111 HIVIEW_LOGI("Fail to verify realpath %s.", fullPath.c_str()); in DmesgSaveTofile()
141 std::string fullPath = DmesgSaveTofile(); in Catch() local
142 if (fullPath.empty()) { in Catch()
145 description_ += "fullPath:" + fullPath + "\n"; in Catch()
Dpeer_binder_catcher.cpp258 std::string fullPath = std::string(EVENT_LOG_PATH) + "/" + fileName; in ForkToDumpHiperf() local
259 if (access(fullPath.c_str(), F_OK) == 0) { in ForkToDumpHiperf()
262 if (stat(fullPath.c_str(), &statBuf) == -1) { in ForkToDumpHiperf()
264 FileUtil::RemoveFile(fullPath); in ForkToDumpHiperf()
269 FileUtil::RemoveFile(fullPath); in ForkToDumpHiperf()
/base/notification/distributed_notification_service/frameworks/core/common/src/
Dans_log_wrapper.cpp32 std::string fullPath(str); in GetBriefFileName() local
33 size_t pos = fullPath.find_last_of("/"); in GetBriefFileName()
37 return fullPath.substr(pos + 1); in GetBriefFileName()
/base/notification/common_event_service/frameworks/common/log/src/
Devent_log_wrapper.cpp37 std::string fullPath(str); in GetBriefFileName() local
38 size_t pos = fullPath.find_last_of("/"); in GetBriefFileName()
42 return fullPath.substr(pos + 1); in GetBriefFileName()
/base/update/updater/services/
Dupdater.cpp356 void ExcuteSubProc(const UpdaterParams &upParams, const std::string &fullPath, int pipeWrite) in ExcuteSubProc() argument
373 execl(fullPath.c_str(), upParams.updatePackage[upParams.pkgLocation].c_str(), in ExcuteSubProc()
376 execl(fullPath.c_str(), upParams.updatePackage[upParams.pkgLocation].c_str(), in ExcuteSubProc()
445 std::string fullPath = GetWorkPath() + std::string(UPDATER_BINARY); in StartUpdaterProc() local
446 (void)Utils::DeleteFile(fullPath); in StartUpdaterProc()
450 fullPath = "/bin/updater_binary"; in StartUpdaterProc()
454 fullPath = "/data/updater/updater_binary"; in StartUpdaterProc()
457 if (chmod(fullPath.c_str(), S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH) != 0) { in StartUpdaterProc()
462 Restorecon(fullPath.c_str()); in StartUpdaterProc()
477 ExcuteSubProc(upParams, fullPath, pipeWrite); in StartUpdaterProc()
/base/hiviewdfx/hiview/adapter/service/idl/src/
Dhiview_service_agent.cpp131 std::string fullPath(rootDir); in CreateDestDirs() local
133 fullPath.append("/").append(dirName); in CreateDestDirs()
134 if (!CreateAndGrantAclPermission(fullPath)) { in CreateDestDirs()
Dhiview_service_ability.cpp230 std::string fullPath = ComposeFilePath(sandboxPath, dest, logName); in CopyOrMoveFile() local
231 return isMove ? service->Move(sourceFile, fullPath) : service->Copy(sourceFile, fullPath); in CopyOrMoveFile()
/base/update/sys_installer/services/module_update/src/
Dmodule_update.cpp232 const string &fullPath = moduleFile.GetPath(); in MountModulePackage() local
239 if (!CreateLoopDevice(fullPath, imageStat, loopbackDevice)) { in MountModulePackage()
240 LOG(ERROR) << "Could not create loop device for " << fullPath; in MountModulePackage()
256 LOG(ERROR) << "Mounting failed for module package " << fullPath << " errno:" << errno; in MountModulePackage()
259 …LOG(INFO) << "Successfully mounted module package " << fullPath << " on " << mountPoint << " durat… in MountModulePackage()
/base/hiviewdfx/hiview/utility/smart_parser/rule/include/
Dextract_rule.h31 …eExtractRule(const std::string& eventType, const std::string& config, const std::string& fullPath);
40 …void ParseRule(const std::string& eventType, const Json::Value& json, const std::string& fullPath);
Dsyntax_rules.h64 std::string fullPath; member
/base/hiviewdfx/hiview/base/logstore/include/
Dlog_file.h30 explicit LogFile(const std::string& fullPath);
/base/startup/init/test/unittest/ueventd/
Dueventd_event_unittest.cpp114 std::string fullPath {}; in RemoveDir() local
116 fullPath = path + dp->d_name; in RemoveDir()
118 fullPath = path + "/" + dp->d_name; in RemoveDir()
121 if (stat(fullPath.c_str(), &st) < 0) { in RemoveDir()
122 std::cout << "Failed to get stat of " << fullPath << std::endl; in RemoveDir()
126 if (RemoveDir(fullPath) < 0) { in RemoveDir()
127 std::cout << "Failed to remove directory " << fullPath << std::endl; in RemoveDir()
131 if (unlink(fullPath.c_str()) < 0) { in RemoveDir()
132 std::cout << "Failed to unlink file " << fullPath << std::endl; in RemoveDir()
/base/hiviewdfx/hiview/plugins/faultlogger/service/sanitizer_collector/
Dsanitizerd_monitor.cpp75 std::string fullPath = strSanLogPath + "/" + strFileName; in ReadNotify() local
77 HIVIEW_LOGI("recv filename is:[%{public}s]\n", fullPath.c_str()); in ReadNotify()
Dasan_collector.cpp284 std::string fullPath = strAsanLogPath + "/" + filepath; in Collect() local
285 ReadRecordToString(fullPath, filepath); in Collect()
/base/hiviewdfx/hiview/base/utility/
Dcommon_utils.cpp114 bool IsSpecificCmdExist(const std::string& fullPath) in IsSpecificCmdExist() argument
116 return access(fullPath.c_str(), X_OK) == 0; in IsSpecificCmdExist()
/base/hiviewdfx/hiview/base/utility/include/
Dcommon_utils.h43 bool IsSpecificCmdExist(const std::string& fullPath);
/base/hiviewdfx/faultloggerd/interfaces/innerkits/faultloggerd_client/
Dfaultloggerd_socket.cpp54 std::string fullPath = std::string(FAULTLOGGERD_SOCK_BASE_PATH) + std::string(path); in StartConnect() local
58 errno_t err = strncpy_s(server.sun_path, sizeof(server.sun_path), fullPath.c_str(), in StartConnect()
/base/hiviewdfx/hiview/utility/smart_parser/feature_analysis/
Dfeature_analysis.cpp47 featureSet_.fullPath.c_str(), eventType_.c_str()); in AnalysisLog()
61 if (!LogUtil::ReadFileBuff(featureSet_.fullPath, buffer) || !buffer.good() || buffer.eof()) { in Extract()
373 … auto value = ComposeTrace(featureSet_.fullPath, key, lineFeatures, regexIter->second); in ComposeParam()
/base/security/huks/services/huks_standard/huks_service/main/core/src/
Dhks_storage.c309 char *fullPath = (char *)HksMalloc(HKS_MAX_FILE_NAME_LEN); in CreateStorageFileLock() local
310 HKS_IF_NULL_RETURN(fullPath, NULL) in CreateStorageFileLock()
312 int32_t ret = HksGetFileName(path, fileName, fullPath, HKS_MAX_FILE_NAME_LEN); in CreateStorageFileLock()
315 HksFree(fullPath); in CreateStorageFileLock()
319 HksStorageFileLock *lock = HksStorageFileLockCreate(fullPath); in CreateStorageFileLock()
320 HksFree(fullPath); in CreateStorageFileLock()
/base/hiviewdfx/hiview/utility/smart_parser/rule/
Dextract_rule.cpp101 …f (!IsMatchId(eventType, featureId) || !IsMatchPath(path, dirOrFile, subcatalog, fsets.fullPath)) { in ParseRule()