Home
last modified time | relevance | path

Searched refs:pids (Results 1 – 25 of 26) sorted by relevance

12

/base/startup/appspawn/
Dappspawn.cfg15 "mkdir /dev/pids",
16 "mount cgroup none /dev/pids pids",
17 "chown root appspawn /dev/pids",
18 "chown root appspawn /dev/pids/tasks",
19 "chown root appspawn /dev/pids/cgroup.procs",
20 "chmod 0755 /dev/pids",
21 "chmod 0755 /dev/pids/tasks",
22 "chmod 0755 /dev/pids/cgroup.procs"
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/
Dpeer_binder_catcher.cpp87 std::set<int> pids = GetBinderPeerPids(fd, jsonFd); in Catch() local
88 if (pids.empty()) { in Catch()
93 ForkToDumpHiperf(pids); in Catch()
96 for (auto pidTemp : pids) { in Catch()
240 std::set<int> pids; in GetBinderPeerPids() local
248 return pids; in GetBinderPeerPids()
255 return pids; in GetBinderPeerPids()
260 pids.insert(each.server); in GetBinderPeerPids()
263 ParseBinderCallChain(manager, pids, pid_); in GetBinderPeerPids()
265 return pids; in GetBinderPeerPids()
[all …]
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/include/
Dpeer_binder_catcher.h70 std::set<int>& pids, int pid) const;
75 void ForkToDumpHiperf(const std::set<int>& pids);
76 void DoExecHiperf(const std::string& fileName, const std::set<int>& pids);
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/test/unittest/common/
Devent_logger_catcher_test.cpp650 std::set<int> pids; variable
651 pids.insert(pid);
652 peerBinderCatcher->DoExecHiperf("peerBinderCatcher", pids);
702 std::set<int> pids; variable
703 pids.insert(0);
704 pids.insert(2);
713 peerBinderCatcher->ParseBinderCallChain(manager, pids, 0);
720 peerBinderCatcher->ParseBinderCallChain(manager, pids, 1);
722 pids.insert(3);
723 pids.insert(4);
[all …]
/base/startup/appspawn/adapter/
Dappspawn_cgroup.c82 static int WriteToFile(const char *path, int truncated, pid_t pids[], uint32_t count) in WriteToFile() argument
90 APPSPAWN_LOGV(" WriteToFile pid %{public}d ", pids[i]); in WriteToFile()
91 if (pids[i] == 0) { in WriteToFile()
94 ret = snprintf_s(pidName, sizeof(pidName), sizeof(pidName) - 1, "%d\n", pids[i]); in WriteToFile()
/base/hiviewdfx/hilog/services/hilogd/include/
Dlog_filter.h38 uint32_t pids[MAX_PIDS]; member
59 std::cout << " pid[" << i << "]" << pids[i] << std::endl; in Print()
/base/hiviewdfx/hidumper/services/native/src/
Ddump_common_utils.cpp98 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()
Ddump_manager_service.cpp197 std::vector<int32_t> pids = DumpCommonUtils::GetAllPids(); in ScanPidOverLimit() local
198 for (const auto &pid : pids) { in ScanPidOverLimit()
/base/startup/appspawn/modules/common/
Dappspawn_cgroup.c48 APPSPAWN_STATIC int WriteToFile(const char *path, int truncated, pid_t pids[], uint32_t count) in WriteToFile() argument
56 APPSPAWN_LOGV(" WriteToFile pid %{public}d ", pids[i]); in WriteToFile()
57 ret = snprintf_s(pidName, sizeof(pidName), sizeof(pidName) - 1, "%d\n", pids[i]); in WriteToFile()
/base/hiviewdfx/hidumper/test/unittest/common/
Dhidumper_configutils_test.cpp205 std::vector<int32_t> pids = DUMP_COMMON_UTILS.GetAllPids(); variable
206 ASSERT_FALSE(pids.empty()) << "GetAllPids result is empty.";
227 std::vector<int> pids; variable
228 ASSERT_TRUE(DUMP_COMMON_UTILS.GetUserPids(pids));
/base/startup/appspawn/test/unittest/app_spawn_standard_test/
Dapp_spawn_cgroup_test.cpp126 pid_t pids[] = {100, 101, 102}; variable
127 ret = WriteToFile(path, 0, pids, 3);
269 pid_t pids[] = {100, 101, 102}; variable
270 ret = WriteToFile(path, 0, pids, 3);
/base/startup/appspawn/test/mock/
Dapp_spawn_stub.h63 int WriteToFile(const char *path, int truncated, pid_t pids[], uint32_t count);
/base/hiviewdfx/hidumper/interfaces/native/innerkits/include/
Ddump_common_utils.h56 static bool GetUserPids(std::vector<int> &pids);
/base/hiviewdfx/hilog/services/hilogtool/
Dmain.cpp312 uint32_t pids[MAX_PIDS]; member
327 … pidCount(0), pids { 0 }, types(0), blackTag(false), tagCount(0), tags { "" }, colorful(false),
350 rqst.pids[i] = pids[i]; in ToOutputRqst()
663 std::vector<std::string> pids; in PidHandler() local
664 Split(context.blackPid ? arg + 1 : arg, pids); in PidHandler()
665 if (pids.size() == 0) { in PidHandler()
669 for (string p : pids) { in PidHandler()
678 context.pids[index++] = static_cast<uint32_t>(pid); in PidHandler()
/base/hiviewdfx/faultloggerd/interfaces/innerkits/signal_handler/
Ddfx_signal_handler.c643 pid_t pids[PID_MAX] = {0}; in StartVMProcessUnwind() local
644 pids[REAL_PROCESS_PID] = GetRealPid(); in StartVMProcessUnwind()
645 pids[VIRTUAL_PROCESS_PID] = syscall(SYS_getpid); in StartVMProcessUnwind()
647 OHOS_TEMP_FAILURE_RETRY(write(g_pipeFds[WRITE_TO_DUMP][1], pids, sizeof(pids))); in StartVMProcessUnwind()
654 DFXLOG_INFO("processdump unwind finish, exit vm pid = %d", pids[VIRTUAL_PROCESS_PID]); in StartVMProcessUnwind()
/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/
Dfault_detector_util.cpp192 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/
Dprocess_dumper.cpp207 pid_t pids[PID_MAX] = {0}; in ReadPids() local
208 OHOS_TEMP_FAILURE_RETRY(read(STDIN_FILENO, pids, sizeof(pids))); in ReadPids()
209 realPid = pids[REAL_PROCESS_PID]; in ReadPids()
210 vmPid = pids[VIRTUAL_PROCESS_PID]; in ReadPids()
/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/native_leak/
Dnative_leak_detector.cpp96 vector<int> pids = FaultDetectorUtil::GetAllPids(); in UpdateUserMonitorInfo() local
98 for (auto pid : pids) { in UpdateUserMonitorInfo()
/base/hiviewdfx/hilog/frameworks/libhilog/include/
Dhilog_cmd.h86 uint32_t pids[MAX_PIDS]; member
/base/hiviewdfx/hilog/services/hilogd/
Dservice_controller.cpp478 filter.pids[i] = rqst.pids[i]; in LogFilterFromOutputRqst()
488 filter.pids[0] = pid; in LogFilterFromOutputRqst()
492 filter.pids[1] = ppid; in LogFilterFromOutputRqst()
Dlog_buffer.cpp205 if (logData.pid == filter.pids[i]) { in LogMatchFilter()
/base/hiviewdfx/hidumper/frameworks/native/src/executor/memory/
Dmemory_info.cpp989 std::vector<int32_t> pids(pids_); in GetMemoryInfoNoPid() local
990 for (auto pid : pids) { in GetMemoryInfoNoPid()
/base/security/selinux_adapter/sepolicy/ohos_policy/startup/appspawn/system/
Dappspawn.te141 # for app cgroup pids
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest010/
Dappfreeze-com.example.jsinject-20010039-19700326211815648 PeerBinder pids is empty
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest011/
Dappfreeze-com.example.jsinject-20010039-19700326211815648 PeerBinder pids is empty

12