Lines Matching +full:field +full:- +full:even +full:- +full:active

1 /* SPDX-License-Identifier: GPL-2.0 */
19 *utime = t->utime; in task_cputime()
20 *stime = t->stime; in task_cputime()
26 return t->gtime; in task_gtime()
35 *utimescaled = t->utimescaled; in task_cputime_scaled()
36 *stimescaled = t->stimescaled; in task_cputime_scaled()
59 * The following are functions that support scheduler-internal time accounting.
65 * get_running_cputimer - return &tsk->signal->cputimer if cputimers are active
73 struct thread_group_cputimer *cputimer = &tsk->signal->cputimer; in get_running_cputimer()
76 * Check whether posix CPU timers are active. If not the thread in get_running_cputimer()
77 * group accounting is not active either. Lockless check. in get_running_cputimer()
79 if (!READ_ONCE(tsk->signal->posix_cputimers.timers_active)) in get_running_cputimer()
83 * After we flush the task's sum_exec_runtime to sig->sum_sched_runtime in get_running_cputimer()
85 * cputime consumed by that task, even though the task can still be in get_running_cputimer()
96 if (unlikely(!tsk->sighand)) in get_running_cputimer()
110 * account_group_user_time - Maintain utime for a thread group.
113 * @cputime: Time value by which to increment the utime field of the
117 * running CPU and update the utime field there.
127 atomic64_add(cputime, &cputimer->cputime_atomic.utime); in account_group_user_time()
131 * account_group_system_time - Maintain stime for a thread group.
134 * @cputime: Time value by which to increment the stime field of the
138 * running CPU and update the stime field there.
148 atomic64_add(cputime, &cputimer->cputime_atomic.stime); in account_group_system_time()
152 * account_group_exec_runtime - Maintain exec runtime for a thread group.
155 * @ns: Time value by which to increment the sum_exec_runtime field
159 * running CPU and update the sum_exec_runtime field there.
169 atomic64_add(ns, &cputimer->cputime_atomic.sum_exec_runtime); in account_group_exec_runtime()
175 prev->utime = prev->stime = 0; in prev_cputime_init()
176 raw_spin_lock_init(&prev->lock); in prev_cputime_init()