Home
last modified time | relevance | path

Searched refs:stime (Results 1 – 25 of 67) sorted by relevance

123

/linux/sound/core/
H A Dhrtimer.c33 struct snd_hrtimer *stime = container_of(hrt, struct snd_hrtimer, hrt); in snd_hrtimer_callback() local
34 struct snd_timer *t = stime->timer; in snd_hrtimer_callback()
42 stime->in_callback = true; in snd_hrtimer_callback()
51 snd_timer_interrupt(stime->timer, ticks); in snd_hrtimer_callback()
59 stime->in_callback = false; in snd_hrtimer_callback()
65 struct snd_hrtimer *stime; in snd_hrtimer_open() local
67 stime = kzalloc_obj(*stime); in snd_hrtimer_open()
68 if (!stime) in snd_hrtimer_open()
70 stime->timer = t; in snd_hrtimer_open()
71 hrtimer_setup(&stime->hrt, snd_hrtimer_callback, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in snd_hrtimer_open()
[all …]
/linux/kernel/sched/
H A Dcputime.c174 p->stime += cputime; in account_system_index_time()
331 u64 utime, stime; in thread_group_cputime() local
347 times->stime = sig->stime; in thread_group_cputime()
351 task_cputime(t, &utime, &stime); in thread_group_cputime()
353 times->stime += stime; in thread_group_cputime()
452 *st = curr->stime; in cputime_adjust()
458 *st = p->stime; in task_cputime_adjusted()
469 *st = cputime.stime; in thread_group_cputime_adjusted()
553 u64 rtime, stime, utime; in cputime_adjust() local
568 if (prev->stime + prev->utime >= rtime) in cputime_adjust()
[all …]
H A Dcpuacct.c276 cputime.stime += cpustat[CPUTIME_SYSTEM]; in cpuacct_stats_show()
277 cputime.stime += cpustat[CPUTIME_IRQ]; in cpuacct_stats_show()
278 cputime.stime += cpustat[CPUTIME_SOFTIRQ]; in cpuacct_stats_show()
/linux/arch/powerpc/kernel/
H A Dtime.c171 unsigned long now, unsigned long stime) in vtime_delta_scaled() argument
194 stime_scaled = stime; in vtime_delta_scaled()
196 if (deltascaled != stime + utime) { in vtime_delta_scaled()
198 stime_scaled = deltascaled * stime / (stime + utime); in vtime_delta_scaled()
214 unsigned long now, stime; in vtime_delta() local
219 stime = now - acct->starttime; in vtime_delta()
222 *stime_scaled = vtime_delta_scaled(acct, now, stime); in vtime_delta()
230 return stime; in vtime_delta()
234 unsigned long *stime, unsigned long *stime_scaled) in vtime_delta_kernel() argument
238 *stime = vtime_delta(acct, stime_scaled, &steal_time); in vtime_delta_kernel()
[all …]
/linux/kernel/
H A Dtsacct.c25 u64 utime, stime, utimescaled, stimescaled; in bacct_add_tsk() local
67 task_cputime(tsk, &utime, &stime); in bacct_add_tsk()
69 stats->ac_stime = div_u64(stime, NSEC_PER_USEC); in bacct_add_tsk()
124 u64 utime, u64 stime) in __acct_update_integrals() argument
131 time = stime + utime; in __acct_update_integrals()
153 u64 utime, stime; in acct_update_integrals() local
157 task_cputime(tsk, &utime, &stime); in acct_update_integrals()
158 __acct_update_integrals(tsk, utime, stime); in acct_update_integrals()
168 __acct_update_integrals(tsk, tsk->utime, tsk->stime); in acct_account_cputime()
H A Ddelayacct.c151 u64 utime, stime, stimescaled, utimescaled; in delayacct_add_tsk() local
156 task_cputime(tsk, &utime, &stime); in delayacct_add_tsk()
158 tmp += utime + stime; in delayacct_add_tsk()
H A Dacct.c560 u64 utime, stime; in acct_collect() local
589 task_cputime(current, &utime, &stime); in acct_collect()
591 pacct->ac_stime += stime; in acct_collect()
H A Dtaskstats.c218 u64 delta, utime, stime; in fill_stats_for_tgid() local
254 task_cputime(tsk, &utime, &stime); in fill_stats_for_tgid()
256 stats->ac_stime += div_u64(stime, NSEC_PER_USEC); in fill_stats_for_tgid()
/linux/include/linux/sched/
H A Dcputime.h14 u64 *utime, u64 *stime);
18 u64 *utime, u64 *stime) in task_cputime() argument
21 *stime = t->stime; in task_cputime()
149 atomic64_add(cputime, &cputimer->cputime_atomic.stime); in account_group_system_time()
176 prev->utime = prev->stime = 0; in prev_cputime_init()
H A Dtypes.h18 u64 stime; member
H A Dsignal.h50 atomic64_t stime; member
57 .stime = ATOMIC64_INIT(0), \
189 u64 utime, stime, cutime, cstime; member
202 * from jiffies_to_ns(utime + stime) if sched_clock uses something
/linux/tools/testing/selftests/bpf/benchs/
H A Dbench_local_storage_rcu_tasks_trace.c90 long stime; in kthread_pid_ticks() local
102 if (fscanf(f, "%*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %ld", &stime) != 1) { in kthread_pid_ticks()
107 return stime; in kthread_pid_ticks()
196 res->stime = ticks - ctx.prev_kthread_stime; in measure()
221 iter, res->stime / (double)res->gp_ct); in report_progress()
/linux/kernel/cgroup/
H A Drstat.c543 dst_bstat->cputime.stime += src_bstat->cputime.stime; in cgroup_base_stat_add()
555 dst_bstat->cputime.stime -= src_bstat->cputime.stime; in cgroup_base_stat_sub()
649 rstatbc->bstat.cputime.stime += delta_exec; in __cgroup_account_cputime_field()
690 cputime->stime += sys; in root_cgroup_cputime()
723 &bstat.cputime.utime, &bstat.cputime.stime); in cgroup_base_stat_cputime_show()
731 do_div(bstat.cputime.stime, NSEC_PER_USEC); in cgroup_base_stat_cputime_show()
740 bstat.cputime.stime, in cgroup_base_stat_cputime_show()
/linux/kernel/time/
H A Dposix-cpu-timers.c196 u64 utime, stime; in cpu_clock_sample() local
201 task_cputime(p, &utime, &stime); in cpu_clock_sample()
205 return utime + stime; in cpu_clock_sample()
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()
223 u64 stime, utime; in task_sample_cputime() local
225 task_cputime(p, &utime, &stime); in task_sample_cputime()
226 store_samples(samples, stime, utime, p->se.sum_exec_runtime); in task_sample_cputime()
232 u64 stime, utime, rtime; in proc_sample_cputime_atomic() local
235 stime = atomic64_read(&at->stime); in proc_sample_cputime_atomic()
[all …]
/linux/drivers/ptp/
H A Dptp_netc.c102 u64 stime; /* start time, ns */ member
253 u64 stime = pp->stime; in netc_timer_set_perout_alarm() local
256 if (stime < min_time) { in netc_timer_set_perout_alarm()
257 delta = min_time - stime; in netc_timer_set_perout_alarm()
258 stime += roundup_u64(delta, period); in netc_timer_set_perout_alarm()
261 alarm = roundup_u64(stime - period, integral_period); in netc_timer_set_perout_alarm()
444 struct timespec64 period, stime; in net_timer_enable_perout() local
478 stime.tv_sec = rq->perout.start.sec; in net_timer_enable_perout()
479 stime.tv_nsec = rq->perout.start.nsec; in net_timer_enable_perout()
480 pp->stime = timespec64_to_ns(&stime); in net_timer_enable_perout()
/linux/tools/testing/selftests/sched_ext/
H A Drt_stall.c89 long utime, stime; in get_process_runtime() local
102 &utime, &stime); in get_process_runtime()
111 long total_time = utime + stime; in get_process_runtime()
/linux/io_uring/
H A Dsqpoll.c181 u64 utime, stime; in io_sq_cpu_usec() local
183 task_cputime_adjusted(tsk, &utime, &stime); in io_sq_cpu_usec()
184 do_div(stime, 1000); in io_sq_cpu_usec()
185 return stime; in io_sq_cpu_usec()
/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_display.c86 ktime_t *stime, ktime_t *etime) in nouveau_display_scanoutpos_head() argument
111 if (stime) *stime = ns_to_ktime(args.time[0]); in nouveau_display_scanoutpos_head()
120 ktime_t *stime, ktime_t *etime, in nouveau_display_scanoutpos() argument
124 stime, etime); in nouveau_display_scanoutpos()
H A Dnouveau_display.h59 ktime_t *stime, ktime_t *etime,
/linux/arch/powerpc/include/asm/
H A Daccounting.h13 unsigned long stime; member
H A Dcputime.h59 acct->stime += (tb - acct->starttime); in account_cpu_user_exit()
/linux/drivers/gpu/drm/imx/dc/
H A Ddc-crtc.c337 ktime_t *stime, ktime_t *etime, in dc_crtc_get_scanout_position() argument
347 if (stime) in dc_crtc_get_scanout_position()
348 *stime = ktime_get(); in dc_crtc_get_scanout_position()
/linux/fs/proc/
H A Darray.c480 u64 cutime, cstime, cgtime, utime, stime, gtime; in do_task_stat() local
566 thread_group_cputime_adjusted(task, &utime, &stime); in do_task_stat()
568 task_cputime_adjusted(task, &utime, &stime); in do_task_stat()
599 seq_put_decimal_ull(m, " ", nsec_to_clock_t(stime)); in do_task_stat()
/linux/tools/testing/selftests/bpf/
H A Dbench.h49 unsigned int stime;
48 unsigned int stime; global() member
/linux/drivers/gpu/drm/vc4/
H A Dvc4_crtc.c109 ktime_t *stime, ktime_t *etime, in vc4_crtc_get_scanout_position() argument
127 if (stime) in vc4_crtc_get_scanout_position()
128 *stime = ktime_get(); in vc4_crtc_get_scanout_position()
211 if (stime) in vc4_crtc_get_scanout_position()
212 *stime = vc4_crtc->t_vblank; in vc4_crtc_get_scanout_position()

123