/linux-4.1.27/sound/core/ |
H A D | hrtimer.c | 46 struct snd_hrtimer *stime = container_of(hrt, struct snd_hrtimer, hrt); snd_hrtimer_callback() local 47 struct snd_timer *t = stime->timer; snd_hrtimer_callback() 50 if (!atomic_read(&stime->running)) snd_hrtimer_callback() 54 snd_timer_interrupt(stime->timer, t->sticks * oruns); snd_hrtimer_callback() 56 if (!atomic_read(&stime->running)) snd_hrtimer_callback() 63 struct snd_hrtimer *stime; snd_hrtimer_open() local 65 stime = kmalloc(sizeof(*stime), GFP_KERNEL); snd_hrtimer_open() 66 if (!stime) snd_hrtimer_open() 68 hrtimer_init(&stime->hrt, CLOCK_MONOTONIC, HRTIMER_MODE_REL); snd_hrtimer_open() 69 stime->timer = t; snd_hrtimer_open() 70 stime->hrt.function = snd_hrtimer_callback; snd_hrtimer_open() 71 atomic_set(&stime->running, 0); snd_hrtimer_open() 72 t->private_data = stime; snd_hrtimer_open() 78 struct snd_hrtimer *stime = t->private_data; snd_hrtimer_close() local 80 if (stime) { snd_hrtimer_close() 81 hrtimer_cancel(&stime->hrt); snd_hrtimer_close() 82 kfree(stime); snd_hrtimer_close() 90 struct snd_hrtimer *stime = t->private_data; snd_hrtimer_start() local 92 atomic_set(&stime->running, 0); snd_hrtimer_start() 93 hrtimer_try_to_cancel(&stime->hrt); snd_hrtimer_start() 94 hrtimer_start(&stime->hrt, ns_to_ktime(t->sticks * resolution), snd_hrtimer_start() 96 atomic_set(&stime->running, 1); snd_hrtimer_start() 102 struct snd_hrtimer *stime = t->private_data; snd_hrtimer_stop() local 103 atomic_set(&stime->running, 0); snd_hrtimer_stop() 104 hrtimer_try_to_cancel(&stime->hrt); snd_hrtimer_stop()
|
/linux-4.1.27/kernel/sched/ |
H A D | cputime.c | 193 p->stime += cputime; __account_system_time() 289 cputime_t utime, stime; thread_group_cputime() local 301 times->stime = sig->stime; thread_group_cputime() 305 task_cputime(t, &utime, &stime); for_each_thread() 307 times->stime += stime; for_each_thread() 336 * p->stime and friends are only updated on system time and not on irq 360 * Also, p->stime needs to be updated for ksoftirqd. irqtime_account_process_tick() 445 *st = p->stime; task_cputime_adjusted() 455 *st = cputime.stime; thread_group_cputime_adjusted() 514 * Perform (stime * rtime) / total, but avoid multiplication overflow by 517 static cputime_t scale_stime(u64 stime, u64 rtime, u64 total) scale_stime() argument 522 /* Make sure "rtime" is the bigger of stime/rtime */ scale_stime() 523 if (stime > rtime) scale_stime() 524 swap(rtime, stime); scale_stime() 530 /* Does rtime (and thus stime) fit in 32 bits? */ scale_stime() 534 /* Can we just balance rtime/stime rather than dropping bits? */ scale_stime() 535 if (stime >> 31) scale_stime() 538 /* We can grow stime and shrink rtime and try to make them both fit */ scale_stime() 539 stime <<= 1; scale_stime() 544 /* We drop from rtime, it has more bits than stime */ scale_stime() 553 scaled = div_u64((u64) (u32) stime * (u64) (u32) rtime, (u32)total); scale_stime() 582 cputime_t rtime, stime, utime; cputime_adjust() local 597 * Update userspace visible utime/stime values only if actual execution cputime_adjust() 601 if (prev->stime + prev->utime >= rtime) cputime_adjust() 604 stime = curr->stime; cputime_adjust() 608 stime = rtime; cputime_adjust() 609 } else if (stime == 0) { cputime_adjust() 612 cputime_t total = stime + utime; cputime_adjust() 614 stime = scale_stime((__force u64)stime, cputime_adjust() 616 utime = rtime - stime; cputime_adjust() 619 cputime_advance(&prev->stime, stime); cputime_adjust() 624 *st = prev->stime; cputime_adjust() 633 task_cputime(p, &cputime.utime, &cputime.stime); task_cputime_adjusted() 828 void task_cputime(struct task_struct *t, cputime_t *utime, cputime_t *stime) task_cputime() argument 832 fetch_task_cputime(t, utime, stime, &t->utime, task_cputime() 833 &t->stime, &udelta, &sdelta); task_cputime() 836 if (stime) task_cputime() 837 *stime += sdelta; task_cputime()
|
H A D | stats.h | 224 * account_group_system_time - Maintain stime for a thread group. 227 * @cputime: Time value by which to increment the stime field of the 231 * running CPU and update the stime field there. 242 cputimer->cputime.stime += cputime; account_group_system_time()
|
/linux-4.1.27/kernel/ |
H A D | tsacct.c | 34 cputime_t utime, stime, utimescaled, stimescaled; bacct_add_tsk() local 69 task_cputime(tsk, &utime, &stime); bacct_add_tsk() 71 stats->ac_stime = cputime_to_usecs(stime); bacct_add_tsk() 124 cputime_t utime, cputime_t stime) __acct_update_integrals() 133 time = stime + utime; __acct_update_integrals() 155 cputime_t utime, stime; acct_update_integrals() local 157 task_cputime(tsk, &utime, &stime); acct_update_integrals() 158 __acct_update_integrals(tsk, utime, stime); acct_update_integrals() 167 __acct_update_integrals(tsk, tsk->utime, tsk->stime); acct_account_cputime() 123 __acct_update_integrals(struct task_struct *tsk, cputime_t utime, cputime_t stime) __acct_update_integrals() argument
|
H A D | delayacct.c | 85 cputime_t utime, stime, stimescaled, utimescaled; __delayacct_add_tsk() local 90 task_cputime(tsk, &utime, &stime); __delayacct_add_tsk() 92 tmp += cputime_to_nsecs(utime + stime); __delayacct_add_tsk()
|
H A D | acct.c | 533 cputime_t utime, stime; acct_collect() local 562 task_cputime(current, &utime, &stime); acct_collect() 564 pacct->ac_stime += stime; acct_collect()
|
H A D | sys.c | 1546 cputime_t tgutime, tgstime, utime, stime; k_getrusage() local 1550 utime = stime = 0; k_getrusage() 1553 task_cputime_adjusted(current, &utime, &stime); k_getrusage() 1566 stime = p->signal->cstime; k_getrusage() 1581 stime += tgstime; k_getrusage() 1603 cputime_to_timeval(stime, &r->ru_stime); k_getrusage()
|
H A D | exit.c | 89 cputime_t utime, stime; __exit_signal() local 126 task_cputime(tsk, &utime, &stime); __exit_signal() 129 sig->stime += stime; __exit_signal()
|
H A D | signal.c | 1629 cputime_t utime, stime; do_notify_parent() local 1667 task_cputime(tsk, &utime, &stime); do_notify_parent() 1669 info.si_stime = cputime_to_clock_t(stime + tsk->signal->stime); do_notify_parent() 1733 cputime_t utime, stime; do_notify_parent_cldstop() local 1752 task_cputime(tsk, &utime, &stime); do_notify_parent_cldstop() 1754 info.si_stime = cputime_to_clock_t(stime); do_notify_parent_cldstop()
|
H A D | fork.c | 1342 p->utime = p->stime = p->gtime = 0; copy_process() 1345 p->prev_cputime.utime = p->prev_cputime.stime = 0; copy_process()
|
H A D | compat.c | 1048 COMPAT_SYSCALL_DEFINE1(stime, compat_time_t __user *, tptr) COMPAT_SYSCALL_DEFINE1()
|
/linux-4.1.27/kernel/time/ |
H A D | posix-cpu-timers.c | 121 if (!cputime->utime && !cputime->stime && !cputime->sum_exec_runtime) task_cputime_zero() 128 cputime_t utime, stime; prof_ticks() local 130 task_cputime(p, &utime, &stime); prof_ticks() 132 return cputime_to_expires(utime + stime); prof_ticks() 204 if (b->stime > a->stime) update_gt_cputime() 205 a->stime = b->stime; update_gt_cputime() 250 *sample = cputime_to_expires(cputime.utime + cputime.stime); cpu_clock_sample_group() 550 *sample = cputime_to_expires(cputime.utime + cputime.stime); cpu_timer_sample_group() 947 ptime = utime + cputime_to_expires(cputime.stime); check_process_timers() 1077 if (expires->stime && sample->utime + sample->stime >= expires->stime) task_cputime_expired() 1098 cputime_t utime, stime; fastpath_timer_check() local 1100 task_cputime(tsk, &utime, &stime); fastpath_timer_check() 1105 .stime = stime, fastpath_timer_check()
|
H A D | itimer.c | 61 t = cputime.utime + cputime.stime; get_cpu_itimer()
|
H A D | time.c | 7 * time related system calls: time, stime, gettimeofday, settimeofday, 82 SYSCALL_DEFINE1(stime, time_t __user *, tptr) SYSCALL_DEFINE1()
|
/linux-4.1.27/arch/xtensa/platforms/iss/include/platform/ |
H A D | simcall.h | 44 #define SYS_times 25 /*X 43 - stime (Xtensa-specific implementation) */
|
/linux-4.1.27/include/linux/ |
H A D | context_tracking.h | 105 * to assume that it's the stime pending cputime guest_enter()
|
H A D | sched.h | 530 * @stime: time spent in system mode 536 cputime_t stime; member in struct:cputime 542 * @stime: time spent in kernel mode, in &cputime_t units 555 cputime_t stime; member in struct:task_cputime 559 #define prof_exp stime 566 .stime = 0, \ 695 cputime_t utime, stime, cutime, cstime; member in struct:signal_struct 710 * from jiffies_to_ns(utime + stime) if sched_clock uses something 1432 cputime_t utime, stime, utimescaled, stimescaled; member in struct:task_struct 1575 cputime_t acct_timexpd; /* stime + utime since last update */ 1931 cputime_t *utime, cputime_t *stime); 1937 cputime_t *utime, cputime_t *stime) task_cputime() 1941 if (stime) task_cputime() 1942 *stime = t->stime; task_cputime() 1936 task_cputime(struct task_struct *t, cputime_t *utime, cputime_t *stime) task_cputime() argument
|
/linux-4.1.27/fs/proc/ |
H A D | array.c | 379 cputime_t cutime, cstime, utime, stime; do_task_stat() local 401 cutime = cstime = utime = stime = 0; do_task_stat() 435 thread_group_cputime_adjusted(task, &utime, &stime); do_task_stat() 451 task_cputime_adjusted(task, &utime, &stime); do_task_stat() 475 seq_put_decimal_ull(m, ' ', cputime_to_clock_t(stime)); do_task_stat()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/ |
H A D | nouveau_display.c | 96 ktime_t *stime, ktime_t *etime) nouveau_display_scanoutpos_head() 125 if (stime) *stime = ns_to_ktime(args.scan.time[0]); nouveau_display_scanoutpos_head() 135 int *vpos, int *hpos, ktime_t *stime, ktime_t *etime) nouveau_display_scanoutpos() 142 stime, etime); nouveau_display_scanoutpos() 95 nouveau_display_scanoutpos_head(struct drm_crtc *crtc, int *vpos, int *hpos, ktime_t *stime, ktime_t *etime) nouveau_display_scanoutpos_head() argument 134 nouveau_display_scanoutpos(struct drm_device *dev, int head, unsigned int flags, int *vpos, int *hpos, ktime_t *stime, ktime_t *etime) nouveau_display_scanoutpos() argument
|
/linux-4.1.27/drivers/isdn/mISDN/ |
H A D | stack.c | 206 cputime_t utime, stime; mISDNStackd() local 309 task_cputime(st->thread, &utime, &stime); mISDNStackd() 311 "mISDNStackd daemon for %s utime(%ld) stime(%ld)\n", mISDNStackd() 312 dev_name(&st->dev->dev), utime, stime); mISDNStackd()
|
/linux-4.1.27/drivers/power/ |
H A D | lp8788-charger.c | 656 char *stime[] = { "400ms", "5min", "10min", "15min", lp8788_show_eoc_time() local 664 stime[val]); lp8788_show_eoc_time()
|
/linux-4.1.27/arch/ia64/kernel/ |
H A D | ivt.S | 829 ld8 r20=[r16],TI_AC_STAMP-TI_AC_STIME // M cumulated stime 831 sub r22=r19,r18 // A stime before leave 836 add r20=r20,r22 // A sum stime 839 st8 [r16]=r20 // M update stime 1064 ld8 r23=[r16],TI_AC_STAMP-TI_AC_STIME // cumulated stime 1066 sub r22=r19,r18 // stime before leave kernel 1071 add r23=r23,r22 // sum stime 1074 st8 [r16]=r23 // update stime
|
H A D | fsys.S | 519 ld8 r20=[r16],TI_AC_STAMP-TI_AC_STIME // cumulated stime 521 sub r22=r19,r18 // stime before leave kernel 526 add r20=r20,r22 // sum stime 529 st8 [r16]=r20 // update stime
|
/linux-4.1.27/include/uapi/linux/ |
H A D | taskstats.h | 160 __u64 ac_stimescaled; /* stime scaled on frequency etc */
|
H A D | btrfs.h | 456 struct btrfs_ioctl_timespec stime; /* in */ member in struct:btrfs_ioctl_received_subvol_args
|
/linux-4.1.27/arch/powerpc/include/asm/ |
H A D | systbl.h | 31 COMPAT_SYS_SPU(stime)
|
/linux-4.1.27/fs/btrfs/ |
H A D | ioctl.c | 78 struct btrfs_ioctl_timespec_32 stime; /* in */ member in struct:btrfs_ioctl_received_subvol_args_32 5018 btrfs_set_stack_timespec_sec(&root_item->stime, sa->stime.sec); _btrfs_ioctl_set_received_subvol() 5019 btrfs_set_stack_timespec_nsec(&root_item->stime, sa->stime.nsec); _btrfs_ioctl_set_received_subvol() 5075 args64->stime.sec = args32->stime.sec; btrfs_ioctl_set_received_subvol_32() 5076 args64->stime.nsec = args32->stime.nsec; btrfs_ioctl_set_received_subvol_32() 5088 args32->stime.sec = args64->stime.sec; btrfs_ioctl_set_received_subvol_32() 5089 args32->stime.nsec = args64->stime.nsec; btrfs_ioctl_set_received_subvol_32()
|
H A D | transaction.c | 1371 memset(&new_root_item->stime, 0, sizeof(new_root_item->stime)); create_pending_snapshot()
|
H A D | ctree.h | 805 struct btrfs_timespec stime; member in struct:btrfs_root_item
|
/linux-4.1.27/arch/s390/kernel/ |
H A D | syscalls.S | 36 SYSCALL(sys_ni_syscall,compat_sys_stime) /* 25 old stime syscall */
|
/linux-4.1.27/fs/ |
H A D | binfmt_elf_fdpic.c | 1347 cputime_to_timeval(cputime.stime, &prstatus->pr_stime); fill_prstatus() 1349 cputime_t utime, stime; fill_prstatus() local 1351 task_cputime(p, &utime, &stime); fill_prstatus() 1353 cputime_to_timeval(stime, &prstatus->pr_stime); fill_prstatus()
|
H A D | binfmt_elf.c | 1414 cputime_to_timeval(cputime.stime, &prstatus->pr_stime); fill_prstatus() 1416 cputime_t utime, stime; fill_prstatus() local 1418 task_cputime(p, &utime, &stime); fill_prstatus() 1420 cputime_to_timeval(stime, &prstatus->pr_stime); fill_prstatus()
|
/linux-4.1.27/arch/alpha/kernel/ |
H A D | osf_sys.c | 1140 cputime_t utime, stime; SYSCALL_DEFINE2() local 1148 task_cputime(current, &utime, &stime); SYSCALL_DEFINE2() 1150 jiffies_to_timeval32(stime, &r.ru_stime); SYSCALL_DEFINE2()
|
/linux-4.1.27/drivers/gpu/drm/ |
H A D | drm_irq.c | 671 ktime_t stime, etime; drm_calc_vbltimestamp_from_scanoutpos() local 711 * and bounding timestamps stime, etime, pre/post query. drm_calc_vbltimestamp_from_scanoutpos() 714 &hpos, &stime, &etime); drm_calc_vbltimestamp_from_scanoutpos() 724 duration_ns = ktime_to_ns(etime) - ktime_to_ns(stime); drm_calc_vbltimestamp_from_scanoutpos()
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
H A D | radeon_display.c | 1772 * \param *stime Target location for timestamp taken immediately before 1792 int *vpos, int *hpos, ktime_t *stime, ktime_t *etime) radeon_get_crtc_scanoutpos() 1803 if (stime) radeon_get_crtc_scanoutpos() 1804 *stime = ktime_get(); radeon_get_crtc_scanoutpos() 1791 radeon_get_crtc_scanoutpos(struct drm_device *dev, int crtc, unsigned int flags, int *vpos, int *hpos, ktime_t *stime, ktime_t *etime) radeon_get_crtc_scanoutpos() argument
|
H A D | radeon_drv.c | 128 int *vpos, int *hpos, ktime_t *stime,
|
H A D | radeon_mode.h | 881 int *vpos, int *hpos, ktime_t *stime,
|
/linux-4.1.27/arch/parisc/kernel/ |
H A D | syscall_table.S | 89 ENTRY_COMP(stime) /* 25 */
|
/linux-4.1.27/include/drm/ |
H A D | drmP.h | 478 * \param *stime Target location for timestamp taken immediately before 499 int *vpos, int *hpos, ktime_t *stime,
|
/linux-4.1.27/arch/x86/kernel/ |
H A D | apm_32.c | 909 cputime_t stime; apm_cpu_idle() local 916 task_cputime(current, NULL, &stime); apm_cpu_idle() 922 idle_percentage = stime - last_stime; apm_cpu_idle() 931 last_stime = stime; apm_cpu_idle()
|
/linux-4.1.27/arch/x86/platform/uv/ |
H A D | tlb_uv.c | 76 "stime: time spent sending messages", 1371 "# cpu bauoff sent stime self locals remotes ncpus localhub "); ptc_seq_show()
|
/linux-4.1.27/arch/x86/include/asm/ |
H A D | kvm_host.h | 454 struct gfn_to_hva_cache stime; member in struct:kvm_vcpu_arch::__anon3052
|
/linux-4.1.27/ipc/ |
H A D | msg.c | 1044 " key msqid perms cbytes qnum lspid lrpid uid gid cuid cgid stime rtime ctime\n", msg_init()
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
H A D | i915_irq.c | 639 ktime_t *stime, ktime_t *etime) i915_get_crtc_scanoutpos() 681 if (stime) i915_get_crtc_scanoutpos() 682 *stime = ktime_get(); i915_get_crtc_scanoutpos() 637 i915_get_crtc_scanoutpos(struct drm_device *dev, int pipe, unsigned int flags, int *vpos, int *hpos, ktime_t *stime, ktime_t *etime) i915_get_crtc_scanoutpos() argument
|
/linux-4.1.27/arch/x86/kvm/ |
H A D | x86.c | 2124 if (unlikely(kvm_read_guest_cached(vcpu->kvm, &vcpu->arch.st.stime, record_steal_time() 2132 kvm_write_guest_cached(vcpu->kvm, &vcpu->arch.st.stime, record_steal_time() 2256 if (kvm_gfn_to_hva_cache_init(vcpu->kvm, &vcpu->arch.st.stime, kvm_set_msr_common()
|