/base/hiviewdfx/hiview/plugins/faultlogger/service/sanitizer_collector/ |
D | asan_collector.cpp | 66 curr_.procName = "0"; in AsanCollector() 222 char procName[MAX_PROCESS_PATH]; in CalibrateErrTypeProcName() local 233 curr_.procName = GetApplicationNameById(curr_.uid); in CalibrateErrTypeProcName() 236 …if (curr_.uid >= MIN_APP_USERID && !curr_.procName.empty() && IsModuleNameValid(curr_.procName)) { in CalibrateErrTypeProcName() 237 curr_.procName = RegulateModuleNameIfNeed(curr_.procName); in CalibrateErrTypeProcName() 238 … HIVIEW_LOGI("Get procName %{public}s from uid %{public}d.", curr_.procName.c_str(), curr_.uid); in CalibrateErrTypeProcName() 239 curr_.appVersion = GetApplicationVersion(curr_.uid, curr_.procName); in CalibrateErrTypeProcName() 241 } else if (OHOS::HiviewDFX::GetNameByPid(static_cast<pid_t>(curr_.pid), procName) == true) { in CalibrateErrTypeProcName() 242 curr_.procName = std::string(procName); in CalibrateErrTypeProcName() 243 } else if (SKIP_SPECIAL_PROCESS.find(curr_.procName.c_str()) != std::string::npos) { in CalibrateErrTypeProcName() [all …]
|
D | zip_helper.cpp | 129 bool GetNameByPid(pid_t pid, const char *procName) in GetNameByPid() argument 139 if (sscanf_s(buf, "%*s %s", procName, MAX_PROCESS_PATH) == 1) { in GetNameByPid() 252 std::string name = params->procName; in CalcCollectedLogName() 254 name = params->procName.substr(params->procName.find_last_of("/") + 1); in CalcCollectedLogName() 295 "Process name:" + params->procName + "\n" + in WriteNewFile()
|
D | zip_helper.h | 51 bool GetNameByPid(pid_t pid, const char procName[]); 53 bool GetNameByPid(pid_t pid, const char *procName);
|
D | reporter.h | 54 std::string procName; member
|
/base/hiviewdfx/hiview/base/event_report/cache/ |
D | hiview_event_cacher.cpp | 43 void HiviewEventCacher::UpdatePluginStatsEvent(const std::string &name, const std::string &procName… in UpdatePluginStatsEvent() argument 51 event->Update(KEY_OF_PROC_NAME, procName); in UpdatePluginStatsEvent() 56 event->Update(KEY_OF_PROC_NAME, procName); in UpdatePluginStatsEvent()
|
/base/hiviewdfx/hiview/base/event_report/ |
D | hiview_event_report.cpp | 71 void HiviewEventReport::UpdatePluginStats(const std::string &name, const std::string &procName, uin… in UpdatePluginStats() argument 74 name.c_str(), procName.c_str(), procTime); in UpdatePluginStats() 75 HiviewEventCacher::GetInstance().UpdatePluginStatsEvent(name, procName, procTime); in UpdatePluginStats()
|
/base/startup/appspawn/test/moduletest/ |
D | appspawn_module_test.cpp | 222 char procName[BUFFER_SIZE]; in checkProcName() local 223 if (fgets(procName, sizeof(procName), fp) != nullptr) { in checkProcName() 224 for (unsigned int i = 0; i < sizeof(procName); i++) { in checkProcName() 225 if (procName[i] == '\n') { in checkProcName() 226 procName[i] = '\0'; in checkProcName() 231 << " :" << strcmp(params.procName.c_str(), procName) << "."; in checkProcName() 233 … if (params.procName.compare(0, params.procName.size(), procName, params.procName.size()) == 0) { in checkProcName() 237 …ror(LABEL, " procName=%{public}s, params.procName=%{public}s.", procName, params.procName.c_str()); in checkProcName() 437 GTEST_LOG_(INFO) << "AppSpawn_HF_fork_002 start " << params.procName.size();
|
/base/hiviewdfx/hiview/base/event_report/test/unittest/common/ |
D | event_report_unit_test.cpp | 126 const std::string procName = "TEST_PROC_NAME"; variable 136 HiviewEventReport::UpdatePluginStats(name, procName, retCode);
|
/base/hiviewdfx/hiview/base/event_report/include/ |
D | hiview_event_report.h | 31 …static void UpdatePluginStats(const std::string &name, const std::string &procName, uint32_t procT…
|
/base/hiviewdfx/hiview/base/event_report/cache/include/ |
D | hiview_event_cacher.h | 34 …void UpdatePluginStatsEvent(const std::string &name, const std::string &procName, uint32_t procTim…
|
/base/account/os_account/services/accountmgr/test/mock/src/ |
D | mock_service_registry.cpp | 126 const std::u16string& procName, const sptr<IRemoteObject>& procObject) in AddSystemProcess() argument
|
/base/security/access_token/services/test/mock/aafwk/ |
D | mock_service_registry.cpp | 169 const std::u16string& procName, const sptr<IRemoteObject>& procObject) in AddSystemProcess() argument
|
/base/hiviewdfx/hidumper/frameworks/native/src/manager/ |
D | dump_implement.cpp | 166 std::string procName; in IsHidumperClientProcess() local 167 if (DumpCommonUtils::GetProcessNameByPid(pid, procName)) { in IsHidumperClientProcess() 168 ret = (procName.find("hidumper") != std::string::npos); in IsHidumperClientProcess() 171 …E_COMMON, "debug|ret=%{public}d, pid=%{public}d, procName=%{public}s", ret, pid, procName.c_str()); in IsHidumperClientProcess()
|
/base/hiviewdfx/hidumper/frameworks/native/src/executor/memory/ |
D | memory_info.cpp | 450 string procName = "unknown"; in GetProcName() local 456 procName = names.at(1); in GetProcName() 457 StringUtils::GetInstance().ReplaceAll(procName, " ", ""); in GetProcName() 458 return procName; in GetProcName() 462 return procName; in GetProcName()
|
/base/hiviewdfx/hiview/core/ |
D | hiview_platform.cpp | 810 std::string procName = CommonUtils::GetProcNameByPid(pid); in ExitHiviewIfNeed() local 811 if (procName == "hiview") { in ExitHiviewIfNeed()
|