| /linux/sound/core/ |
| H A D | hrtimer.c | 33 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(sizeof(*stime), GFP_KERNEL); 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/arch/powerpc/kernel/ |
| H A D | time.c | 171 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 D | tsacct.c | 25 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 D | delayacct.c | 145 u64 utime, stime, stimescaled, utimescaled; in delayacct_add_tsk() local 150 task_cputime(tsk, &utime, &stime); in delayacct_add_tsk() 152 tmp += utime + stime; in delayacct_add_tsk()
|
| H A D | acct.c | 562 u64 utime, stime; in acct_collect() local 591 task_cputime(current, &utime, &stime); in acct_collect() 593 pacct->ac_stime += stime; in acct_collect()
|
| H A D | taskstats.c | 218 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 D | cputime.h | 13 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 D | types.h | 18 u64 stime; member
|
| H A D | signal.h | 50 atomic64_t stime; member 57 .stime = ATOMIC64_INIT(0), \ 189 u64 utime, stime, cutime, cstime; member
|
| /linux/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()
|
| /linux/kernel/cgroup/ |
| H A D | rstat.c | 543 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/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()
|
| /linux/kernel/sched/ |
| H A D | cpuacct.c | 276 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/include/asm/ |
| H A D | accounting.h | 13 unsigned long stime; member
|
| H A D | cputime.h | 59 acct->stime += (tb - acct->starttime); in account_cpu_user_exit()
|
| /linux/io_uring/ |
| H A D | sqpoll.c | 181 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 D | nouveau_display.h | 59 ktime_t *stime, ktime_t *etime,
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | bench.h | 48 unsigned int stime; member
|
| /linux/fs/proc/ |
| H A D | array.c | 479 u64 cutime, cstime, cgtime, utime, stime, gtime; in do_task_stat() local 565 thread_group_cputime_adjusted(task, &utime, &stime); in do_task_stat() 567 task_cputime_adjusted(task, &utime, &stime); in do_task_stat() 598 seq_put_decimal_ull(m, " ", nsec_to_clock_t(stime)); in do_task_stat()
|
| /linux/fs/btrfs/ |
| H A D | ioctl.c | 77 struct btrfs_ioctl_timespec_32 stime; /* in */ member 2077 subvol_info->stime.sec = btrfs_stack_timespec_sec(&root_item->stime); in btrfs_ioctl_get_subvol_info() 2078 subvol_info->stime.nsec = btrfs_stack_timespec_nsec(&root_item->stime); in btrfs_ioctl_get_subvol_info() 3966 btrfs_set_stack_timespec_sec(&root_item->stime, sa->stime.sec); in _btrfs_ioctl_set_received_subvol() 3967 btrfs_set_stack_timespec_nsec(&root_item->stime, sa->stime.nsec); in _btrfs_ioctl_set_received_subvol() 4015 args64->stime.sec = args32->stime.sec; in btrfs_ioctl_set_received_subvol_32() 4016 args64->stime.nsec = args32->stime.nsec; in btrfs_ioctl_set_received_subvol_32() 4028 args32->stime.sec = args64->stime.sec; in btrfs_ioctl_set_received_subvol_32() 4029 args32->stime.nsec = args64->stime.nsec; in btrfs_ioctl_set_received_subvol_32()
|
| /linux/drivers/isdn/mISDN/ |
| H A D | stack.c | 198 u64 utime, stime; in mISDNStackd() local 301 task_cputime(st->thread, &utime, &stime); in mISDNStackd() 304 dev_name(&st->dev->dev), utime, stime); in mISDNStackd()
|
| /linux/tools/testing/selftests/wireguard/qemu/ |
| H A D | init.c | 79 if (stime(&(time_t){1433512680}) < 0) in set_time()
|
| /linux/arch/x86/kernel/ |
| H A D | apm_32.c | 907 u64 stime, utime; in apm_cpu_idle() local 914 task_cputime(current, &utime, &stime); in apm_cpu_idle() 920 idle_percentage = nsecs_to_jiffies(stime - last_stime); in apm_cpu_idle() 929 last_stime = stime; in apm_cpu_idle()
|
| /linux/drivers/power/supply/ |
| H A D | lp8788-charger.c | 606 static const char * const stime[] = { in lp8788_show_eoc_time() local 615 return sysfs_emit(buf, "End Of Charge Time: %s\n", stime[val]); in lp8788_show_eoc_time()
|
| /linux/include/uapi/linux/ |
| H A D | btrfs.h | 806 struct btrfs_ioctl_timespec stime; /* in */ member 914 struct btrfs_ioctl_timespec stime; member
|