/freebsd/sys/kern/ |
H A D | sys_process.c | 578 p->p_pid, pve->pve_entry, pve->pve_start); in ptrace_vm_entry() 909 pid = p->p_pid; in kern_ptrace() 1060 CTR1(KTR_PTRACE, "PT_TRACE_ME: pid %d", p->p_pid); in kern_ptrace() 1076 CTR2(KTR_PTRACE, "PT_ATTACH: pid %d, oppid %d", p->p_pid, in kern_ptrace() 1100 p->p_pid); in kern_ptrace() 1106 p->p_pid); in kern_ptrace() 1112 p->p_pid); in kern_ptrace() 1119 p->p_pid); in kern_ptrace() 1124 CTR3(KTR_PTRACE, "PT_FOLLOW_FORK: pid %d %s -> %s", p->p_pid, in kern_ptrace() 1134 CTR3(KTR_PTRACE, "PT_LWP_EVENTS: pid %d %s -> %s", p->p_pid, in kern_ptrace() [all …]
|
H A D | kern_exit.c | 116 return (child->p_pptr->p_pid == child->p_oppid ? in proc_realparent() 234 TSPROCEXIT(td->td_proc->p_pid); in exit1() 458 WITNESS_WARN(WARN_PANIC, NULL, "process (pid %d) exiting", p->p_pid); in exit1() 582 KASSERT(q->p_oppid == p->p_pid, in exit1() 585 q->p_oppid = q->p_reaper->p_pid; in exit1() 594 CTR2(KTR_PTRACE, "exit: pid %d, clearing orphan %d", p->p_pid, in exit1() 595 q->p_pid); in exit1() 785 p->p_comm, p->p_pid, td->td_ucred->cr_uid); in kern_abort2() 946 if (p->p_oppid != p->p_pptr->p_pid) { in proc_reap() 952 "wait: traced child %d moved back to parent %d", p->p_pid, in proc_reap() [all …]
|
H A D | kern_fork.c | 390 p2->p_pid = fork_findpid(fr->fr_flags); in do_fork() 391 AUDIT_ARG_PID(p2->p_pid); in do_fork() 392 TSFORK(p2->p_pid, p1->p_pid); in do_fork() 400 sx_xlock(PIDHASHLOCK(p2->p_pid)); in do_fork() 401 LIST_INSERT_HEAD(PIDHASH(p2->p_pid), p2, p_hash); in do_fork() 402 sx_xunlock(PIDHASHLOCK(p2->p_pid)); in do_fork() 650 p2->p_oppid = pptr->p_pid; in do_fork() 655 p2->p_reapsubtree = p2->p_pid; in do_fork() 656 proc_id_set_cond(PROC_ID_REAP, p2->p_pid); in do_fork() 736 knote_fork(p1->p_klist, p2->p_pid); in do_fork() [all …]
|
H A D | kern_synch.c | 181 td->td_tid, td->td_proc->p_pid, td->td_name, wmesg, ident); in _sleep() 255 td->td_tid, td->td_proc->p_pid, td->td_name, wmesg, ident); in msleep_spin_sbt() 523 td->td_tid, td_get_sched(td), td->td_proc->p_pid, td->td_name); in mi_switch() 532 td->td_tid, td_get_sched(td), td->td_proc->p_pid, td->td_name); in mi_switch() 554 ("setrunnable: pid %d is a zombie", td->td_proc->p_pid)); in mi_switch()
|
H A D | kern_procctl.c | 184 rs->rs_reaper = reap->p_pid; in reap_status() 191 rs->rs_pid = first_p->p_pid; in reap_status() 230 pip->pi_pid = p2->p_pid; in reap_getpids() 274 w->rk->rk_fpid = w->target->p_pid; in reap_kill_proc_locked() 367 rk->rk_fpid = p2->p_pid; in reap_kill_children() 430 if (alloc_unr_specific(pids, p2->p_pid) != p2->p_pid && in reap_kill_subtree_once() 563 ksi.ksi_pid = td->td_proc->p_pid; in reap_kill() 633 ("%d traced but tracing disabled", p->p_pid)); in trace_status() 636 *status = p->p_pptr->p_pid; in trace_status()
|
H A D | kern_thr.c | 400 ksi.ksi_pid = p->p_pid; in sys_thr_kill() 420 ttd = tdfind((lwpid_t)uap->id, p->p_pid); in sys_thr_kill() 448 ksi.ksi_pid = td->td_proc->p_pid; in sys_thr_kill2() 566 ttd = tdfind((lwpid_t)uap->id, p->p_pid); in sys_thr_wake() 597 ttd = tdfind((lwpid_t)uap->id, p->p_pid); in sys_thr_set_name()
|
H A D | tty_info.c | 215 return (p2->p_pid > p1->p_pid); /* tie - return highest pid */ in proc_compare() 383 pid = p->p_pid; in tty_info()
|
H A D | subr_trap.c | 90 CTR3(KTR_SYSC, "userret: thread %p (pid %d, %s)", td, p->p_pid, in userret() 191 __func__, td, p->p_pid, td->td_name, curvnet, in userret() 341 CTR3(KTR_SYSC, "ast: thread %p (pid %d, %s)", td, td->td_proc->p_pid, in ast_handler()
|
/freebsd/sys/dev/filemon/ |
H A D | filemon_wrapper.c | 107 curproc->p_pid, filemon->fname1); in filemon_wrapper_chdir() 124 p->p_pid, in filemon_event_process_exec() 179 curproc->p_pid, filemon->fname1); in _filemon_wrapper_openat() 197 curproc->p_pid, atpath, in _filemon_wrapper_openat() 203 curproc->p_pid, atpath, in _filemon_wrapper_openat() 252 curproc->p_pid, filemon->fname1, filemon->fname2); in filemon_wrapper_rename() 278 curproc->p_pid, filemon->fname1, filemon->fname2); in _filemon_wrapper_link() 324 p->p_pid, p->p_xexit, p->p_xsig); in filemon_event_process_exit() 356 curproc->p_pid, filemon->fname1); in filemon_wrapper_unlink() 373 p1->p_pid, p2->p_pid); in filemon_event_process_fork()
|
/freebsd/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_core.h | 45 (dev)->priv.name, __func__, __LINE__, curthread->td_proc->p_pid, \ 56 __func__, __LINE__, curthread->td_proc->p_pid, \ 61 __func__, __LINE__, curthread->td_proc->p_pid, \ 66 __func__, __LINE__, curthread->td_proc->p_pid, \
|
/freebsd/sys/compat/linux/ |
H A D | linux_emul.c | 154 LINUX_CTR1(proc_init, "fork newtd(%d)", p->p_pid); in linux_proc_init() 156 em->em_tid = p->p_pid; in linux_proc_init() 170 LINUX_CTR1(proc_init, "exec newtd(%d)", p->p_pid); in linux_proc_init() 176 em->em_tid = p->p_pid; in linux_proc_init() 198 td->td_tid, p->p_pid, p); in linux_on_exit()
|
H A D | linux_fork.c | 82 td->td_retval[0] = p2->p_pid; in linux_fork() 112 td->td_retval[0] = p2->p_pid; in linux_vfork() 193 error = copyout(&p2->p_pid, args->parent_tid, in linux_clone_proc() 194 sizeof(p2->p_pid)); in linux_clone_proc() 231 td->td_retval[0] = p2->p_pid; in linux_clone_proc()
|
/freebsd/contrib/llvm-project/lldb/source/Host/netbsd/ |
H A D | HostNetBSD.cpp | 209 if (proc_kinfo[i].p_pid < 1) in FindProcessesImpl() 215 if (proc_kinfo[i].p_pid == our_pid || // Skip this process in FindProcessesImpl() 216 proc_kinfo[i].p_pid == 0 || // Skip kernel (kernel pid is 0) in FindProcessesImpl() 228 if ((::pid_t)process_infos[pi].GetProcessID() == proc_kinfo[i].p_pid) { in FindProcessesImpl() 238 process_info.SetProcessID(proc_kinfo[i].p_pid); in FindProcessesImpl()
|
/freebsd/cddl/lib/libdtrace/ |
H A D | psinfo.d | 51 pr_pid = T->p_pid; 52 pr_ppid = (T->p_pptr == 0) ? 0 : T->p_pptr->p_pid; 53 pr_pgid = (T->p_leader == 0) ? 0 : T->p_leader->p_pid;
|
/freebsd/sys/netlink/ |
H A D | netlink_domain.c | 274 if (nl_port_lookup(curproc->p_pid) == NULL) in nl_find_port() 275 return (curproc->p_pid); in nl_find_port() 282 return (curproc->p_pid); in nl_find_port() 330 so, is_linux ? "(linux) " : "", curproc->p_pid, in nl_attach() 344 nlp->nl_process_id = curproc->p_pid; in nl_attach() 373 NL_LOG(LOG_DEBUG3, "socket %p, PID %d", so, curproc->p_pid); in nl_bind() 446 NL_LOG(LOG_DEBUG3, "socket %p, PID %d", so, curproc->p_pid); in nl_connect() 454 int error = nl_autobind_port(nlp, td->td_proc->p_pid); in nl_connect() 486 NL_LOG(LOG_DEBUG2, "detaching socket %p, PID %d", so, curproc->p_pid); in nl_close() 529 NL_LOG(LOG_DEBUG3, "socket %p, PID %d", so, curproc->p_pid); in nl_disconnect() [all …]
|
/freebsd/sys/ddb/ |
H A D | db_ps.c | 154 db_printf("%5d %5d %5d %5d ", p->p_pid, pp->p_pid, in db_ps_proc() 357 db_printf(" proc (pid %d): %p\n", td->td_proc->p_pid, td->td_proc); in DB_SHOW_COMMAND() 446 db_printf("Process %d (%s) at %p:\n", p->p_pid, p->p_comm, p); in DB_SHOW_COMMAND() 471 db_printf(" parent: pid %d at %p\n", p->p_pptr->p_pid, in DB_SHOW_COMMAND() 474 db_printf(" leader: pid %d at %p\n", p->p_leader->p_pid, in DB_SHOW_COMMAND()
|
H A D | db_thread.c | 47 pid = kdb_thread->td_proc->p_pid; in db_print_thread() 146 if (p->p_pid == decaddr) in db_lookup_proc()
|
/freebsd/sys/fs/procfs/ |
H A D | procfs_status.c | 76 pid = p->p_pid; in procfs_doprocstatus() 78 ppid = p->p_pptr ? p->p_pptr->p_pid : 0; in procfs_doprocstatus() 82 sid = sess->s_leader ? sess->s_leader->p_pid : 0; in procfs_doprocstatus()
|
/freebsd/contrib/llvm-project/lldb/source/Host/openbsd/ |
H A D | Host.cpp | 176 kinfo.p_pid == our_pid || // Skip this process in FindProcessesImpl() 177 kinfo.p_pid == 0 || // Skip kernel (kernel pid is zero) in FindProcessesImpl() 184 process_info.SetProcessID(kinfo.p_pid); in FindProcessesImpl()
|
/freebsd/sys/net/ |
H A D | bpfdesc.h | 119 #define BPF_PID_REFRESH(bd, td) (bd)->bd_pid = (td)->td_proc->p_pid 120 #define BPF_PID_REFRESH_CUR(bd) (bd)->bd_pid = curthread->td_proc->p_pid
|
/freebsd/sys/dev/hwpmc/ |
H A D | hwpmc_mod.c | 909 __LINE__, pm, pp->pp_proc->p_pid)); in pmc_link_target_process() 951 "ri=%d", __LINE__, pp->pp_proc->p_pid, ri)); in pmc_link_target_process() 1096 PMC_TO_ROWINDEX(pm), p, p->p_pid, p->p_comm); in pmc_attach_one_process() 1145 pmclog_process_pmcattach(pm, p->p_pid, fullpath); in pmc_attach_one_process() 1172 PMC_TO_ROWINDEX(pm), p, p->p_pid, p->p_comm); in pmc_attach_process() 1234 pm, ri, p, p->p_pid, p->p_comm, flags); in pmc_detach_one_process() 1246 pmclog_process_pmcdetach(pm, p->p_pid); in pmc_detach_one_process() 1283 PMC_TO_ROWINDEX(pm), p, p->p_pid, p->p_comm); in pmc_detach_process() 1347 pmclog_process_procexec(po, PMC_ID_INVALID, p->p_pid, in pmc_process_exec() 1394 pmclog_process_procexec(po, pm->pm_id, p->p_pid, in pmc_process_exec() [all …]
|
/freebsd/sys/dev/qat/qat_common/ |
H A D | adf_ctl_drv.c | 285 if (instance_rings->user_pid == curproc->p_pid) { in adf_ctl_ioctl_reserve_ring() 293 pr_err("QAT: process %d not found\n", curproc->p_pid); in adf_ctl_ioctl_reserve_ring() 324 if (instance_rings->user_pid == curproc->p_pid) { in adf_ctl_ioctl_release_ring() 333 curproc->p_pid); in adf_ctl_ioctl_release_ring()
|
/freebsd/sys/amd64/linux/ |
H A D | linux_sysvec.c | 313 uprintf("pid %d (%s): linux xrstor failed\n", p->p_pid, in linux_xrstor() 324 p->p_pid, td->td_name, magic2, error); in linux_xrstor() 332 p->p_pid, td->td_name, error); in linux_xrstor() 391 p->p_pid, p->p_comm, rflags); in linux_rt_sigreturn() 402 p->p_pid, p->p_comm, context->sc_cs); in linux_rt_sigreturn() 439 p->p_pid, p->p_comm, error); in linux_rt_sigreturn() 561 p->p_pid, p->p_comm); in linux_rt_sendsig() 605 p->p_pid, p->p_comm); in linux_rt_sendsig()
|
/freebsd/sys/amd64/ia32/ |
H A D | ia32_signal.c | 415 printf("process %ld has trashed its stack\n", (long)p->p_pid); in ia32_osendsig() 528 printf("process %ld has trashed its stack\n", (long)p->p_pid); in freebsd4_ia32_sendsig() 662 printf("process %ld has trashed its stack\n", (long)p->p_pid); in ia32_sendsig() 771 td->td_proc->p_pid, td->td_name, eflags); in freebsd4_freebsd32_sigreturn() 783 td->td_proc->p_pid, td->td_name, cs); in freebsd4_freebsd32_sigreturn() 840 td->td_proc->p_pid, td->td_name, eflags); in freebsd32_sigreturn() 852 td->td_proc->p_pid, td->td_name, cs); in freebsd32_sigreturn() 867 td->td_proc->p_pid, td->td_name, xfpustate_len); in freebsd32_sigreturn() 877 td->td_proc->p_pid, td->td_name); in freebsd32_sigreturn() 889 td->td_proc->p_pid, td->td_name, ret); in freebsd32_sigreturn()
|
/freebsd/sys/security/mac_veriexec/ |
H A D | veriexec_fingerprint.c | 111 ppid = (parent != NULL) ? parent->p_pid : 0; in identify_error() 113 parent->p_pptr->p_pid : 0; in identify_error() 119 imgp->attr->va_gen, td->td_ucred->cr_ruid, imgp->proc->p_pid, in identify_error()
|