Searched refs:kinfo (Results 1 – 6 of 6) sorted by relevance
/external/llvm-project/lldb/source/Host/freebsd/ |
D | Host.cpp | 183 const struct kinfo_proc &kinfo = kinfos[i]; in FindProcessesImpl() local 186 if (!all_users && kinfo.ki_ruid != our_uid) in FindProcessesImpl() 189 if (kinfo.ki_pid == our_pid || // Skip this process in FindProcessesImpl() 190 kinfo.ki_pid == 0 || // Skip kernel (kernel pid is 0) in FindProcessesImpl() 191 kinfo.ki_stat == SZOMB || // Zombies are bad in FindProcessesImpl() 192 kinfo.ki_flag & P_TRACED || // Being debugged? in FindProcessesImpl() 193 kinfo.ki_flag & P_WEXIT) // Working on exiting in FindProcessesImpl() 201 !already_registered && (const int)kinfo.ki_numthreads > 1 && in FindProcessesImpl() 205 (process_infos[pi].GetProcessID() == (uint32_t)kinfo.ki_pid); in FindProcessesImpl() 211 process_info.SetProcessID(kinfo.ki_pid); in FindProcessesImpl() [all …]
|
/external/llvm-project/lldb/source/Host/openbsd/ |
D | Host.cpp | 169 const struct kinfo_proc &kinfo = kinfos[i]; in FindProcessesImpl() local 170 const bool kinfo_user_matches = (all_users || (kinfo.p_ruid == our_uid) || in FindProcessesImpl() 176 kinfo.p_pid == our_pid || // Skip this process in FindProcessesImpl() 177 kinfo.p_pid == 0 || // Skip kernel (kernel pid is zero) in FindProcessesImpl() 178 kinfo.p_stat == SZOMB || // Zombies are bad, they like brains... in FindProcessesImpl() 179 kinfo.p_psflags & PS_TRACED || // Being debugged? in FindProcessesImpl() 180 kinfo.p_flag & P_WEXIT) // Working on exiting in FindProcessesImpl() 184 process_info.SetProcessID(kinfo.p_pid); in FindProcessesImpl() 185 process_info.SetParentProcessID(kinfo.p_ppid); in FindProcessesImpl() 186 process_info.SetUserID(kinfo.p_ruid); in FindProcessesImpl() [all …]
|
/external/llvm-project/lldb/tools/darwin-threads/ |
D | examine-threads.c | 97 struct kinfo_proc *kinfo = in get_kinfo_proc_for_pid() local 101 if (sysctl(mib, sizeof(mib) / sizeof(mib[0]), kinfo, &len, NULL, 0) != 0) { in get_kinfo_proc_for_pid() 102 free((void *)kinfo); in get_kinfo_proc_for_pid() 106 return kinfo; in get_kinfo_proc_for_pid() 325 struct kinfo_proc *kinfo = get_kinfo_proc_for_pid(pid, process_name); in main() local 328 switch (kinfo->kp_proc.p_stat) { in main() 347 if (kinfo->kp_proc.p_flag & P_TRACED) in main() 349 free((void *)kinfo); in main()
|
/external/llvm-project/lldb/source/Host/macosx/objcxx/ |
D | Host.mm | 617 const struct kinfo_proc &kinfo = kinfos[i]; 623 kinfo_user_matches = kinfo.kp_eproc.e_pcred.p_ruid == our_uid; 630 static_cast<lldb::pid_t>(kinfo.kp_proc.p_pid) == 632 kinfo.kp_proc.p_pid == 0 || // Skip kernel (kernel pid is zero) 633 kinfo.kp_proc.p_stat == SZOMB || // Zombies are bad, they like brains... 634 kinfo.kp_proc.p_flag & P_TRACED || // Being debugged? 635 kinfo.kp_proc.p_flag & P_WEXIT) 639 process_info.SetProcessID(kinfo.kp_proc.p_pid); 640 process_info.SetParentProcessID(kinfo.kp_eproc.e_ppid); 641 process_info.SetUserID(kinfo.kp_eproc.e_pcred.p_ruid); [all …]
|
/external/llvm-project/lldb/tools/debugserver/source/ |
D | RNBRemote.cpp | 3681 struct kinfo_proc kinfo; in attach_failed_due_to_uid_mismatch() local 3684 if (sysctl(mib, sizeof(mib) / sizeof(mib[0]), &kinfo, &len, NULL, 0) != 0) { in attach_failed_due_to_uid_mismatch() 3690 process_uid = kinfo.kp_eproc.e_ucred.cr_uid; in attach_failed_due_to_uid_mismatch() 3706 struct kinfo_proc kinfo; in process_is_already_being_debugged() local 3709 if (sysctl(mib, sizeof(mib) / sizeof(mib[0]), &kinfo, &len, NULL, 0) != 0) { in process_is_already_being_debugged() 3712 if (kinfo.kp_proc.p_flag & P_TRACED) in process_is_already_being_debugged()
|
/external/llvm-project/lldb/tools/debugserver/source/MacOSX/ |
D | MachProcess.mm | 2651 struct kinfo_proc kinfo; 2654 if (sysctl(mib, sizeof(mib) / sizeof(mib[0]), &kinfo, &len, NULL, 0) == 0 && len > 0) { 2655 if (kinfo.kp_proc.p_flag & P_TRACED) {
|