Lines Matching refs:t
277 static inline u64 read_sum_exec_runtime(struct task_struct *t) in read_sum_exec_runtime() argument
279 return t->se.sum_exec_runtime; in read_sum_exec_runtime()
282 static u64 read_sum_exec_runtime(struct task_struct *t) in read_sum_exec_runtime() argument
288 rq = task_rq_lock(t, &rf); in read_sum_exec_runtime()
289 ns = t->se.sum_exec_runtime; in read_sum_exec_runtime()
290 task_rq_unlock(rq, t, &rf); in read_sum_exec_runtime()
304 struct task_struct *t; in thread_group_cputime() local
329 for_each_thread(tsk, t) { in thread_group_cputime()
330 task_cputime(t, &utime, &stime); in thread_group_cputime()
333 times->sum_exec_runtime += read_sum_exec_runtime(t); in thread_group_cputime()
830 void vtime_init_idle(struct task_struct *t, int cpu) in vtime_init_idle() argument
832 struct vtime *vtime = &t->vtime; in vtime_init_idle()
843 u64 task_gtime(struct task_struct *t) in task_gtime() argument
845 struct vtime *vtime = &t->vtime; in task_gtime()
850 return t->gtime; in task_gtime()
855 gtime = t->gtime; in task_gtime()
856 if (vtime->state == VTIME_SYS && t->flags & PF_VCPU) in task_gtime()
869 void task_cputime(struct task_struct *t, u64 *utime, u64 *stime) in task_cputime() argument
871 struct vtime *vtime = &t->vtime; in task_cputime()
876 *utime = t->utime; in task_cputime()
877 *stime = t->stime; in task_cputime()
884 *utime = t->utime; in task_cputime()
885 *stime = t->stime; in task_cputime()
888 if (vtime->state == VTIME_INACTIVE || is_idle_task(t)) in task_cputime()
897 if (vtime->state == VTIME_USER || t->flags & PF_VCPU) in task_cputime()