Home
last modified time | relevance | path

Searched refs:proc_kinfo (Results 1 – 5 of 5) sorted by relevance

/external/llvm-project/lldb/source/Host/netbsd/
DHostNetBSD.cpp138 struct ::kinfo_proc2 *proc_kinfo; in GetNetBSDProcessUserAndGroup() local
148 if ((proc_kinfo = ::kvm_getproc2(kdp, KERN_PROC_PID, pid, in GetNetBSDProcessUserAndGroup()
160 process_info.SetParentProcessID(proc_kinfo->p_ppid); in GetNetBSDProcessUserAndGroup()
161 process_info.SetUserID(proc_kinfo->p_ruid); in GetNetBSDProcessUserAndGroup()
162 process_info.SetGroupID(proc_kinfo->p_rgid); in GetNetBSDProcessUserAndGroup()
163 process_info.SetEffectiveUserID(proc_kinfo->p_uid); in GetNetBSDProcessUserAndGroup()
164 process_info.SetEffectiveGroupID(proc_kinfo->p_gid); in GetNetBSDProcessUserAndGroup()
194 struct ::kinfo_proc2 *proc_kinfo; in FindProcessesImpl() local
196 if ((proc_kinfo = ::kvm_getproc2(kdp, KERN_PROC_ALL, 0, in FindProcessesImpl()
207 if (proc_kinfo[i].p_pid < 1) in FindProcessesImpl()
[all …]
/external/llvm-project/lldb/source/Host/freebsd/
DHost.cpp118 struct kinfo_proc proc_kinfo; in GetFreeBSDProcessUserAndGroup() local
128 if (::sysctl(mib, 4, &proc_kinfo, &proc_kinfo_size, NULL, 0) != 0) in GetFreeBSDProcessUserAndGroup()
134 process_info.SetParentProcessID(proc_kinfo.ki_ppid); in GetFreeBSDProcessUserAndGroup()
135 process_info.SetUserID(proc_kinfo.ki_ruid); in GetFreeBSDProcessUserAndGroup()
136 process_info.SetGroupID(proc_kinfo.ki_rgid); in GetFreeBSDProcessUserAndGroup()
137 process_info.SetEffectiveUserID(proc_kinfo.ki_uid); in GetFreeBSDProcessUserAndGroup()
138 if (proc_kinfo.ki_ngroups > 0) in GetFreeBSDProcessUserAndGroup()
139 process_info.SetEffectiveGroupID(proc_kinfo.ki_groups[0]); in GetFreeBSDProcessUserAndGroup()
/external/llvm-project/lldb/source/Host/openbsd/
DHost.cpp116 struct kinfo_proc proc_kinfo; in GetOpenBSDProcessUserAndGroup() local
124 if (::sysctl(mib, 4, &proc_kinfo, &proc_kinfo_size, NULL, 0) == 0) { in GetOpenBSDProcessUserAndGroup()
126 process_info.SetParentProcessID(proc_kinfo.p_ppid); in GetOpenBSDProcessUserAndGroup()
127 process_info.SetUserID(proc_kinfo.p_ruid); in GetOpenBSDProcessUserAndGroup()
128 process_info.SetGroupID(proc_kinfo.p_rgid); in GetOpenBSDProcessUserAndGroup()
129 process_info.SetEffectiveUserID(proc_kinfo.p_uid); in GetOpenBSDProcessUserAndGroup()
130 process_info.SetEffectiveGroupID(proc_kinfo.p_gid); in GetOpenBSDProcessUserAndGroup()
/external/llvm-project/lldb/source/Host/macosx/objcxx/
DHost.mm565 struct kinfo_proc proc_kinfo;
568 if (::sysctl(mib, 4, &proc_kinfo, &proc_kinfo_size, NULL, 0) == 0) {
570 process_info.SetParentProcessID(proc_kinfo.kp_eproc.e_ppid);
571 process_info.SetUserID(proc_kinfo.kp_eproc.e_pcred.p_ruid);
572 process_info.SetGroupID(proc_kinfo.kp_eproc.e_pcred.p_rgid);
573 process_info.SetEffectiveUserID(proc_kinfo.kp_eproc.e_ucred.cr_uid);
574 if (proc_kinfo.kp_eproc.e_ucred.cr_ngroups > 0)
576 proc_kinfo.kp_eproc.e_ucred.cr_groups[0]);
/external/llvm-project/lldb/tools/debugserver/source/
DRNBRemote.cpp6261 struct kinfo_proc proc_kinfo; in HandlePacket_qProcessInfo() local
6264 if (::sysctl(procpid_mib, 4, &proc_kinfo, &proc_kinfo_size, NULL, 0) == 0) { in HandlePacket_qProcessInfo()
6266 rep << "parent-pid:" << std::hex << proc_kinfo.kp_eproc.e_ppid << ';'; in HandlePacket_qProcessInfo()
6267 rep << "real-uid:" << std::hex << proc_kinfo.kp_eproc.e_pcred.p_ruid in HandlePacket_qProcessInfo()
6269 rep << "real-gid:" << std::hex << proc_kinfo.kp_eproc.e_pcred.p_rgid in HandlePacket_qProcessInfo()
6271 rep << "effective-uid:" << std::hex << proc_kinfo.kp_eproc.e_ucred.cr_uid in HandlePacket_qProcessInfo()
6273 if (proc_kinfo.kp_eproc.e_ucred.cr_ngroups > 0) in HandlePacket_qProcessInfo()
6275 << proc_kinfo.kp_eproc.e_ucred.cr_groups[0] << ';'; in HandlePacket_qProcessInfo()