| /freebsd/sys/kern/ |
| H A D | sys_process.c | 700 p->p_pid, pve->pve_entry, pve->pve_start); in sys_ptrace() 1034 pid = p->p_pid; in kern_ptrace() 1183 CTR1(KTR_PTRACE, "PT_TRACE_ME: pid %d", p->p_pid); in kern_ptrace() 1199 CTR2(KTR_PTRACE, "PT_ATTACH: pid %d, oppid %d", p->p_pid, in kern_ptrace() 1223 p->p_pid); in kern_ptrace() 1229 p->p_pid); in kern_ptrace() 1235 p->p_pid); in kern_ptrace() 1242 p->p_pid); in kern_ptrace() 1247 CTR3(KTR_PTRACE, "PT_FOLLOW_FORK: pid %d %s -> %s", p->p_pid, in kern_ptrace() 1257 CTR3(KTR_PTRACE, "PT_LWP_EVENTS: pid %d %s -> %s", p->p_pid, in kern_ptrace() [all...] |
| H A D | kern_fork.c | 439 p2->p_pid = fork_findpid(fr->fr_flags); in do_fork() 440 AUDIT_ARG_PID(p2->p_pid); in do_fork() 441 TSFORK(p2->p_pid, p1->p_pid); in do_fork() 449 sx_xlock(PIDHASHLOCK(p2->p_pid)); in do_fork() 450 LIST_INSERT_HEAD(PIDHASH(p2->p_pid), p2, p_hash); in do_fork() 451 sx_xunlock(PIDHASHLOCK(p2->p_pid)); in do_fork() 697 p2->p_oppid = pptr->p_pid; in do_fork() 702 p2->p_reapsubtree = p2->p_pid; in do_fork() 703 proc_id_set_cond(PROC_ID_REAP, p2->p_pid); in do_fork() [all...] |
| H A D | kern_exit.c | 116 return (child->p_pptr->p_pid == child->p_oppid ? in proc_realparent() 276 TSPROCEXIT(td->td_proc->p_pid); in exit1() 502 WITNESS_WARN(WARN_PANIC, NULL, "process (pid %d) exiting", p->p_pid); in exit1() 626 KASSERT(q->p_oppid == p->p_pid, in exit1() 629 q->p_oppid = q->p_reaper->p_pid; in exit1() 638 CTR2(KTR_PTRACE, "exit: pid %d, clearing orphan %d", p->p_pid, in exit1() 639 q->p_pid); in exit1() 829 p->p_comm, p->p_pid, td->td_ucred->cr_uid); in kern_abort2() 1017 if (p->p_oppid != p->p_pptr->p_pid) { in proc_reap() 1023 "wait: traced child %d moved back to parent %d", p->p_pid, in proc_reap() [all...] |
| H A D | kern_synch.c | 182 td->td_tid, td->td_proc->p_pid, td->td_name, wmesg, ident); in _sleep() 259 td->td_tid, td->td_proc->p_pid, td->td_name, wmesg, ident); in msleep_spin_sbt() 519 td->td_tid, td_get_sched(td), td->td_proc->p_pid, td->td_name); in mi_switch() 528 td->td_tid, td_get_sched(td), td->td_proc->p_pid, td->td_name); in mi_switch() 550 ("setrunnable: pid %d is a zombie", td->td_proc->p_pid)); in setrunnable()
|
| H A D | kern_procctl.c | 189 rs->rs_reaper = reap->p_pid; in reap_status() 196 rs->rs_pid = first_p->p_pid; in reap_status() 256 pip->pi_pid = p2->p_pid; in reap_getpids() 302 w->rk->rk_fpid = w->target->p_pid; in reap_kill_proc_locked() 397 rk->rk_fpid = p2->p_pid; in reap_kill_children() 461 if (alloc_unr_specific(pids, p2->p_pid) != p2->p_pid && in reap_kill_subtree_once() 582 ksi.ksi_pid = td->td_proc->p_pid; in reap_kill() 653 ("%d traced but tracing disabled", p->p_pid)); in trapcap_ctl() 656 *status = p->p_pptr->p_pid; in trapcap_ctl() [all...] |
| H A D | kern_thr.c | 429 ksi.ksi_pid = p->p_pid; in sys_thr_kill() 449 ttd = tdfind((lwpid_t)uap->id, p->p_pid); in sys_thr_kill() 477 ksi.ksi_pid = td->td_proc->p_pid; in sys_thr_kill2() 595 ttd = tdfind((lwpid_t)uap->id, p->p_pid); in sys_thr_wake() 626 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 | 86 CTR3(KTR_SYSC, "userret: thread %p (pid %d, %s)", td, p->p_pid, in userret() 175 __func__, td, p->p_pid, td->td_name, curvnet, in userret() 326 td->td_proc == NULL ? -1 : td->td_proc->p_pid, in ast_handler()
|
| /freebsd/sys/dev/filemon/ |
| H A D | filemon_wrapper.c | 106 curproc->p_pid, filemon->fname1); in filemon_wrapper_chdir() 123 p->p_pid, in filemon_event_process_exec() 178 curproc->p_pid, filemon->fname1); in _filemon_wrapper_openat() 196 curproc->p_pid, atpath, in _filemon_wrapper_openat() 202 curproc->p_pid, atpath, in _filemon_wrapper_openat() 251 curproc->p_pid, filemon->fname1, filemon->fname2); in filemon_wrapper_rename() 277 curproc->p_pid, filemon->fname1, filemon->fname2); in _filemon_wrapper_link() 323 p->p_pid, p->p_xexit, p->p_xsig); in filemon_event_process_exit() 355 curproc->p_pid, filemon->fname1); in filemon_wrapper_unlink() 372 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/contrib/llvm-project/lldb/source/Host/netbsd/ |
| H A D | HostNetBSD.cpp | 203 if (proc_kinfo[i].p_pid < 1) in FindProcessesImpl() 209 if (proc_kinfo[i].p_pid == our_pid || // Skip this process in FindProcessesImpl() 210 proc_kinfo[i].p_pid == 0 || // Skip kernel (kernel pid is 0) in FindProcessesImpl() 222 if ((::pid_t)process_infos[pi].GetProcessID() == proc_kinfo[i].p_pid) { in FindProcessesImpl() 232 process_info.SetProcessID(proc_kinfo[i].p_pid); in FindProcessesImpl()
|
| /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() 196 linux_msg(td, "copyout p_pid failed!"); in linux_clone_proc() 231 td->td_retval[0] = p2->p_pid; in linux_clone_proc()
|
| /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() 347 nlp->nl_process_id = curproc->p_pid; in nl_attach() 376 NL_LOG(LOG_DEBUG3, "socket %p, PID %d", so, curproc->p_pid); in nl_bind() 449 NL_LOG(LOG_DEBUG3, "socket %p, PID %d", so, curproc->p_pid); in nl_connect() 457 int error = nl_autobind_port(nlp, td->td_proc->p_pid); in nl_connect() 489 NL_LOG(LOG_DEBUG2, "detaching socket %p, PID %d", so, curproc->p_pid); in nl_close() 535 NL_LOG(LOG_DEBUG3, "socket %p, PID %d", so, curproc->p_pid); in nl_disconnect() [all …]
|
| /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/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() 445 db_printf("Process %d (%s) at %p:\n", p->p_pid, p->p_comm, p); in DB_SHOW_COMMAND() 469 db_printf(" parent: pid %d at %p\n", p->p_pptr->p_pid, in DB_SHOW_COMMAND() 472 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/contrib/llvm-project/lldb/source/Host/openbsd/ |
| H A D | Host.cpp | 159 kinfo.p_pid == our_pid || // Skip this process in FindProcessesImpl() 160 kinfo.p_pid == 0 || // Skip kernel (kernel pid is zero) in FindProcessesImpl() 167 process_info.SetProcessID(kinfo.p_pid); in FindProcessesImpl()
|
| /freebsd/sys/amd64/ia32/ |
| H A D | ia32_signal.c | 426 printf("process %ld has trashed its stack\n", (long)p->p_pid); in ia32_osendsig() 539 printf("process %ld has trashed its stack\n", (long)p->p_pid); in freebsd4_ia32_sendsig() 673 printf("process %ld has trashed its stack\n", (long)p->p_pid); in ia32_sendsig() 784 td->td_proc->p_pid, td->td_name, eflags); in freebsd4_freebsd32_sigreturn() 791 td->td_proc->p_pid, td->td_name, ucp->uc_mcontext.mc_cs, in freebsd4_freebsd32_sigreturn() 803 td->td_proc->p_pid, td->td_name, cs); in freebsd4_freebsd32_sigreturn() 860 td->td_proc->p_pid, td->td_name, eflags); in freebsd32_sigreturn() 867 td->td_proc->p_pid, td->td_name, ucp->uc_mcontext.mc_cs, in freebsd32_sigreturn() 880 td->td_proc->p_pid, td->td_name, cs); in freebsd32_sigreturn() 895 td->td_proc->p_pid, td->td_name, xfpustate_len); in freebsd32_sigreturn() [all …]
|
| /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/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/dev/hwpmc/ |
| H A D | hwpmc_mod.c | 912 __LINE__, pm, pp->pp_proc->p_pid)); in pmc_link_target_process() 954 "ri=%d", __LINE__, pp->pp_proc->p_pid, ri)); in pmc_link_target_process() 1098 PMC_TO_ROWINDEX(pm), p, p->p_pid, p->p_comm); in pmc_attach_one_process() 1147 pmclog_process_pmcattach(pm, p->p_pid, fullpath); in pmc_attach_one_process() 1174 PMC_TO_ROWINDEX(pm), p, p->p_pid, p->p_comm); in pmc_attach_process() 1236 pm, ri, p, p->p_pid, p->p_comm, flags); in pmc_detach_one_process() 1248 pmclog_process_pmcdetach(pm, p->p_pid); in pmc_detach_one_process() 1285 PMC_TO_ROWINDEX(pm), p, p->p_pid, p->p_comm); in pmc_detach_process() 1349 pmclog_process_procexec(po, PMC_ID_INVALID, p->p_pid, in pmc_process_exec() 1396 pmclog_process_procexec(po, pm->pm_id, p->p_pid, in pmc_process_exec() [all …]
|
| /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/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()
|