Searched refs:kinfo (Results 1 – 6 of 6) sorted by relevance
/external/chromium_org/base/process/ |
D | process_iterator_freebsd.cc | 68 struct kinfo_proc kinfo = kinfo_procs_[index_of_kinfo_proc_]; in CheckForNextProcess() local 69 int mib[] = { CTL_KERN, KERN_PROC_ARGS, kinfo.ki_pid }; in CheckForNextProcess() 71 if ((kinfo.ki_pid > 0) && (kinfo.ki_stat == SZOMB)) in CheckForNextProcess() 97 entry_.pid_ = kinfo.ki_pid; in CheckForNextProcess() 98 entry_.ppid_ = kinfo.ki_ppid; in CheckForNextProcess() 99 entry_.gid_ = kinfo.ki_pgid; in CheckForNextProcess()
|
D | process_iterator_openbsd.cc | 68 kinfo_proc& kinfo = kinfo_procs_[index_of_kinfo_proc_]; in CheckForNextProcess() local 71 if ((kinfo.p_pid > 0) && (kinfo.p_stat == SZOMB)) in CheckForNextProcess() 74 int mib[] = { CTL_KERN, KERN_PROC_ARGS, kinfo.p_pid }; in CheckForNextProcess() 106 entry_.pid_ = kinfo.p_pid; in CheckForNextProcess() 107 entry_.ppid_ = kinfo.p_ppid; in CheckForNextProcess() 108 entry_.gid_ = kinfo.p__pgid; in CheckForNextProcess()
|
D | process_iterator_mac.cc | 74 kinfo_proc& kinfo = kinfo_procs_[index_of_kinfo_proc_]; in CheckForNextProcess() local 77 if ((kinfo.kp_proc.p_pid > 0) && (kinfo.kp_proc.p_stat == SZOMB)) in CheckForNextProcess() 80 int mib[] = { CTL_KERN, KERN_PROCARGS, kinfo.kp_proc.p_pid }; in CheckForNextProcess() 112 entry_.pid_ = kinfo.kp_proc.p_pid; in CheckForNextProcess() 113 entry_.ppid_ = kinfo.kp_eproc.e_ppid; in CheckForNextProcess() 114 entry_.gid_ = kinfo.kp_eproc.e_pgid; in CheckForNextProcess()
|
/external/chromium_org/chrome/browser/ |
D | process_info_snapshot_mac.cc | 29 static bool GetKInfoForProcessID(pid_t pid, kinfo_proc* kinfo) { in GetKInfoForProcessID() argument 31 size_t len = sizeof(*kinfo); in GetKInfoForProcessID() 32 if (sysctl(mib, arraysize(mib), kinfo, &len, NULL, 0) != 0) { in GetKInfoForProcessID() 289 kinfo_proc kinfo; in Sample() local 290 if (!GetKInfoForProcessID(*it, &kinfo)) in Sample() 293 proc_info.ppid = kinfo.kp_eproc.e_ppid; in Sample() 294 proc_info.uid = kinfo.kp_eproc.e_pcred.p_ruid; in Sample() 295 proc_info.euid = kinfo.kp_eproc.e_ucred.cr_uid; in Sample() 297 proc_info.command = kinfo.kp_proc.p_comm; in Sample()
|
/external/chromium/chrome/browser/ |
D | process_info_snapshot_mac.cc | 28 static bool GetKInfoForProcessID(pid_t pid, kinfo_proc* kinfo) { in GetKInfoForProcessID() argument 30 size_t len = sizeof(*kinfo); in GetKInfoForProcessID() 31 if (sysctl(mib, arraysize(mib), kinfo, &len, NULL, 0) != 0) { in GetKInfoForProcessID() 363 kinfo_proc kinfo; in Sample() local 364 if (!GetKInfoForProcessID(*it, &kinfo)) in Sample() 367 proc_info.ppid = kinfo.kp_eproc.e_ppid; in Sample() 368 proc_info.uid = kinfo.kp_eproc.e_pcred.p_ruid; in Sample() 369 proc_info.euid = kinfo.kp_eproc.e_ucred.cr_uid; in Sample() 371 proc_info.command = kinfo.kp_proc.p_comm; in Sample()
|
/external/chromium/base/ |
D | process_util_mac.mm | 116 kinfo_proc& kinfo = kinfo_procs_[index_of_kinfo_proc_]; 119 if ((kinfo.kp_proc.p_pid > 0) && (kinfo.kp_proc.p_stat == SZOMB)) 122 int mib[] = { CTL_KERN, KERN_PROCARGS, kinfo.kp_proc.p_pid }; 154 entry_.pid_ = kinfo.kp_proc.p_pid; 155 entry_.ppid_ = kinfo.kp_eproc.e_ppid; 156 entry_.gid_ = kinfo.kp_eproc.e_pgid;
|