Home
last modified time | relevance | path

Searched refs:p_flag (Results 1 – 25 of 83) sorted by relevance

1234

/freebsd/sys/ddb/
H A Ddb_ps.c218 if (p->p_flag & P_TRACED) in db_ps_proc()
220 if (p->p_flag & P_WEXIT && p->p_state != PRS_ZOMBIE) in db_ps_proc()
222 if (p->p_flag & P_PPWAIT) in db_ps_proc()
224 if (p->p_flag & P_SYSTEM || p->p_lock > 0) in db_ps_proc()
230 if (p->p_flag & P_CONTROLT) in db_ps_proc()
235 if (p->p_flag & P_HADTHREADS) { in db_ps_proc()
241 if (p->p_flag & P_SYSTEM) in db_ps_proc()
244 if (p->p_flag & P_SYSTEM) in db_ps_proc()
253 dumpthread(p, td, p->p_flag & P_HADTHREADS); in db_ps_proc()
327 if (p->p_flag & P_SYSTEM) in dumpthread()
[all …]
/freebsd/sys/kern/
H A Dkern_thread.c97 _Static_assert(offsetof(struct proc, p_flag) == 0xb8,
117 _Static_assert(offsetof(struct proc, p_flag) == 0x6c,
971 if (p->p_flag & P_HADTHREADS) { in thread_exit()
1250 while ((p->p_flag & P_STOPPED_SINGLE) != 0) { in thread_single()
1253 msleep(&p->p_flag, &p->p_mtx, PCATCH, "thrsgl", 0); in thread_single()
1255 if ((p->p_flag & (P_STOPPED_SIG | P_TRACED)) != 0 || in thread_single()
1258 } else if ((p->p_flag & P_HADTHREADS) == 0) in thread_single()
1264 p->p_flag |= P_SINGLE_EXIT; in thread_single()
1265 p->p_flag &= ~P_SINGLE_BOUNDARY; in thread_single()
1267 p->p_flag &= ~P_SINGLE_EXIT; in thread_single()
[all …]
H A Dkern_exit.c227 if ((p->p_flag & P_ASYNC_EXIT) != 0) in ast_async_exit()
251 p->p_flag |= P_ASYNC_EXIT; in kern_exit()
256 if ((p->p_flag & P_ASYNC_EXIT) != 0) { in kern_exit()
314 while (p->p_flag & P_HADTHREADS) { in exit1()
358 p->p_flag &= ~P_STOPPED_SIG; in exit1()
362 p->p_flag |= P_WEXIT; in exit1()
524 if ((p->p_flag & (P_TRACED | P_PPWAIT | P_PPTRACE)) != 0) { in exit1()
526 p->p_flag &= ~(P_TRACED | P_PPWAIT | P_PPTRACE); in exit1()
550 if ((q->p_flag & P_TRACED) == 0) { in exit1()
601 q->p_flag &= ~P_TRACED; in exit1()
[all …]
H A Dkern_fork.c383 if ((p1->p_flag & (P_HADTHREADS | P_SYSTEM)) == P_HADTHREADS && in fork_norfproc()
421 if ((p1->p_flag & (P_HADTHREADS | P_SYSTEM)) == P_HADTHREADS && in fork_norfproc()
559 p2->p_flag = P_INMEM; in do_fork()
577 if (p1->p_flag & P_PROFIL) in do_fork()
603 p2->p_flag |= P_SYSTEM | P_KPROC; in do_fork()
614 p2->p_flag |= P_PROTECTED; in do_fork()
651 if ((p1->p_leader->p_flag & P_WEXIT) != 0) { in do_fork()
685 p2->p_flag |= p1->p_flag & P_SUGID; in do_fork()
688 if (p1->p_flag & P_CONTROLT) { in do_fork()
691 p2->p_flag |= P_CONTROLT; in do_fork()
[all …]
H A Dkern_clock.c382 if ((td->td_proc->p_flag & P_PROFIL) == 0) in ast_oweupc()
641 if (p->p_flag & P_STOPPROF) in startprofclock()
643 if ((p->p_flag & P_PROFIL) == 0) { in startprofclock()
644 p->p_flag |= P_PROFIL; in startprofclock()
660 if (p->p_flag & P_PROFIL) { in stopprofclock()
663 p->p_flag |= P_STOPPROF; in stopprofclock()
668 if ((p->p_flag & P_PROFIL) == 0) in stopprofclock()
670 p->p_flag &= ~P_PROFIL; in stopprofclock()
781 if (td->td_proc->p_flag & P_PROFIL) in profclock()
H A Dkern_sig.c284 if ((p->p_flag & P_PPWAIT) == 0 && in ast_sig()
1810 if (p->p_pid <= 1 || (p->p_flag & P_SYSTEM) != 0 || in killpg1_sendsig()
1824 if (p->p_pid <= 1 || (p->p_flag & P_SYSTEM) != 0 || in kill_processes_prison_cb()
2098 (checkctty == 0 || p->p_flag & P_CONTROLT)) in pgsignal()
2151 if ((p->p_flag & P_TRACED) == 0 && SIGISMEMBER(ps->ps_sigcatch, sig) && in trapsignal()
2374 (p->p_flag & P_TRACED) != 0 && in tdsendsignal()
2396 if (p->p_flag & P_CONTINUED) { in tdsendsignal()
2397 p->p_flag &= ~P_CONTINUED; in tdsendsignal()
2413 !((prop & SIGPROP_CONT) && (p->p_flag & P_STOPPED_SIG))) in tdsendsignal()
2425 KASSERT(!(p->p_flag & P_WEXIT), in tdsendsignal()
[all …]
H A Dsubr_prof.c149 if (!(p->p_flag & P_PROFIL)) { in addupc_task()
177 if (p->p_flag & P_STOPPROF) { in addupc_task()
179 p->p_flag &= ~P_STOPPROF; in addupc_task()
H A Dkern_exec.c309 if ((p->p_flag & P_HADTHREADS) != 0) { in pre_execve()
328 if ((p->p_flag & P_HADTHREADS) != 0) { in post_execve()
398 MPASS(p != td->td_proc || (p->p_flag & P_INEXEC) == 0); in execve_block()
400 if (p != td->td_proc && (p->p_flag & P_INEXEC) != 0) { in execve_block()
401 p->p_flag |= P_INEXEC_WAIT; in execve_block()
432 if (p->p_execblock == 0 && (p->p_flag & P_INEXEC_WAIT) != 0) { in execve_unblock()
433 p->p_flag &= ~P_INEXEC_WAIT; in execve_unblock()
448 p->p_flag |= P_INEXEC_WAIT; in execve_block_pass()
506 KASSERT((p->p_flag & P_INEXEC) == 0, in do_execve()
509 p->p_flag |= P_INEXEC; in do_execve()
[all …]
H A Dsys_process.c950 p->p_flag |= P_TRACED; in proc_set_traced()
962 p->p_flag &= ~(P_STOPPED_TRACE | P_STOPPED_SIG | P_WAITED); in ptrace_unsuspend()
976 if ((p->p_flag & P_WEXIT) != 0) in proc_can_ptrace1()
996 if ((p->p_flag & P_TRACED) == 0) in proc_can_ptrace()
1004 if ((p->p_flag & P_STOPPED_TRACE) == 0 || in proc_can_ptrace()
1006 (p->p_flag & P_WAITED) == 0) in proc_can_ptrace()
1059 if ((pp->p_flag & P_TRACED) != 0) { in ptrace_report_child()
1064 if ((pp->p_flag & P_WEXIT) != 0) in ptrace_report_child()
1076 MPASS((p->p_flag & P_STOPPED_TRACE) != 0); in ptrace_sel_coredump_thread()
1187 if ((p->p_flag & P_SYSTEM) != 0) { in ptrace_action()
[all …]
H A Dsubr_trap.c88 KASSERT((p->p_flag & P_WEXIT) == 0, in userret()
103 if ((p->p_flag & P_PPWAIT) == 0 && in userret()
121 if (__predict_false(p->p_flag & P_PROFIL)) in userret()
H A Dkern_procctl.c60 if (p->p_flag & P_SYSTEM || p_cansched(td, p) != 0) in protect_setchild()
63 p->p_flag |= P_PROTECTED; in protect_setchild()
67 p->p_flag &= ~P_PROTECTED; in protect_setchild()
263 if ((p2->p_flag & P_STOPPED) != 0) in reap_getpids()
267 else if ((p2->p_flag & P_WEXIT) != 0) in reap_getpids()
616 if ((p->p_flag & P_TRACED) != 0 || p->p_traceflag != 0) in trace_ctl()
652 KASSERT((p->p_flag & P_TRACED) == 0, in trace_status()
655 } else if ((p->p_flag & P_TRACED) != 0) { in trace_status()
1216 if ((p->p_flag & P_WEXIT) != 0) in kern_procctl_single()
H A Dkern_ucoredump.c222 MPASS((p->p_flag & P_HADTHREADS) == 0 || p->p_singlethread == td); in coredump()
224 if (!do_coredump || (!sugid_coredump && (p->p_flag & P_SUGID) != 0) || in coredump()
H A Dsys_procdesc.c290 MPASS((p->p_flag & P_WEXIT) != 0); in procdesc_exit()
465 if ((p->p_flag & P_TRACED) == 0) { in procdesc_close()
532 else if ((atomic_load_int(&p->p_flag) & (P_STOPPED_SIG | in procdesc_kqops_event()
664 if ((p->p_flag & (P_SYSTEM | P_WEXIT)) != 0) { in pdopenpid1()
816 if ((p->p_flag & P_WEXIT) != 0) { in kern_pddupfd()
H A Dkern_kthread.c195 if ((p->p_flag & P_KPROC) == 0) { in kproc_suspend()
213 if ((p->p_flag & P_KPROC) == 0) { in kproc_resume()
318 p->p_flag |= P_HADTHREADS; in kthread_add1()
H A Dsubr_syscall.c68 traced = (p->p_flag & P_TRACED) != 0; in syscallenter()
254 if (__predict_false(p->p_flag & P_TRACED)) { in syscallret()
H A Dkern_idle.c86 p->p_flag |= P_IDLEPROC; in idle_setup()
H A Dtty_tty.c70 if (!(p->p_flag & P_CONTROLT)) in ctty_clone()
/freebsd/sys/fs/procfs/
H A Dprocfs.c98 if ((p->p_flag & P_SUGID) && pn->pn_type != pfstype_procdir) in procfs_attr()
134 return ((p->p_flag & P_SYSTEM) == 0); in procfs_notsystem()
145 return ((p->p_flag & P_SYSTEM) == 0 && p_candebug(td, p) == 0); in procfs_candebug()
H A Dprocfs_status.c96 if ((p->p_flag & P_CONTROLT) && (tp = sess->s_ttyp)) in procfs_doprocstatus()
181 if ((p->p_flag & P_SYSTEM) != 0) { in procfs_doproccmdline()
/freebsd/sys/i386/linux/
H A Dlinux_ptrace_machdep.c347 if ((p->p_flag & P_WEXIT) != 0) { in linux_ptrace()
356 if ((p->p_flag & P_SYSTEM) != 0) { in linux_ptrace()
362 if ((p->p_flag & P_TRACED) == 0) { in linux_ptrace()
374 if (!P_SHOULDSTOP(p) || (p->p_flag & P_WAITED) == 0) { in linux_ptrace()
/freebsd/sys/contrib/openzfs/lib/libspl/include/sys/
H A Ddklabel.h94 uint16_t p_flag; /* permission flag */ member
99 uint16_t p_flag; /* permission flags */ member
/freebsd/usr.bin/logins/
H A Dlogins.c69 static int p_flag; variable
263 if (p_flag) in select_users()
374 p_flag = 1; in main()
/freebsd/sys/vm/
H A Dvm_swapout_dummy.c
/freebsd/contrib/less/
H A Dcharset.c41 int *p_flag; member
331 if (p->p_flag != NULL) in icharset()
334 *(p->p_flag) = 1 + (GetConsoleOutputCP() != CP_UTF8); in icharset()
336 *(p->p_flag) = 1; in icharset()
/freebsd/contrib/llvm-project/lldb/source/Host/netbsd/
H A DHostNetBSD.cpp212 proc_kinfo[i].p_flag & P_TRACED || // Being debugged? in FindProcessesImpl()
213 proc_kinfo[i].p_flag & P_WEXIT) // Working on exiting in FindProcessesImpl()

1234