Lines Matching +full:field +full:- +full:even +full:- +full:active
1 /* SPDX-License-Identifier: GPL-2.0 */
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()
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()
85 * Check whether posix CPU timers are active. If not the thread 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()
94 * cputime consumed by that task, even though the task can still be in get_running_cputimer()
105 if (unlikely(!tsk->sighand)) in get_running_cputimer()
119 * account_group_user_time - Maintain utime for a thread group.
122 * @cputime: Time value by which to increment the utime field of the
126 * running CPU and update the utime field there.
136 atomic64_add(cputime, &cputimer->cputime_atomic.utime); in account_group_user_time()
140 * account_group_system_time - Maintain stime for a thread group.
143 * @cputime: Time value by which to increment the stime field of the
147 * running CPU and update the stime field there.
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.
164 * @ns: Time value by which to increment the sum_exec_runtime field
168 * running CPU and update the sum_exec_runtime field there.
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()