Home
last modified time | relevance | path

Searched refs:samples (Results 1 – 3 of 3) sorted by relevance

/kernel/time/
Dposix-cpu-timers.c214 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()
[all …]
Ditimer.c58 u64 t, samples[CPUCLOCK_MAX]; in get_cpu_itimer() local
60 thread_group_sample_cputime(tsk, samples); in get_cpu_itimer()
61 t = samples[clock_id]; in get_cpu_itimer()
/kernel/bpf/
Dringbuf.c716 long samples, discarded_samples = 0, ret = 0; in BPF_CALL_4() local
730 for (samples = 0; samples < BPF_MAX_USER_RINGBUF_SAMPLES && ret == 0; samples++) { in BPF_CALL_4()
753 ret = samples - discarded_samples; in BPF_CALL_4()
764 else if (!(flags & BPF_RB_NO_WAKEUP) && samples > 0) in BPF_CALL_4()