Home
last modified time | relevance | path

Searched refs:procName (Results 1 – 15 of 15) sorted by relevance

/base/hiviewdfx/hiview/plugins/faultlogger/service/sanitizer_collector/
Dasan_collector.cpp66 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 …]
Dzip_helper.cpp129 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()
Dzip_helper.h51 bool GetNameByPid(pid_t pid, const char procName[]);
53 bool GetNameByPid(pid_t pid, const char *procName);
Dreporter.h54 std::string procName; member
/base/hiviewdfx/hiview/base/event_report/cache/
Dhiview_event_cacher.cpp43 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/
Dhiview_event_report.cpp71 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/
Dappspawn_module_test.cpp222 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/
Devent_report_unit_test.cpp126 const std::string procName = "TEST_PROC_NAME"; variable
136 HiviewEventReport::UpdatePluginStats(name, procName, retCode);
/base/hiviewdfx/hiview/base/event_report/include/
Dhiview_event_report.h31 …static void UpdatePluginStats(const std::string &name, const std::string &procName, uint32_t procT…
/base/hiviewdfx/hiview/base/event_report/cache/include/
Dhiview_event_cacher.h34 …void UpdatePluginStatsEvent(const std::string &name, const std::string &procName, uint32_t procTim…
/base/account/os_account/services/accountmgr/test/mock/src/
Dmock_service_registry.cpp126 const std::u16string& procName, const sptr<IRemoteObject>& procObject) in AddSystemProcess() argument
/base/security/access_token/services/test/mock/aafwk/
Dmock_service_registry.cpp169 const std::u16string& procName, const sptr<IRemoteObject>& procObject) in AddSystemProcess() argument
/base/hiviewdfx/hidumper/frameworks/native/src/manager/
Ddump_implement.cpp166 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/
Dmemory_info.cpp450 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/
Dhiview_platform.cpp810 std::string procName = CommonUtils::GetProcNameByPid(pid); in ExitHiviewIfNeed() local
811 if (procName == "hiview") { in ExitHiviewIfNeed()