Home
last modified time | relevance | path

Searched refs:ki_pid (Results 1 – 25 of 43) sorted by relevance

12

/freebsd/usr.bin/w/
H A Dproc_compare.c86 return (p2->ki_pid > p1->ki_pid); /* tie - return highest pid */ in proc_compare()
97 return (p2->ki_pid > p1->ki_pid); /* tie - return highest pid */ in proc_compare()
113 return (p2->ki_pid > p1->ki_pid); /* tie - return highest pid */ in proc_compare()
/freebsd/usr.bin/procstat/
H A Dprocstat_sigs.c120 xo_emit("{ek:process_id/%5d/%d}", kipp->ki_pid); in procstat_sigs()
124 xo_emit("{dk:process_id/%5d/%d} ", kipp->ki_pid); in procstat_sigs()
150 kipp->ki_pid, &count); in procstat_threads_sigs()
153 xo_emit("{ek:process_id/%5d/%d}", kipp->ki_pid); in procstat_threads_sigs()
168 xo_emit("{dk:process_id/%5d/%d} ", kipp->ki_pid); in procstat_threads_sigs()
202 kipp->ki_pid, &count); in procstat_sigfastblock()
205 xo_emit("{ek:process_id/%5d/%d}", kipp->ki_pid); in procstat_sigfastblock()
231 xo_emit("{dk:process_id/%5d/%d} ", kipp->ki_pid); in procstat_sigfastblock()
H A Dprocstat_rusage.c105 xo_emit("{d:process_id/%5d/%d} ", kipp->ki_pid); in print_prefix()
133 xo_emit("{e:process_id/%d}", kipp->ki_pid); in print_rusage()
179 xo_emit("{e:process_id/%d}", kipp->ki_pid); in procstat_rusage()
184 kipp->ki_pid, &count); in procstat_rusage()
H A Dprocstat_threads.c55 xo_emit("{ek:process_id/%d}", kipp->ki_pid); in procstat_threads()
61 kipp->ki_pid, &count); in procstat_threads()
72 xo_emit("{dk:process_id/%5d/%d} ", kipp->ki_pid); in procstat_threads()
H A Dprocstat_rlimitusage.c59 xo_emit("{ek:process_id/%d}", kipp->ki_pid); in procstat_rlimitusage()
67 xo_emit("{dk:process_id/%7d} ", kipp->ki_pid); in procstat_rlimitusage()
H A Dprocstat_penv.c51 xo_emit("{k:process_id/%d}: {:command/%s/%s}\n", kipp->ki_pid, in procstat_pargs()
72 xo_emit("{k:process_id/%d}: {:command/%s/%s}\n", kipp->ki_pid, in procstat_penv()
H A Dprocstat_args.c56 xo_emit("{k:process_id/%5d/%d} {:command/%-16s/%s}", kipp->ki_pid, in procstat_args()
83 xo_emit("{k:process_id/%5d/%d} {:command/%-16s/%s}", kipp->ki_pid, in procstat_env()
H A Dprocstat_rlimit.c101 xo_emit("{ek:process_id/%5d}{e:command/%-16s/%s}", kipp->ki_pid, in procstat_rlimit()
107 "{d:rlimit_param/%-16s} ", kipp->ki_pid, kipp->ki_comm, in procstat_rlimit()
H A Dprocstat_cs.c58 kipp->ki_pid, &count); in procstat_cs()
64 xo_emit("{k:process_id/%5d/%d} ", kipp->ki_pid); in procstat_cs()
H A Dprocstat_vm.c58 xo_emit("{ek:process_id/%d}", kipp->ki_pid); in procstat_vm()
67 xo_emit("{dk:process_id/%5d} ", kipp->ki_pid); in procstat_vm()
H A Dprocstat_kstack.c185 KERN_PROC_PID | KERN_PROC_INC_THREAD, kipp->ki_pid, &kip_count); in procstat_kstack()
209 xo_emit("{k:process_id/%5d/%d} ", kipp->ki_pid); in procstat_kstack()
H A Dprocstat_auxv.c61 snprintf(prefix, sizeof(prefix), "%5d %-19s", kipp->ki_pid, in procstat_auxv()
64 xo_emit("{e:process_id/%5d/%d}{e:command/%-19s/%s}", kipp->ki_pid, in procstat_auxv()
H A Dprocstat_bin.c60 xo_emit("{k:process_id/%5d/%d} ", kipp->ki_pid); in procstat_bin()
H A Dprocstat_pwdx.c61 xo_emit("{k:process_id/%d}{P:: }", kipp->ki_pid); in procstat_pwdx()
H A Dprocstat_basic.c50 xo_emit("{k:process_id/%5d/%d} ", kipp->ki_pid); in procstat_basic()
/freebsd/bin/pkill/
H A Dpkill.c73 #define PSKIP(kp) ((kp)->ki_pid == mypid || \
383 kp->ki_pid, kp->ki_uid, kp->ki_comm); in main()
421 kp->ki_pid, kp->ki_uid, mstr); in main()
432 if (pidfromfile >= 0 && kp->ki_pid != pidfromfile) { in main()
533 if (kp->ki_pid == pid) { in main()
589 printf("kill -%d %d\n", signum, kp->ki_pid); in main()
637 printf("%d ", (int)kp->ki_pid); in show_process()
644 printf("%d %s", (int)kp->ki_pid, kp->ki_comm); in show_process()
646 printf("%d", (int)kp->ki_pid); in show_process()
668 if (kill(kp->ki_pid, signum) == -1) { in killact()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Host/freebsd/
H A DHost.cpp189 if (kinfo.ki_pid == our_pid || // Skip this process in FindProcessesImpl()
190 kinfo.ki_pid == 0 || // Skip kernel (kernel pid is 0) in FindProcessesImpl()
205 (process_infos[pi].GetProcessID() == (uint32_t)kinfo.ki_pid); in FindProcessesImpl()
211 process_info.SetProcessID(kinfo.ki_pid); in FindProcessesImpl()
/freebsd/lib/libutil/
H A Dkinfo_getallproc.c47 i = ((const struct kinfo_proc *)a)->ki_pid - in kinfo_proc_compare()
48 ((const struct kinfo_proc *)b)->ki_pid; in kinfo_proc_compare()
H A Dkinfo_getproc.c60 if (kipp->ki_pid != pid) in kinfo_getproc()
/freebsd/tools/test/stress2/misc/
H A Dkinfo.sh131 freep = kinfo_getfile(kipp[i].ki_pid, &cnt);
134 freep_vm = kinfo_getvmmap(kipp[i].ki_pid, &cnt);
H A Dkinfo3.sh160 freep = kinfo_getfile(kipp[i].ki_pid, &cnt);
167 freep_vm = kinfo_getvmmap(kipp[i].ki_pid, &cnt);
/freebsd/usr.bin/systat/
H A Dproc.c199 if (vm != NULL && vm->pid != kipp->ki_pid) { in per_proc_swap_usage()
202 vm->pid = kipp->ki_pid; in per_proc_swap_usage()
267 pu[nproc]->pid = kipp[i].ki_pid; in procgetinfo()
/freebsd/lib/libprocstat/
H A Dlibprocstat.c419 kp->ki_paddr, kp->ki_pid); in getctty()
428 proc.p_pgrp, kp->ki_pid); in getctty()
435 pgrp.pg_session, kp->ki_pid); in getctty()
865 files = kinfo_getfile(kp->ki_pid, &cnt); in procstat_getfiles_sysctl()
1796 name[3] = kp->ki_pid; in getargv()
1947 return (kinfo_getvmmap(kp->ki_pid, cntp)); in procstat_getvmmap()
1977 kp->ki_paddr, kp->ki_pid); in procstat_getgroups_kvm()
1985 proc.p_ucred, kp->ki_pid); in procstat_getgroups_kvm()
1996 ucred.cr_groups, kp->ki_pid); in procstat_getgroups_kvm()
2051 return (procstat_getgroups_sysctl(kp->ki_pid, cntp)); in procstat_getgroups()
[all …]
/freebsd/bin/ps/
H A Dps.c536 if (kp[i].ki_ppid == kp[i].ki_pid) in main()
541 pidlist.l.pids[pidlist.count++] = kp[i].ki_pid; in main()
550 if (kp[i].ki_ppid == kp[i].ki_pid) in main()
552 if (kp[i].ki_pid == pidlist.l.pids[elem]) { in main()
570 if (kp->ki_pid == pidlist.l.pids[elem]) in main()
1060 if (ki[dst].ki_p->ki_pid == ki[src].ki_p->ki_pid) in descendant_sort()
1062 if (ki[dst].ki_p->ki_pid == ki[src].ki_p->ki_ppid) in descendant_sort()
1332 DIFF_RETURN(ka, kb, ki_p->ki_pid); in pscomp()
/freebsd/usr.bin/top/
H A Dmachine.c832 if (!sel->self && pp->ki_pid == mypid && sel->pid == -1) in get_process_info()
877 if (sel->pid != -1 && pp->ki_pid != sel->pid) in get_process_info()
1110 sbuf_printf(procbuf, "%5d ", (ps.thread_id) ? pp->ki_tid : pp->ki_pid); in format_next_process()
1125 sbuf_printf(procbuf, "%5d ", (ps.thread_id) ? pp->ki_tid : pp->ki_pid); in format_next_process()
1245 assert((*pp2)->ki_pid >= 0 && (*pp1)->ki_pid >= 0); in compare_pid()
1247 return ((*pp1)->ki_pid - (*pp2)->ki_pid); in compare_pid()

12