Home
last modified time | relevance | path

Searched refs:procName (Results 1 - 25 of 35) sorted by relevance

12

/base/hiviewdfx/hiview/framework/native/unified_collection/process/
H A Dprocess_status.cpp44 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 Dgraphic_memory_collector_test.cpp48 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 Dhiview_event_cacher.cpp43 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 Dappspawn_kickdog.c20 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 Ddevauthcb_fuzzer.cpp38 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 Dgwpasan_collector.cpp110 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 Dgwpasan_collector.h41 std::string procName; member
/base/hiviewdfx/hiview/base/event_report/
H A Dhiview_event_report.cpp71 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 Devent_report_unit_test.cpp127 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 Ddevauth_fuzzer.cpp38 static void NativeTokenSet(const char *procName) in NativeTokenSet() argument
53 .processName = procName, in NativeTokenSet()
/base/hiviewdfx/hiview/base/utility/
H A Dcommon_utils.cpp138 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 Dlog_catcher_utils.cpp107 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 Dhiview_event_cacher.h34 void UpdatePluginStatsEvent(const std::string &name, const std::string &procName, uint32_t procTime);
/base/hiviewdfx/hiview/base/event_report/include/
H A Dhiview_event_report.h31 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 Dcpu.h63 std::string procName; member
/base/hiviewdfx/hiview/framework/native/unified_collection/process/include/
H A Dprocess_status.h48 bool UpdateProcessName(int32_t pid, const std::string& procName);
/base/hiviewdfx/hiview/plugins/unified_collector/test/unittest/common/mock/
H A Dmock_function_jumble.cpp42 void HiviewEventReport::UpdatePluginStats(const std::string &name, const std::string &procName, uint32_t procTime) in UpdatePluginStats() argument
/base/location/test/mock/include/
H A Dmock_if_system_ability_manager.h44 MOCK_METHOD(int32_t, AddSystemProcess, (const std::u16string& procName, const sptr<IRemoteObject>& procObject));
/base/hiviewdfx/hiview/plugins/unified_collector/storage/
H A Dcpu_storage.cpp62 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 Dmock_service_registry.cpp179 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 Dprocess_state_info_collector.cpp164 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 Dmock_service_registry.cpp173 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 Dif_system_ability_manager_mock.h41 MOCK_METHOD2(AddSystemProcess, int32_t(const std::u16string& procName, const sptr<IRemoteObject>& procObject));
/base/hiviewdfx/hidumper/frameworks/native/src/manager/
H A Ddump_implement.cpp201 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 Dmemory_info.cpp567 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()

Completed in 12 milliseconds

12