/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/ |
H A D | peer_binder_catcher.cpp | 90 std::set<int> pids = GetBinderPeerPids(fd, jsonFd); in Catch() local 91 if (pids.empty()) { in Catch() 92 std::string content = "PeerBinder pids is empty\r\n"; in Catch() 96 ForkToDumpHiperf(pids); in Catch() 99 for (auto pidTemp : pids) { in Catch() 247 std::set<int> pids; in GetBinderPeerPids() local 255 return pids; in GetBinderPeerPids() 262 return pids; in GetBinderPeerPids() 267 pids.insert(each.server); in GetBinderPeerPids() 270 ParseBinderCallChain(manager, pids, pid in GetBinderPeerPids() 275 ParseBinderCallChain(std::map<int, std::list<PeerBinderCatcher::BinderInfo>>& manager, std::set<int>& pids, int pid) const ParseBinderCallChain() argument 311 DoExecHiperf(const std::string& fileName, const std::set<int>& pids) DoExecHiperf() argument 339 ForkToDumpHiperf(const std::set<int>& pids) ForkToDumpHiperf() argument [all...] |
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/include/ |
H A D | peer_binder_catcher.h | 59 std::set<int>& pids, int pid) const; 66 void ForkToDumpHiperf(const std::set<int>& pids); 67 void DoExecHiperf(const std::string& fileName, const std::set<int>& pids);
|
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/test/unittest/common/ |
H A D | event_logger_catcher_test.cpp | 420 std::set<int> pids; in HWTEST_F() local 421 pids.insert(pid); in HWTEST_F() 422 peerBinderCatcher->DoExecHiperf("peerBinderCatcher", pids); in HWTEST_F() 473 std::set<int> pids; in HWTEST_F() local 474 pids.insert(0); in HWTEST_F() 475 pids.insert(2); in HWTEST_F() 484 peerBinderCatcher->ParseBinderCallChain(manager, pids, 0); in HWTEST_F() 491 peerBinderCatcher->ParseBinderCallChain(manager, pids, 1); in HWTEST_F() 492 EXPECT_TRUE(!pids.empty()); in HWTEST_F() 494 pids in HWTEST_F() 514 std::set<int> pids = peerBinderCatcher->GetBinderPeerPids(fd, 1); HWTEST_F() local 577 std::set<int> pids = peerBinderCatcher->GetBinderPeerPids(fd, 1); HWTEST_F() local [all...] |
/base/hiviewdfx/hilog/services/hilogd/include/ |
H A D | log_filter.h | 38 uint32_t pids[MAX_PIDS]; member 59 std::cout << " pid[" << i << "]" << pids[i] << std::endl; in Print()
|
/base/startup/appspawn/test/unittest/app_spawn_standard_test/ |
H A D | app_spawn_cgroup_test.cpp | 124 pid_t pids[] = {100, 101, 102}; in HWTEST_F() local 125 ret = WriteToFile(path, 0, pids, 3); in HWTEST_F() 267 pid_t pids[] = {100, 101, 102}; in HWTEST_F() local 268 ret = WriteToFile(path, 0, pids, 3); in HWTEST_F() 305 ret = GetTestCGroupFilePath(appInfo, "pids.max", path, true); in HWTEST_F() 312 ret = GetTestCGroupFilePath(appInfo, "pids.max", path, false); in HWTEST_F() 356 pid_t pids[] = {100, 101, 102}; in HWTEST_F() local 357 int ret = WriteToFile(nullptr, -1, pids, 3); in HWTEST_F() 383 pid_t pids[] = {100, 101, 102, 103}; in HWTEST_F() local 384 ret = WriteToFile(path, 0, pids, in HWTEST_F() [all...] |
/base/hiviewdfx/hidumper/services/native/src/ |
H A D | dump_common_utils.cpp | 98 std::vector<int32_t> pids; in GetAllPids() local 104 pids.push_back(std::stoi(pid)); in GetAllPids() 106 return pids; in GetAllPids() 192 bool DumpCommonUtils::GetUserPids(std::vector<int> &pids) in GetUserPids() argument 214 pids.push_back(pid); in GetUserPids()
|
H A D | dump_manager_service.cpp | 217 std::vector<int32_t> pids = DumpCommonUtils::GetAllPids(); in ScanPidOverLimit() local 218 for (const auto &pid : pids) { in ScanPidOverLimit()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/signal_handler/ |
H A D | dfx_dumprequest.c | 446 pid_t pids[PID_MAX] = {0}; in StartVMProcessUnwind() local 447 pids[REAL_PROCESS_PID] = GetRealPid(); in StartVMProcessUnwind() 448 pids[VIRTUAL_PROCESS_PID] = syscall(SYS_getpid); in StartVMProcessUnwind() 449 OHOS_TEMP_FAILURE_RETRY(write(g_pipeFds[WRITE_TO_DUMP][1], pids, sizeof(pids))); in StartVMProcessUnwind() 456 DFXLOGI("processdump unwind finish, exit vm pid = %{public}d", pids[VIRTUAL_PROCESS_PID]); in StartVMProcessUnwind()
|
/base/hiviewdfx/hidumper/interfaces/native/innerkits/include/ |
H A D | dump_common_utils.h | 46 // get all pids in device. 56 static bool GetUserPids(std::vector<int> &pids);
|
/base/startup/appspawn/modules/common/ |
H A D | appspawn_cgroup.c | 40 int ret = snprintf_s(buffer, buffLen, buffLen - 1, APPSPAWN_BASE_DIR "/dev/pids/testpids/%d/%s/%d/", in GetCgroupPath() 43 int ret = snprintf_s(buffer, buffLen, buffLen - 1, "/dev/pids/%d/%s/app_%d/", userId, appInfo->name, appInfo->pid); in GetCgroupPath() 51 APPSPAWN_STATIC int WriteToFile(const char *path, int truncated, pid_t pids[], uint32_t count) in WriteToFile() argument 59 APPSPAWN_LOGV(" WriteToFile pid %{public}d ", pids[i]); in WriteToFile() 60 ret = snprintf_s(pidName, sizeof(pidName), sizeof(pidName) - 1, "%d\n", pids[i]); in WriteToFile() 127 ret = strcat_s(pathForkDenied, sizeof(pathForkDenied), "pids.fork_denied"); in SetForkDenied() 215 ret = strcat_s(path, sizeof(path), "pids.max"); in ProcessMgrAddApp() 218 APPSPAWN_CHECK(ret == 0, return ret, "write max to pids.max fail %{public}s", path); in ProcessMgrAddApp()
|
/base/hiviewdfx/hidumper/test/unittest/common/ |
H A D | hidumper_configutils_test.cpp | 391 std::vector<int32_t> pids = DUMP_COMMON_UTILS.GetAllPids(); in HWTEST_F() local 392 ASSERT_FALSE(pids.empty()) << "GetAllPids result is empty."; in HWTEST_F() 413 std::vector<int> pids; in HWTEST_F() local 414 ASSERT_TRUE(DUMP_COMMON_UTILS.GetUserPids(pids)); in HWTEST_F()
|
/base/hiviewdfx/hilog/services/hilogtool/ |
H A D | main.cpp | 93 << " Show specific pid/pids logs with format: pid1,pid2,pid3" << endl in QueryHelper() 319 uint32_t pids[MAX_PIDS]; member 335 pidCount(0), pids { 0 }, types(0), blackTag(false), tagCount(0), tags { "" }, colorful(false), 358 rqst.pids[i] = pids[i]; in ToOutputRqst() 672 std::vector<std::string> pids; in PidHandler() local 673 Split(context.blackPid ? arg + 1 : arg, pids); in PidHandler() 674 if (pids.size() == 0) { in PidHandler() 678 for (string p : pids) { in PidHandler() 687 context.pids[inde in PidHandler() [all...] |
/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/ |
H A D | fault_detector_util.cpp | 192 vector<int32_t> pids; in GetAllPids() local 197 pids.push_back(stoi(pid)); in GetAllPids() 199 return pids; in GetAllPids()
|
/base/hiviewdfx/faultloggerd/tools/process_dump/ |
H A D | process_dumper.cpp | 217 pid_t pids[PID_MAX] = {0}; in ReadPids() local 218 OHOS_TEMP_FAILURE_RETRY(read(STDIN_FILENO, pids, sizeof(pids))); in ReadPids() 219 realPid = pids[REAL_PROCESS_PID]; in ReadPids() 220 vmPid = pids[VIRTUAL_PROCESS_PID]; in ReadPids()
|
/base/startup/appspawn/test/mock/ |
H A D | app_spawn_stub.h | 99 int WriteToFile(const char *path, int truncated, pid_t pids[], uint32_t count);
|
/base/hiviewdfx/hilog/frameworks/libhilog/include/ |
H A D | hilog_cmd.h | 86 uint32_t pids[MAX_PIDS]; member
|
/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/native_leak/ |
H A D | native_leak_detector.cpp | 96 vector<int> pids = FaultDetectorUtil::GetAllPids(); in UpdateUserMonitorInfo() local 98 for (auto pid : pids) { in UpdateUserMonitorInfo()
|
/base/hiviewdfx/hilog/services/hilogd/ |
H A D | service_controller.cpp | 478 filter.pids[i] = rqst.pids[i]; in LogFilterFromOutputRqst() 488 filter.pids[0] = pid; in LogFilterFromOutputRqst() 492 filter.pids[1] = ppid; in LogFilterFromOutputRqst()
|
H A D | log_buffer.cpp | 203 if (logData.pid == filter.pids[i]) { in LogMatchFilter()
|
/base/hiviewdfx/hidumper/frameworks/native/src/executor/memory/ |
H A D | memory_info.cpp | 841 std::vector<int32_t> pids(this->pids_); in GetMemoryInfoNoPid() 842 for (auto pid : pids) { in GetMemoryInfoNoPid()
|