Lines Matching refs:samples
214 static inline void store_samples(u64 *samples, u64 stime, u64 utime, u64 rtime) in store_samples() argument
216 samples[CPUCLOCK_PROF] = stime + utime; in store_samples()
217 samples[CPUCLOCK_VIRT] = utime; in store_samples()
218 samples[CPUCLOCK_SCHED] = rtime; in store_samples()
221 static void task_sample_cputime(struct task_struct *p, u64 *samples) in task_sample_cputime() argument
226 store_samples(samples, stime, utime, p->se.sum_exec_runtime); in task_sample_cputime()
230 u64 *samples) in proc_sample_cputime_atomic() argument
237 store_samples(samples, stime, utime, rtime); in proc_sample_cputime_atomic()
274 void thread_group_sample_cputime(struct task_struct *tsk, u64 *samples) in thread_group_sample_cputime() argument
281 proc_sample_cputime_atomic(&cputimer->cputime_atomic, samples); in thread_group_sample_cputime()
296 static void thread_group_start_cputime(struct task_struct *tsk, u64 *samples) in thread_group_start_cputime() argument
324 proc_sample_cputime_atomic(&cputimer->cputime_atomic, samples); in thread_group_start_cputime()
327 static void __thread_group_cputime(struct task_struct *tsk, u64 *samples) in __thread_group_cputime() argument
332 store_samples(samples, ct.stime, ct.utime, ct.sum_exec_runtime); in __thread_group_cputime()
345 u64 samples[CPUCLOCK_MAX]; in cpu_clock_sample_group() local
349 thread_group_start_cputime(p, samples); in cpu_clock_sample_group()
351 __thread_group_cputime(p, samples); in cpu_clock_sample_group()
353 proc_sample_cputime_atomic(&cputimer->cputime_atomic, samples); in cpu_clock_sample_group()
356 return samples[clkid]; in cpu_clock_sample_group()
859 static void collect_posix_cputimers(struct posix_cputimers *pct, u64 *samples, in collect_posix_cputimers() argument
867 samples[i]); in collect_posix_cputimers()
902 u64 samples[CPUCLOCK_MAX]; in check_thread_timers() local
911 task_sample_cputime(tsk, samples); in check_thread_timers()
912 collect_posix_cputimers(pct, samples, firing); in check_thread_timers()
980 u64 samples[CPUCLOCK_MAX]; in check_process_timers() local
1001 proc_sample_cputime_atomic(&sig->cputimer.cputime_atomic, samples); in check_process_timers()
1002 collect_posix_cputimers(pct, samples, firing); in check_process_timers()
1009 samples[CPUCLOCK_PROF], SIGPROF); in check_process_timers()
1012 samples[CPUCLOCK_VIRT], SIGVTALRM); in check_process_timers()
1018 u64 ptime = samples[CPUCLOCK_PROF]; in check_process_timers()
1095 task_cputimers_expired(const u64 *samples, struct posix_cputimers *pct) in task_cputimers_expired() argument
1100 if (samples[i] >= pct->bases[i].nextevt) in task_cputimers_expired()
1122 u64 samples[CPUCLOCK_MAX]; in fastpath_timer_check() local
1124 task_sample_cputime(tsk, samples); in fastpath_timer_check()
1125 if (task_cputimers_expired(samples, pct)) in fastpath_timer_check()
1147 u64 samples[CPUCLOCK_MAX]; in fastpath_timer_check() local
1150 samples); in fastpath_timer_check()
1152 if (task_cputimers_expired(samples, pct)) in fastpath_timer_check()