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()
34 return t->gtime; in task_gtime()
43 *utimescaled = t->utimescaled; in task_cputime_scaled()
44 *stimescaled = t->stimescaled; in task_cputime_scaled()
67 * The following are functions that support scheduler-internal time accounting.
73 * get_running_cputimer - return &tsk->signal->cputimer if cputimers are active
81 struct thread_group_cputimer *cputimer = &tsk->signal->cputimer; in get_running_cputimer()
84 * Check whether posix CPU timers are active. If not the thread in get_running_cputimer()
85 * group accounting is not active either. Lockless check. in get_running_cputimer()
87 if (!READ_ONCE(tsk->signal->posix_cputimers.timers_active)) in get_running_cputimer()
91 * After we flush the task's sum_exec_runtime to sig->sum_sched_runtime in get_running_cputimer()
93 * cputime consumed by that task, even though the task can still be in get_running_cputimer()
104 if (unlikely(!tsk->sighand)) in get_running_cputimer()
118 * account_group_user_time - Maintain utime for a thread group.
121 * @cputime: Time value by which to increment the utime field of the
125 * running CPU and update the utime field there.
135 atomic64_add(cputime, &cputimer->cputime_atomic.utime); in account_group_user_time()
139 * account_group_system_time - Maintain stime for a thread group.
142 * @cputime: Time value by which to increment the stime field of the
146 * running CPU and update the stime field there.
156 atomic64_add(cputime, &cputimer->cputime_atomic.stime); in account_group_system_time()
160 * account_group_exec_runtime - Maintain exec runtime for a thread group.
163 * @ns: Time value by which to increment the sum_exec_runtime field
167 * running CPU and update the sum_exec_runtime field there.
177 atomic64_add(ns, &cputimer->cputime_atomic.sum_exec_runtime); in account_group_exec_runtime()
183 prev->utime = prev->stime = 0; in prev_cputime_init()
184 raw_spin_lock_init(&prev->lock); in prev_cputime_init()