Lines Matching +full:signal +full:- +full:group

1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/sched/signal.h>
28 *utime = t->utime; in task_cputime()
29 *stime = t->stime; in task_cputime()
35 return t->gtime; in task_gtime()
44 *utimescaled = t->utimescaled; in task_cputime_scaled()
45 *stimescaled = t->stimescaled; in task_cputime_scaled()
62 * Thread group CPU time accounting.
68 * The following are functions that support scheduler-internal time accounting.
74 * get_running_cputimer - return &tsk->signal->cputimer if cputimers are active
82 struct thread_group_cputimer *cputimer = &tsk->signal->cputimer; in get_running_cputimer()
86 * group accounting is not active either. Lockless check. in get_running_cputimer()
88 if (!READ_ONCE(tsk->signal->posix_cputimers.timers_active)) in get_running_cputimer()
92 * After we flush the task's sum_exec_runtime to sig->sum_sched_runtime in get_running_cputimer()
93 * in __exit_signal(), we won't account to the signal struct further in get_running_cputimer()
97 * In order to keep a consistent behaviour between thread group cputime in get_running_cputimer()
98 * and thread group cputimer accounting, lets also ignore the cputime in get_running_cputimer()
99 * elapsing after __exit_signal() in any thread group timer running. in get_running_cputimer()
105 if (unlikely(!tsk->sighand)) in get_running_cputimer()
119 * account_group_user_time - Maintain utime for a thread group.
125 * If thread group time is being maintained, get the structure for the
136 atomic64_add(cputime, &cputimer->cputime_atomic.utime); in account_group_user_time()
140 * account_group_system_time - Maintain stime for a thread group.
146 * If thread group time is being maintained, get the structure for the
157 atomic64_add(cputime, &cputimer->cputime_atomic.stime); in account_group_system_time()
161 * account_group_exec_runtime - Maintain exec runtime for a thread group.
167 * If thread group time is being maintained, get the structure for the
178 atomic64_add(ns, &cputimer->cputime_atomic.sum_exec_runtime); in account_group_exec_runtime()
184 prev->utime = prev->stime = 0; in prev_cputime_init()
185 raw_spin_lock_init(&prev->lock); in prev_cputime_init()