Lines Matching refs:cputime

24 	cputime_t cputime = secs_to_cputime(rlim_new);  in update_rlimit_cpu()  local
27 set_process_cpu_timer(task, CPUCLOCK_PROF, &cputime, NULL); in update_rlimit_cpu()
119 static inline int task_cputime_zero(const struct task_cputime *cputime) in task_cputime_zero() argument
121 if (!cputime->utime && !cputime->stime && !cputime->sum_exec_runtime) in task_cputime_zero()
203 static inline void __update_gt_cputime(atomic64_t *cputime, u64 sum_cputime) in __update_gt_cputime() argument
207 curr_cputime = atomic64_read(cputime); in __update_gt_cputime()
209 if (atomic64_cmpxchg(cputime, curr_cputime, sum_cputime) != curr_cputime) in __update_gt_cputime()
266 struct task_cputime cputime; in cpu_clock_sample_group() local
272 thread_group_cputime(p, &cputime); in cpu_clock_sample_group()
273 *sample = cputime_to_expires(cputime.utime + cputime.stime); in cpu_clock_sample_group()
276 thread_group_cputime(p, &cputime); in cpu_clock_sample_group()
277 *sample = cputime_to_expires(cputime.utime); in cpu_clock_sample_group()
280 thread_group_cputime(p, &cputime); in cpu_clock_sample_group()
281 *sample = cputime.sum_exec_runtime; in cpu_clock_sample_group()
566 struct task_cputime cputime; in cpu_timer_sample_group() local
568 thread_group_cputimer(p, &cputime); in cpu_timer_sample_group()
573 *sample = cputime_to_expires(cputime.utime + cputime.stime); in cpu_timer_sample_group()
576 *sample = cputime_to_expires(cputime.utime); in cpu_timer_sample_group()
579 *sample = cputime.sum_exec_runtime; in cpu_timer_sample_group()
968 struct task_cputime cputime; in check_process_timers() local
987 thread_group_cputimer(tsk, &cputime); in check_process_timers()
988 utime = cputime_to_expires(cputime.utime); in check_process_timers()
989 ptime = utime + cputime_to_expires(cputime.stime); in check_process_timers()
990 sum_sched_runtime = cputime.sum_exec_runtime; in check_process_timers()