Home
last modified time | relevance | path

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

1234

/linux-6.15/sound/core/
H A Dhrtimer.c41 stime->in_callback = true; in snd_hrtimer_callback()
58 stime->in_callback = false; in snd_hrtimer_callback()
64 struct snd_hrtimer *stime; in snd_hrtimer_open() local
66 stime = kzalloc(sizeof(*stime), GFP_KERNEL); in snd_hrtimer_open()
67 if (!stime) in snd_hrtimer_open()
69 stime->timer = t; in snd_hrtimer_open()
71 t->private_data = stime; in snd_hrtimer_open()
79 if (stime) { in snd_hrtimer_close()
86 kfree(stime); in snd_hrtimer_close()
96 if (stime->in_callback) in snd_hrtimer_start()
[all …]
/linux-6.15/kernel/sched/
H A Dcputime.c336 times->stime = sig->stime; in thread_group_cputime()
342 times->stime += stime; in thread_group_cputime()
451 *st = p->stime; in task_cputime_adjusted()
564 stime = curr->stime; in cputime_adjust()
582 stime = mul_u64_u64_div_u64(stime, rtime, stime + utime); in cputime_adjust()
600 if (stime < prev->stime) in cputime_adjust()
601 stime = prev->stime; in cputime_adjust()
613 prev->stime = stime; in cputime_adjust()
850 *stime = t->stime; in task_cputime()
859 *stime = t->stime; in task_cputime()
[all …]
H A Dcpuacct.c274 cputime.stime += cpustat[CPUTIME_SYSTEM]; in cpuacct_stats_show()
275 cputime.stime += cpustat[CPUTIME_IRQ]; in cpuacct_stats_show()
276 cputime.stime += cpustat[CPUTIME_SOFTIRQ]; in cpuacct_stats_show()
/linux-6.15/arch/powerpc/kernel/
H A Dtime.c194 stime_scaled = stime; 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()
230 return stime; in vtime_delta()
239 *stime -= min(*stime, steal_time); in vtime_delta_kernel()
251 acct->gtime += stime; in vtime_account_kernel()
256 acct->stime += stime; in vtime_account_kernel()
279 *field += stime; in vtime_account_irq_field()
337 if (acct->stime) in vtime_flush()
[all …]
/linux-6.15/kernel/
H A Dtsacct.c25 u64 utime, stime, utimescaled, stimescaled; in bacct_add_tsk() local
68 task_cputime(tsk, &utime, &stime); in bacct_add_tsk()
70 stats->ac_stime = div_u64(stime, NSEC_PER_USEC); in bacct_add_tsk()
125 u64 utime, u64 stime) in __acct_update_integrals() argument
132 time = stime + utime; in __acct_update_integrals()
154 u64 utime, stime; in acct_update_integrals() local
158 task_cputime(tsk, &utime, &stime); in acct_update_integrals()
159 __acct_update_integrals(tsk, utime, stime); in acct_update_integrals()
169 __acct_update_integrals(tsk, tsk->utime, tsk->stime); in acct_account_cputime()
H A Ddelayacct.c136 u64 utime, stime, stimescaled, utimescaled; in delayacct_add_tsk() local
141 task_cputime(tsk, &utime, &stime); in delayacct_add_tsk()
143 tmp += utime + stime; in delayacct_add_tsk()
H A Dacct.c589 u64 utime, stime; in acct_collect() local
618 task_cputime(current, &utime, &stime); in acct_collect()
620 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-6.15/include/linux/sched/
H A Dcputime.h13 u64 *utime, u64 *stime);
17 u64 *utime, u64 *stime) in task_cputime() argument
20 *stime = t->stime; in task_cputime()
148 atomic64_add(cputime, &cputimer->cputime_atomic.stime); in account_group_system_time()
175 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
/linux-6.15/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-6.15/kernel/cgroup/
H A Drstat.c401 dst_bstat->cputime.stime += src_bstat->cputime.stime; in cgroup_base_stat_add()
413 dst_bstat->cputime.stime -= src_bstat->cputime.stime; in cgroup_base_stat_sub()
507 rstatc->bstat.cputime.stime += delta_exec; in __cgroup_account_cputime_field()
548 cputime->stime += sys; in root_cgroup_cputime()
581 &bstat.cputime.utime, &bstat.cputime.stime); in cgroup_base_stat_cputime_show()
589 do_div(bstat.cputime.stime, NSEC_PER_USEC); in cgroup_base_stat_cputime_show()
598 bstat.cputime.stime, in cgroup_base_stat_cputime_show()
/linux-6.15/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()
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()
237 store_samples(samples, stime, utime, rtime); in proc_sample_cputime_atomic()
[all …]
/linux-6.15/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_benchmark.c34 ktime_t stime, etime; in amdgpu_benchmark_do_move() local
38 stime = ktime_get(); in amdgpu_benchmark_do_move()
53 *time_ms = ktime_ms_delta(etime, stime); in amdgpu_benchmark_do_move()
H A Damdgpu_mode.h682 int *hpos, ktime_t *stime, ktime_t *etime,
698 int *hpos, ktime_t *stime, ktime_t *etime,
/linux-6.15/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-6.15/drivers/gpu/drm/nouveau/
H A Dnouveau_display.c85 ktime_t *stime, ktime_t *etime) in nouveau_display_scanoutpos_head() argument
110 if (stime) *stime = ns_to_ktime(args.time[0]); in nouveau_display_scanoutpos_head()
119 ktime_t *stime, ktime_t *etime, in nouveau_display_scanoutpos() argument
123 stime, etime); in nouveau_display_scanoutpos()
H A Dnouveau_display.h56 ktime_t *stime, ktime_t *etime,
/linux-6.15/tools/testing/selftests/bpf/
H A Dbench.h48 unsigned int stime; member
/linux-6.15/drivers/gpu/drm/i915/display/
H A Dintel_vblank.c327 ktime_t *stime, ktime_t *etime, in i915_get_crtc_scanoutpos() argument
364 if (stime) in i915_get_crtc_scanoutpos()
365 *stime = ktime_get(); in i915_get_crtc_scanoutpos()
/linux-6.15/fs/proc/
H A Darray.c481 u64 cutime, cstime, cgtime, utime, stime, gtime; in do_task_stat() local
572 thread_group_cputime_adjusted(task, &utime, &stime); in do_task_stat()
574 task_cputime_adjusted(task, &utime, &stime); in do_task_stat()
605 seq_put_decimal_ull(m, " ", nsec_to_clock_t(stime)); in do_task_stat()
/linux-6.15/include/drm/
H A Ddrm_vblank.h300 ktime_t *stime,
/linux-6.15/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()

1234