/kernel/linux/linux-5.10/sound/core/ |
H A D | hrtimer.c | 32 struct snd_hrtimer *stime = container_of(hrt, struct snd_hrtimer, hrt); in snd_hrtimer_callback() local 33 struct snd_timer *t = stime->timer; in snd_hrtimer_callback() 41 stime->in_callback = true; in snd_hrtimer_callback() 50 snd_timer_interrupt(stime->timer, ticks); in snd_hrtimer_callback() 58 stime->in_callback = false; in snd_hrtimer_callback() 66 struct snd_hrtimer *stime; in snd_hrtimer_open() local 68 stime = kzalloc(sizeof(*stime), GFP_KERNEL); in snd_hrtimer_open() 69 if (!stime) in snd_hrtimer_open() 71 hrtimer_init(&stime in snd_hrtimer_open() 80 struct snd_hrtimer *stime = t->private_data; snd_hrtimer_close() local 97 struct snd_hrtimer *stime = t->private_data; snd_hrtimer_start() local 108 struct snd_hrtimer *stime = t->private_data; snd_hrtimer_stop() local [all...] |
/kernel/linux/linux-6.6/sound/core/ |
H A D | hrtimer.c | 32 struct snd_hrtimer *stime = container_of(hrt, struct snd_hrtimer, hrt); in snd_hrtimer_callback() local 33 struct snd_timer *t = stime->timer; in snd_hrtimer_callback() 41 stime->in_callback = true; in snd_hrtimer_callback() 50 snd_timer_interrupt(stime->timer, ticks); in snd_hrtimer_callback() 58 stime->in_callback = false; in snd_hrtimer_callback() 66 struct snd_hrtimer *stime; in snd_hrtimer_open() local 68 stime = kzalloc(sizeof(*stime), GFP_KERNEL); in snd_hrtimer_open() 69 if (!stime) in snd_hrtimer_open() 71 hrtimer_init(&stime in snd_hrtimer_open() 80 struct snd_hrtimer *stime = t->private_data; snd_hrtimer_close() local 97 struct snd_hrtimer *stime = t->private_data; snd_hrtimer_start() local 108 struct snd_hrtimer *stime = t->private_data; snd_hrtimer_stop() local [all...] |
/kernel/linux/linux-5.10/kernel/sched/ |
H A D | cputime.c | 183 p->stime += cputime; in account_system_index_time() 311 u64 utime, stime; in thread_group_cputime() local 334 times->stime = sig->stime; in thread_group_cputime() 338 task_cputime(t, &utime, &stime); in thread_group_cputime() 340 times->stime += stime; in thread_group_cputime() 369 * p->stime and friends are only updated on system time and not on irq 394 * Also, p->stime needs to be updated for ksoftirqd. in irqtime_account_process_tick() 459 *st = curr->stime; in cputime_adjust() 560 u64 rtime, stime, utime; cputime_adjust() local 848 task_cputime(struct task_struct *t, u64 *utime, u64 *stime) task_cputime() argument [all...] |
/kernel/linux/linux-6.6/kernel/sched/ |
H A D | cputime.c | 187 p->stime += cputime; in account_system_index_time() 330 u64 utime, stime; in thread_group_cputime() local 353 times->stime = sig->stime; in thread_group_cputime() 357 task_cputime(t, &utime, &stime); in thread_group_cputime() 359 times->stime += stime; in thread_group_cputime() 388 * p->stime and friends are only updated on system time and not on irq 413 * Also, p->stime needs to be updated for ksoftirqd. in irqtime_account_process_tick() 475 *st = curr->stime; in cputime_adjust() 576 u64 rtime, stime, utime; cputime_adjust() local 865 task_cputime(struct task_struct *t, u64 *utime, u64 *stime) task_cputime() argument [all...] |
/kernel/linux/linux-6.6/arch/powerpc/kernel/ |
H A D | time.c | 171 unsigned long now, unsigned long stime) in vtime_delta_scaled() 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, unsigne in vtime_delta_kernel() 170 vtime_delta_scaled(struct cpu_accounting_data *acct, unsigned long now, unsigned long stime) vtime_delta_scaled() argument 233 vtime_delta_kernel(struct cpu_accounting_data *acct, unsigned long *stime, unsigned long *stime_scaled) vtime_delta_kernel() argument 246 unsigned long stime, stime_scaled; vtime_account_kernel() local 266 unsigned long stime, stime_scaled, steal_time; vtime_account_idle() local 276 unsigned long stime, stime_scaled; vtime_account_irq_field() local [all...] |
/kernel/linux/linux-5.10/kernel/cgroup/ |
H A D | rstat.c | 300 dst_bstat->cputime.stime += src_bstat->cputime.stime; in cgroup_base_stat_add() 308 dst_bstat->cputime.stime -= src_bstat->cputime.stime; in cgroup_base_stat_sub() 382 rstatc->bstat.cputime.stime += delta_exec; in __cgroup_account_cputime_field() 401 cputime->stime = 0; in root_cgroup_cputime() 419 cputime->stime += sys; in root_cgroup_cputime() 430 u64 usage, utime, stime; in cgroup_base_stat_cputime_show() local 437 &utime, &stime); in cgroup_base_stat_cputime_show() 443 stime in cgroup_base_stat_cputime_show() [all...] |
/kernel/linux/linux-5.10/kernel/ |
H A D | tsacct.c | 25 u64 utime, stime, utimescaled, stimescaled; in bacct_add_tsk() local 62 task_cputime(tsk, &utime, &stime); in bacct_add_tsk() 64 stats->ac_stime = div_u64(stime, NSEC_PER_USEC); in bacct_add_tsk() 119 u64 utime, u64 stime) in __acct_update_integrals() 126 time = stime + utime; in __acct_update_integrals() 148 u64 utime, stime; in acct_update_integrals() local 152 task_cputime(tsk, &utime, &stime); in acct_update_integrals() 153 __acct_update_integrals(tsk, utime, stime); in acct_update_integrals() 163 __acct_update_integrals(tsk, tsk->utime, tsk->stime); in acct_account_cputime() 118 __acct_update_integrals(struct task_struct *tsk, u64 utime, u64 stime) __acct_update_integrals() argument
|
H A D | delayacct.c | 87 u64 utime, stime, stimescaled, utimescaled; in __delayacct_add_tsk() local 92 task_cputime(tsk, &utime, &stime); in __delayacct_add_tsk() 94 tmp += utime + stime; in __delayacct_add_tsk()
|
/kernel/linux/linux-6.6/kernel/ |
H A D | tsacct.c | 25 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() 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() 124 __acct_update_integrals(struct task_struct *tsk, u64 utime, u64 stime) __acct_update_integrals() argument
|
H A D | delayacct.c | 131 u64 utime, stime, stimescaled, utimescaled; in delayacct_add_tsk() local 136 task_cputime(tsk, &utime, &stime); in delayacct_add_tsk() 138 tmp += utime + stime; in delayacct_add_tsk()
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
H A D | time.c | 245 acct->stime -= sst; in accumulate_stolen_time() 276 unsigned long now, unsigned long stime) in vtime_delta_scaled() 299 stime_scaled = stime; in vtime_delta_scaled() 301 if (deltascaled != stime + utime) { in vtime_delta_scaled() 303 stime_scaled = deltascaled * stime / (stime + utime); in vtime_delta_scaled() 319 unsigned long now, stime; in vtime_delta() local 325 stime = now - acct->starttime; in vtime_delta() 328 *stime_scaled = vtime_delta_scaled(acct, now, stime); in vtime_delta() 332 return stime; in vtime_delta() 275 vtime_delta_scaled(struct cpu_accounting_data *acct, unsigned long now, unsigned long stime) vtime_delta_scaled() argument 337 unsigned long stime, stime_scaled, steal_time; vtime_account_kernel() local 367 unsigned long stime, stime_scaled, steal_time; vtime_account_idle() local [all...] |
/kernel/linux/linux-5.10/include/linux/sched/ |
H A D | cputime.h | 22 u64 *utime, u64 *stime); 26 u64 *utime, u64 *stime) in task_cputime() 29 *stime = t->stime; in task_cputime() 139 * account_group_system_time - Maintain stime for a thread group. 142 * @cputime: Time value by which to increment the stime field of the 146 * running CPU and update the stime field there. 156 atomic64_add(cputime, &cputimer->cputime_atomic.stime); in account_group_system_time() 183 prev->utime = prev->stime = 0; in prev_cputime_init() 25 task_cputime(struct task_struct *t, u64 *utime, u64 *stime) task_cputime() argument
|
H A D | types.h | 9 * @stime: time spent in kernel mode, in nanoseconds 18 u64 stime; member
|
/kernel/linux/linux-6.6/include/linux/sched/ |
H A D | cputime.h | 13 u64 *utime, u64 *stime); 17 u64 *utime, u64 *stime) in task_cputime() 20 *stime = t->stime; in task_cputime() 131 * account_group_system_time - Maintain stime for a thread group. 134 * @cputime: Time value by which to increment the stime field of the 138 * running CPU and update the stime field there. 148 atomic64_add(cputime, &cputimer->cputime_atomic.stime); in account_group_system_time() 175 prev->utime = prev->stime = 0; in prev_cputime_init() 16 task_cputime(struct task_struct *t, u64 *utime, u64 *stime) task_cputime() argument
|
H A D | types.h | 9 * @stime: time spent in kernel mode, in nanoseconds 18 u64 stime; member
|
/kernel/linux/linux-5.10/arch/ia64/kernel/ |
H A D | time.c | 81 if (ti->stime) { in vtime_flush() 82 delta = cycle_to_nsec(ti->stime); in vtime_flush() 99 ti->stime = 0; in vtime_flush() 139 __u64 stime = vtime_delta(tsk); in vtime_account_kernel() local 142 ti->gtime += stime; in vtime_account_kernel() 144 ti->hardirq_time += stime; in vtime_account_kernel() 146 ti->softirq_time += stime; in vtime_account_kernel() 148 ti->stime += stime; in vtime_account_kernel()
|
/kernel/linux/common_modules/ucollection/ |
H A D | ucollection_process_cpu.c | 67 unsigned long long utime, stime; in get_process_usage_cputime() local 69 thread_group_cputime_adjusted(task, &utime, &stime); in get_process_usage_cputime() 71 do_div(stime, NS_TO_MS); in get_process_usage_cputime() 73 *st = stime; in get_process_usage_cputime() 93 unsigned long long utime, stime; in get_thread_load() local 95 stime = task->stime; in get_thread_load() 97 do_div(stime, NS_TO_MS); in get_thread_load() 101 thread_cpu_item.cpu_usage_stime = stime; in get_thread_load()
|
/kernel/linux/linux-6.6/kernel/cgroup/ |
H A D | rstat.c | 325 dst_bstat->cputime.stime += src_bstat->cputime.stime; in cgroup_base_stat_add() 336 dst_bstat->cputime.stime -= src_bstat->cputime.stime; in cgroup_base_stat_sub() 427 rstatc->bstat.cputime.stime += delta_exec; in __cgroup_account_cputime_field() 468 cputime->stime += sys; in root_cgroup_cputime() 483 u64 usage, utime, stime; in cgroup_base_stat_cputime_show() local 493 &utime, &stime); in cgroup_base_stat_cputime_show() 502 stime = bstat.cputime.stime; in cgroup_base_stat_cputime_show() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/benchs/ |
H A D | bench_local_storage_rcu_tasks_trace.c | 90 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()
|
/kernel/linux/linux-6.6/arch/ia64/kernel/ |
H A D | time.c | 83 if (ti->stime) { in vtime_flush() 84 delta = cycle_to_nsec(ti->stime); in vtime_flush() 101 ti->stime = 0; in vtime_flush() 141 __u64 stime = vtime_delta(tsk); in vtime_account_kernel() local 144 ti->gtime += stime; in vtime_account_kernel() 146 ti->stime += stime; in vtime_account_kernel()
|
/kernel/linux/linux-5.10/kernel/time/ |
H A D | posix-cpu-timers.c | 189 u64 utime, stime; in cpu_clock_sample() local 194 task_cputime(p, &utime, &stime); in cpu_clock_sample() 198 return utime + stime; in cpu_clock_sample() 207 static inline void store_samples(u64 *samples, u64 stime, u64 utime, u64 rtime) in store_samples() argument 209 samples[CPUCLOCK_PROF] = stime + utime; in store_samples() 216 u64 stime, utime; in task_sample_cputime() local 218 task_cputime(p, &utime, &stime); in task_sample_cputime() 219 store_samples(samples, stime, utime, p->se.sum_exec_runtime); in task_sample_cputime() 225 u64 stime, utime, rtime; in proc_sample_cputime_atomic() local 228 stime in proc_sample_cputime_atomic() [all...] |
/kernel/linux/linux-6.6/kernel/time/ |
H A D | posix-cpu-timers.c | 196 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 in proc_sample_cputime_atomic() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_benchmark.c | 34 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()
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
H A D | accounting.h | 13 unsigned long stime; member
|
/kernel/linux/linux-6.6/arch/powerpc/include/asm/ |
H A D | accounting.h | 13 unsigned long stime; member
|