Home
last modified time | relevance | path

Searched refs:jobctl (Results 1 – 9 of 9) sorted by relevance

/linux-6.6.21/kernel/cgroup/
Dfreezer.c142 } else if (!(current->jobctl & JOBCTL_TRAP_FREEZE)) { in cgroup_leave_frozen()
144 current->jobctl |= JOBCTL_TRAP_FREEZE; in cgroup_leave_frozen()
164 task->jobctl |= JOBCTL_TRAP_FREEZE; in cgroup_freeze_task()
167 task->jobctl &= ~JOBCTL_TRAP_FREEZE; in cgroup_freeze_task()
Dcgroup.c6608 child->jobctl |= JOBCTL_TRAP_FREEZE; in cgroup_post_fork()
/linux-6.6.21/kernel/
Dptrace.c149 child->jobctl |= JOBCTL_STOP_PENDING; in __ptrace_unlink()
158 if (!(child->jobctl & JOBCTL_STOP_SIGMASK)) in __ptrace_unlink()
159 child->jobctl |= SIGSTOP; in __ptrace_unlink()
168 if (child->jobctl & JOBCTL_STOP_PENDING || task_is_traced(child)) in __ptrace_unlink()
200 if (task->jobctl & JOBCTL_LISTENING) in ptrace_freeze_traced()
206 task->jobctl |= JOBCTL_PTRACE_FROZEN; in ptrace_freeze_traced()
224 task->jobctl &= ~JOBCTL_PTRACE_FROZEN; in ptrace_unfreeze_traced()
226 task->jobctl &= ~JOBCTL_TRACED; in ptrace_unfreeze_traced()
474 task->jobctl &= ~JOBCTL_STOPPED; in ptrace_attach()
494 wait_on_bit(&task->jobctl, JOBCTL_TRAPPING_BIT, TASK_KILLABLE); in ptrace_attach()
[all …]
Dfreezer.c182 if (p->jobctl & JOBCTL_TRACED) in __set_task_special()
185 else if (p->jobctl & JOBCTL_STOPPED) in __set_task_special()
Dsignal.c158 if ((t->jobctl & (JOBCTL_PENDING_MASK | JOBCTL_TRAP_FREEZE)) || in recalc_sigpending_tsk()
296 task->jobctl &= ~JOBCTL_STOP_SIGMASK; in task_set_jobctl_pending()
298 task->jobctl |= mask; in task_set_jobctl_pending()
316 if (unlikely(task->jobctl & JOBCTL_TRAPPING)) { in task_clear_jobctl_trapping()
317 task->jobctl &= ~JOBCTL_TRAPPING; in task_clear_jobctl_trapping()
319 wake_up_bit(&task->jobctl, JOBCTL_TRAPPING_BIT); in task_clear_jobctl_trapping()
345 task->jobctl &= ~mask; in task_clear_jobctl_pending()
347 if (!(task->jobctl & JOBCTL_PENDING_MASK)) in task_clear_jobctl_pending()
370 bool consume = task->jobctl & JOBCTL_STOP_CONSUME; in task_participate_group_stop()
372 WARN_ON_ONCE(!(task->jobctl & JOBCTL_STOP_PENDING)); in task_participate_group_stop()
[all …]
Dexit.c1229 if (task_is_traced(p) && !(p->jobctl & JOBCTL_LISTENING)) in task_stopped_code()
/linux-6.6.21/include/linux/sched/
Dsignal.h298 if (current->jobctl & JOBCTL_STOP_DEQUEUED) { in kernel_signal_stop()
299 current->jobctl |= JOBCTL_STOPPED; in kernel_signal_stop()
453 if (fatal && !(t->jobctl & JOBCTL_PTRACE_FROZEN)) { in signal_wake_up()
454 t->jobctl &= ~(JOBCTL_STOPPED | JOBCTL_TRACED); in signal_wake_up()
463 t->jobctl &= ~JOBCTL_TRACED; in ptrace_signal_wake_up()
/linux-6.6.21/include/linux/
Dsched.h133 #define task_is_traced(task) ((READ_ONCE(task->jobctl) & JOBCTL_TRACED) != 0)
134 #define task_is_stopped(task) ((READ_ONCE(task->jobctl) & JOBCTL_STOPPED) != 0)
135 #define task_is_stopped_or_traced(task) ((READ_ONCE(task->jobctl) & (JOBCTL_STOPPED | JOBCTL_TRACED…
885 unsigned long jobctl; member
Dptrace.h204 child->jobctl = 0; in ptrace_init_task()