/base/hiviewdfx/hiview/framework/native/unified_collection/process/ |
H A D | process_status.cpp | 44 std::string procName = CommonUtils::GetProcFullNameByPid(pid);
in GetProcessName() local 45 if (UpdateProcessName(pid, procName)) {
in GetProcessName() 46 return procName;
in GetProcessName() 83 bool ProcessStatus::UpdateProcessName(int32_t pid, const std::string& procName)
in UpdateProcessName() argument 85 if (procName.empty()) {
in UpdateProcessName() 90 processInfos_[pid].name = procName;
in UpdateProcessName() 94 .name = procName,
in UpdateProcessName()
|
/base/hiviewdfx/hiview/test/unittest/unified_collection/utility/ |
H A D | graphic_memory_collector_test.cpp | 48 const std::string procName = systemuiPid > 0 ? SYSTEMUI_PROC_NAME : SCENEBOARD_RPOC_NAME; in HWTEST_F() local 56 std::cout << "GetGraphicUsage [pid=" << pid <<", procName=" << procName << "] total result:" << data.data; in HWTEST_F() 61 std::cout << "GetGraphicUsage [pid=" << pid <<", procName=" << procName << "] gl result:" << glData.data; in HWTEST_F() 66 std::cout << "GetGraphicUsage [pid=" << pid <<", procName=" << procName << "] graphic result:" << graphicData.data; in HWTEST_F()
|
/base/hiviewdfx/hiview/base/event_report/cache/ |
H A D | hiview_event_cacher.cpp | 43 void HiviewEventCacher::UpdatePluginStatsEvent(const std::string &name, const std::string &procName, uint32_t procTime)
in UpdatePluginStatsEvent() argument 51 event->Update(KEY_OF_PROC_NAME, procName);
in UpdatePluginStatsEvent() 56 event->Update(KEY_OF_PROC_NAME, procName);
in UpdatePluginStatsEvent()
|
/base/startup/appspawn/standard/ |
H A D | appspawn_kickdog.c | 20 static int OpenAndWriteToProc(const char *procName, const char *writeStr, size_t writeLen) in OpenAndWriteToProc() argument 27 int procFd = open(procName, O_RDWR | O_CLOEXEC); in OpenAndWriteToProc() 29 APPSPAWN_LOGE("open %{public}s fail,errno:%{public}d", procName, errno); in OpenAndWriteToProc()
|
/base/security/device_auth/test/fuzztest/devauthcb_fuzzer/ |
H A D | devauthcb_fuzzer.cpp | 38 static void NativeTokenSet(const char *procName) in NativeTokenSet() argument 53 .processName = procName, in NativeTokenSet()
|
/base/hiviewdfx/hiview/plugins/faultlogger/service/sanitizer_collector/gwp_asan/ |
H A D | gwpasan_collector.cpp | 110 currInfo.procName = GetNameByPid(currInfo.pid); in ReadGwpAsanRecord() 124 "MODULE", currInfo.procName, in ReadGwpAsanRecord() 151 std::string name = currInfo.procName; in CalcCollectedLogName() 153 name = currInfo.procName.substr(currInfo.procName.find_last_of("/") + 1); in CalcCollectedLogName()
|
H A D | gwpasan_collector.h | 41 std::string procName; member
|
/base/hiviewdfx/hiview/base/event_report/ |
H A D | hiview_event_report.cpp | 71 void HiviewEventReport::UpdatePluginStats(const std::string &name, const std::string &procName, uint32_t procTime)
in UpdatePluginStats() argument 73 HIVIEW_LOGD("UpdatePluginStats pluginName=%{public}s, procName=%{public}s, time=%{public}d",
in UpdatePluginStats() 74 name.c_str(), procName.c_str(), procTime);
in UpdatePluginStats() 75 HiviewEventCacher::GetInstance().UpdatePluginStatsEvent(name, procName, procTime);
in UpdatePluginStats()
|
/base/hiviewdfx/hiview/base/event_report/test/unittest/common/ |
H A D | event_report_unit_test.cpp | 127 const std::string procName = "TEST_PROC_NAME"; in HWTEST_F() local 137 HiviewEventReport::UpdatePluginStats(name, procName, retCode); in HWTEST_F()
|
/base/security/device_auth/test/fuzztest/devauth_fuzzer/ |
H A D | devauth_fuzzer.cpp | 38 static void NativeTokenSet(const char *procName) in NativeTokenSet() argument 53 .processName = procName, in NativeTokenSet()
|
/base/hiviewdfx/hiview/base/utility/ |
H A D | common_utils.cpp | 138 std::string procName = GetProcessNameFromProcCmdline(pid); in GetProcFullNameByPid() local 139 if (procName.empty() && errno != ESRCH) { // ESRCH means 'no such process' in GetProcFullNameByPid() 140 procName = GetProcessNameFromProcStat(pid); in GetProcFullNameByPid() 142 return procName; in GetProcFullNameByPid()
|
/base/hiviewdfx/hiview/adapter/plugins/eventlogger/log_catcher/impl/ |
H A D | log_catcher_utils.cpp | 107 std::string procName = CommonUtils::GetProcFullNameByPid(pid); in WriteKernelStackToFd() local 108 if (procName.empty()) { in WriteKernelStackToFd() 111 FormatFileName(procName); in WriteKernelStackToFd() 114 std::string logName = procName + "-" + std::to_string(pid) + in WriteKernelStackToFd()
|
/base/hiviewdfx/hiview/base/event_report/cache/include/ |
H A D | hiview_event_cacher.h | 34 void UpdatePluginStatsEvent(const std::string &name, const std::string &procName, uint32_t procTime);
|
/base/hiviewdfx/hiview/base/event_report/include/ |
H A D | hiview_event_report.h | 31 static void UpdatePluginStats(const std::string &name, const std::string &procName, uint32_t procTime);
|
/base/hiviewdfx/hiview/interfaces/inner_api/unified_collection/resource/ |
H A D | cpu.h | 63 std::string procName;
member
|
/base/hiviewdfx/hiview/framework/native/unified_collection/process/include/ |
H A D | process_status.h | 48 bool UpdateProcessName(int32_t pid, const std::string& procName);
|
/base/hiviewdfx/hiview/plugins/unified_collector/test/unittest/common/mock/ |
H A D | mock_function_jumble.cpp | 42 void HiviewEventReport::UpdatePluginStats(const std::string &name, const std::string &procName, uint32_t procTime) in UpdatePluginStats() argument
|
/base/location/test/mock/include/ |
H A D | mock_if_system_ability_manager.h | 44 MOCK_METHOD(int32_t, AddSystemProcess, (const std::u16string& procName, const sptr<IRemoteObject>& procObject));
|
/base/hiviewdfx/hiview/plugins/unified_collector/storage/ |
H A D | cpu_storage.cpp | 62 return (cpuCollectionInfo.pid > 0) && (!cpuCollectionInfo.procName.empty());
in IsValidProcess() 90 invalidProcNum, cpuCollectionInfo.pid, cpuCollectionInfo.procName.c_str());
in NeedStoreInDb() 324 bucket.PutString(COLUMN_PROC_NAME, cpuCollectionInfo.procName);
in StoreProcessData() 331 cpuCollectionInfo.pid, cpuCollectionInfo.procName.c_str());
in StoreProcessData()
|
/base/security/access_token/services/test/mock/aafwk/ |
H A D | mock_service_registry.cpp | 179 const std::u16string& procName, const sptr<IRemoteObject>& procObject) in AddSystemProcess() 178 AddSystemProcess( const std::u16string& procName, const sptr<IRemoteObject>& procObject) AddSystemProcess() argument
|
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/ |
H A D | process_state_info_collector.cpp | 164 processCpuStatInfo.procName = ProcessStatus::GetInstance().GetProcessName(procCpuItem->pid); in CalculateProcessCpuStatInfo() 175 ", curr_load=%{public}" PRIu64, processCpuStatInfo.cpuLoad, processCpuStatInfo.procName.c_str(), in CalculateProcessCpuStatInfo()
|
/base/location/test/mock/src/ |
H A D | mock_service_registry.cpp | 173 const std::u16string& procName, const sptr<IRemoteObject>& procObject) in AddSystemProcess() 172 AddSystemProcess( const std::u16string& procName, const sptr<IRemoteObject>& procObject) AddSystemProcess() argument
|
/base/telephony/core_service/test/unittest/esim_gtest/mock/include/ |
H A D | if_system_ability_manager_mock.h | 41 MOCK_METHOD2(AddSystemProcess, int32_t(const std::u16string& procName, const sptr<IRemoteObject>& procObject));
|
/base/hiviewdfx/hidumper/frameworks/native/src/manager/ |
H A D | dump_implement.cpp | 201 std::string procName; in IsHidumperClientProcess() local 202 if (DumpCommonUtils::GetProcessNameByPid(pid, procName)) { in IsHidumperClientProcess() 203 ret = (procName.find("hidumper") != std::string::npos); in IsHidumperClientProcess() 206 MODULE_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/ |
H A D | memory_info.cpp | 567 string procName = UNKNOWN_PROCESS; in GetProcName() local 568 DumpCommonUtils::GetProcessNameByPid(pid, procName); in GetProcName() 569 if (procName == UNKNOWN_PROCESS) { in GetProcName() 571 procName = FileUtils::GetInstance().GetProcValue(pid, path, "Name"); in GetProcName() 573 return procName; in GetProcName()
|