/base/hiviewdfx/hiview/base/logstore/ |
D | log_file.cpp | 30 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/ |
D | dmesg_catcher.cpp | 103 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()
|
D | peer_binder_catcher.cpp | 258 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/ |
D | ans_log_wrapper.cpp | 32 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/ |
D | event_log_wrapper.cpp | 37 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/ |
D | updater.cpp | 356 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/ |
D | hiview_service_agent.cpp | 131 std::string fullPath(rootDir); in CreateDestDirs() local 133 fullPath.append("/").append(dirName); in CreateDestDirs() 134 if (!CreateAndGrantAclPermission(fullPath)) { in CreateDestDirs()
|
D | hiview_service_ability.cpp | 230 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/ |
D | module_update.cpp | 232 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/ |
D | extract_rule.h | 31 …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);
|
D | syntax_rules.h | 64 std::string fullPath; member
|
/base/hiviewdfx/hiview/base/logstore/include/ |
D | log_file.h | 30 explicit LogFile(const std::string& fullPath);
|
/base/startup/init/test/unittest/ueventd/ |
D | ueventd_event_unittest.cpp | 114 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/ |
D | sanitizerd_monitor.cpp | 75 std::string fullPath = strSanLogPath + "/" + strFileName; in ReadNotify() local 77 HIVIEW_LOGI("recv filename is:[%{public}s]\n", fullPath.c_str()); in ReadNotify()
|
D | asan_collector.cpp | 284 std::string fullPath = strAsanLogPath + "/" + filepath; in Collect() local 285 ReadRecordToString(fullPath, filepath); in Collect()
|
/base/hiviewdfx/hiview/base/utility/ |
D | common_utils.cpp | 114 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/ |
D | common_utils.h | 43 bool IsSpecificCmdExist(const std::string& fullPath);
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/faultloggerd_client/ |
D | faultloggerd_socket.cpp | 54 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/ |
D | feature_analysis.cpp | 47 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/ |
D | hks_storage.c | 309 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/ |
D | extract_rule.cpp | 101 …f (!IsMatchId(eventType, featureId) || !IsMatchPath(path, dirOrFile, subcatalog, fsets.fullPath)) { in ParseRule()
|