/kernel/time/ |
D | tick-sched.c | 140 struct tick_sched *ts = &per_cpu(tick_cpu_sched, cpu); in tick_nohz_update_jiffies() local 144 if (!ts->tick_stopped) in tick_nohz_update_jiffies() 149 ts->idle_waketime = now; in tick_nohz_update_jiffies() 160 struct tick_sched *ts = &per_cpu(tick_cpu_sched, cpu); in tick_nohz_stop_idle() local 162 if (ts->idle_active) { in tick_nohz_stop_idle() 165 delta = ktime_sub(now, ts->idle_entrytime); in tick_nohz_stop_idle() 166 ts->idle_lastupdate = now; in tick_nohz_stop_idle() 167 ts->idle_sleeptime = ktime_add(ts->idle_sleeptime, delta); in tick_nohz_stop_idle() 168 ts->idle_active = 0; in tick_nohz_stop_idle() 174 static ktime_t tick_nohz_start_idle(struct tick_sched *ts) in tick_nohz_start_idle() argument [all …]
|
D | timekeeping.c | 92 void getnstimeofday(struct timespec *ts) in getnstimeofday() argument 103 *ts = xtime; in getnstimeofday() 116 timespec_add_ns(ts, nsecs); in getnstimeofday() 223 void getrawmonotonic(struct timespec *ts) in getrawmonotonic() argument 241 *ts = clock->raw_time; in getrawmonotonic() 245 timespec_add_ns(ts, nsecs); in getrawmonotonic() 571 void getboottime(struct timespec *ts) in getboottime() argument 573 set_normalized_timespec(ts, in getboottime() 582 void monotonic_to_bootbased(struct timespec *ts) in monotonic_to_bootbased() argument 584 ts->tv_sec += total_sleep_time; in monotonic_to_bootbased()
|
D | ntp.c | 278 struct timespec ts; in do_adjtimex() local 304 getnstimeofday(&ts); in do_adjtimex() 336 sec = ts.tv_sec; in do_adjtimex() 430 txc->time.tv_sec = ts.tv_sec; in do_adjtimex() 431 txc->time.tv_usec = ts.tv_nsec; in do_adjtimex()
|
D | timer_list.c | 160 (unsigned long long)(ts->x)) in print_cpu() 163 (unsigned long long)(ktime_to_ns(ts->x))) in print_cpu() 165 struct tick_sched *ts = tick_get_tick_sched(cpu); in print_cpu() local
|
/kernel/trace/ |
D | trace_boot.c | 59 u64 ts; in initcall_call_print_line() local 65 ts = iter->ts; in initcall_call_print_line() 66 nsec_rem = do_div(ts, 1000000000); in initcall_call_print_line() 69 (unsigned long)ts, nsec_rem, call->func, call->caller); in initcall_call_print_line() 84 u64 ts; in initcall_ret_print_line() local 90 ts = iter->ts; in initcall_ret_print_line() 91 nsec_rem = do_div(ts, 1000000000); in initcall_ret_print_line() 95 (unsigned long) ts, in initcall_ret_print_line()
|
D | ring_buffer.c | 118 void ring_buffer_normalize_time_stamp(int cpu, u64 *ts) in ring_buffer_normalize_time_stamp() argument 121 *ts >>= DEBUG_SHIFT; in ring_buffer_normalize_time_stamp() 986 unsigned type, unsigned long length, u64 *ts) in __rb_reserve_next() argument 1053 *ts = ring_buffer_time_stamp(cpu_buffer->cpu); in __rb_reserve_next() 1054 cpu_buffer->tail_page->page->time_stamp = *ts; in __rb_reserve_next() 1099 cpu_buffer->commit_page->page->time_stamp = *ts; in __rb_reserve_next() 1115 u64 *ts, u64 *delta) in rb_add_time_stamp() argument 1125 (unsigned long long)*ts, in rb_add_time_stamp() 1137 ts); in rb_add_time_stamp() 1154 cpu_buffer->commit_page->page->time_stamp = *ts; in rb_add_time_stamp() [all …]
|
D | trace.c | 138 u64 ts = ring_buffer_time_stamp(cpu); in ftrace_now() local 139 ring_buffer_normalize_time_stamp(cpu, &ts); in ftrace_now() 140 return ts; in ftrace_now() 1325 peek_next_entry(struct trace_iterator *iter, int cpu, u64 *ts) argument 1334 event = ring_buffer_iter_peek(buf_iter, ts); 1336 event = ring_buffer_peek(iter->tr->buffer, cpu, ts); 1348 u64 next_ts = 0, ts; local 1357 ent = peek_next_entry(iter, cpu, &ts); 1362 if (ent && (!next || ts < next_ts)) { 1365 next_ts = ts; [all …]
|
D | trace_mmiotrace.c | 175 unsigned long long t = ns2usecs(iter->ts); in mmio_print_rw() 221 unsigned long long t = ns2usecs(iter->ts); in mmio_print_map() 257 unsigned long long t = ns2usecs(iter->ts); in mmio_print_mark()
|
D | trace.h | 365 u64 ts; member
|
/kernel/ |
D | delayacct.c | 63 struct timespec ts; in delayacct_end() local 68 ts = timespec_sub(*end, *start); in delayacct_end() 69 ns = timespec_to_ns(&ts); in delayacct_end() 105 struct timespec ts; in __delayacct_add_tsk() local 114 cputime_to_timespec(tsk->utime + tsk->stime, &ts); in __delayacct_add_tsk() 115 tmp += timespec_to_ns(&ts); in __delayacct_add_tsk() 119 cputime_to_timespec(tsk->utimescaled + tsk->stimescaled, &ts); in __delayacct_add_tsk() 120 tmp += timespec_to_ns(&ts); in __delayacct_add_tsk()
|
D | time.c | 373 void set_normalized_timespec(struct timespec *ts, time_t sec, long nsec) in set_normalized_timespec() argument 383 ts->tv_sec = sec; in set_normalized_timespec() 384 ts->tv_nsec = nsec; in set_normalized_timespec() 396 struct timespec ts; in ns_to_timespec() local 402 ts.tv_sec = div_s64_rem(nsec, NSEC_PER_SEC, &rem); in ns_to_timespec() 404 ts.tv_sec--; in ns_to_timespec() 407 ts.tv_nsec = rem; in ns_to_timespec() 409 return ts; in ns_to_timespec() 421 struct timespec ts = ns_to_timespec(nsec); in ns_to_timeval() local 424 tv.tv_sec = ts.tv_sec; in ns_to_timeval() [all …]
|
D | compat.c | 89 int get_compat_timespec(struct timespec *ts, const struct compat_timespec __user *cts) in get_compat_timespec() argument 92 __get_user(ts->tv_sec, &cts->tv_sec) || in get_compat_timespec() 93 __get_user(ts->tv_nsec, &cts->tv_nsec)) ? -EFAULT : 0; in get_compat_timespec() 96 int put_compat_timespec(const struct timespec *ts, struct compat_timespec __user *cts) in put_compat_timespec() argument 99 __put_user(ts->tv_sec, &cts->tv_sec) || in put_compat_timespec() 100 __put_user(ts->tv_nsec, &cts->tv_nsec)) ? -EFAULT : 0; in put_compat_timespec() 587 struct itimerspec ts; in compat_sys_timer_gettime() local 592 (struct itimerspec __user *) &ts); in compat_sys_timer_gettime() 594 if (!err && put_compat_itimerspec(setting, &ts)) in compat_sys_timer_gettime() 604 struct timespec ts; in compat_sys_clock_settime() local [all …]
|
D | futex_compat.c | 177 struct timespec ts; in compat_sys_futex() local 184 if (get_compat_timespec(&ts, utime)) in compat_sys_futex() 186 if (!timespec_valid(&ts)) in compat_sys_futex() 189 t = timespec_to_ktime(ts); in compat_sys_futex()
|
D | tsacct.c | 31 struct timespec uptime, ts; in bacct_add_tsk() local 38 ts = timespec_sub(uptime, tsk->start_time); in bacct_add_tsk() 40 ac_etime = timespec_to_ns(&ts); in bacct_add_tsk() 43 stats->ac_btime = get_seconds() - ts.tv_sec; in bacct_add_tsk()
|
D | signal.c | 2164 struct timespec ts; in SYSCALL_DEFINE4() local 2183 if (copy_from_user(&ts, uts, sizeof(ts))) in SYSCALL_DEFINE4() 2185 if (ts.tv_nsec >= 1000000000L || ts.tv_nsec < 0 in SYSCALL_DEFINE4() 2186 || ts.tv_sec < 0) in SYSCALL_DEFINE4() 2195 timeout = (timespec_to_jiffies(&ts) in SYSCALL_DEFINE4() 2196 + (ts.tv_sec || ts.tv_nsec)); in SYSCALL_DEFINE4()
|
D | hrtimer.c | 115 void ktime_get_ts(struct timespec *ts) in ktime_get_ts() argument 122 getnstimeofday(ts); in ktime_get_ts() 127 set_normalized_timespec(ts, ts->tv_sec + tomono.tv_sec, in ktime_get_ts() 128 ts->tv_nsec + tomono.tv_nsec); in ktime_get_ts()
|
D | futex.c | 2019 struct timespec ts; in SYSCALL_DEFINE6() local 2026 if (copy_from_user(&ts, utime, sizeof(ts)) != 0) in SYSCALL_DEFINE6() 2028 if (!timespec_valid(&ts)) in SYSCALL_DEFINE6() 2031 t = timespec_to_ktime(ts); in SYSCALL_DEFINE6()
|
/kernel/power/ |
D | earlysuspend.c | 151 struct timespec ts; in request_suspend_state() local 153 getnstimeofday(&ts); in request_suspend_state() 154 rtc_time_to_tm(ts.tv_sec, &tm); in request_suspend_state() 161 tm.tm_hour, tm.tm_min, tm.tm_sec, ts.tv_nsec); in request_suspend_state()
|
D | wakelock.c | 61 struct timespec ts; in get_expired_time() local 79 set_normalized_timespec(&ts, kt.tv_sec + tomono.tv_sec - delta.tv_sec, in get_expired_time() 81 *expire_time = timespec_to_ktime(ts); in get_expired_time() 291 struct timespec ts; in suspend() local 293 getnstimeofday(&ts); in suspend() 294 rtc_time_to_tm(ts.tv_sec, &tm); in suspend() 298 tm.tm_hour, tm.tm_min, tm.tm_sec, ts.tv_nsec); in suspend()
|