/kernel/time/ |
D | tick-sched.c | 129 static void tick_sched_handle(struct tick_sched *ts, struct pt_regs *regs) in tick_sched_handle() argument 140 if (ts->tick_stopped) { in tick_sched_handle() 143 ts->idle_jiffies++; in tick_sched_handle() 188 static void tick_nohz_restart_sched_tick(struct tick_sched *ts, ktime_t now); 196 struct tick_sched *ts = &__get_cpu_var(tick_cpu_sched); in tick_nohz_full_check() local 199 if (ts->tick_stopped && !is_idle_task(current)) { in tick_nohz_full_check() 201 tick_nohz_restart_sched_tick(ts, ktime_get()); in tick_nohz_full_check() 404 struct tick_sched *ts = &per_cpu(tick_cpu_sched, cpu); in tick_nohz_update_jiffies() local 407 ts->idle_waketime = now; in tick_nohz_update_jiffies() 420 update_ts_time_stats(int cpu, struct tick_sched *ts, ktime_t now, u64 *last_update_time) in update_ts_time_stats() argument [all …]
|
D | timekeeping.c | 48 static void tk_set_xtime(struct timekeeper *tk, const struct timespec *ts) in tk_set_xtime() argument 50 tk->xtime_sec = ts->tv_sec; in tk_set_xtime() 51 tk->xtime_nsec = (u64)ts->tv_nsec << tk->shift; in tk_set_xtime() 54 static void tk_xtime_add(struct timekeeper *tk, const struct timespec *ts) in tk_xtime_add() argument 56 tk->xtime_sec += ts->tv_sec; in tk_xtime_add() 57 tk->xtime_nsec += (u64)ts->tv_nsec << tk->shift; in tk_xtime_add() 293 int __getnstimeofday(struct timespec *ts) in __getnstimeofday() argument 302 ts->tv_sec = tk->xtime_sec; in __getnstimeofday() 307 ts->tv_nsec = 0; in __getnstimeofday() 308 timespec_add_ns(ts, nsecs); in __getnstimeofday() [all …]
|
D | posix-clock.c | 300 static int pc_clock_gettime(clockid_t id, struct timespec *ts) in pc_clock_gettime() argument 310 err = cd.clk->ops.clock_gettime(cd.clk, ts); in pc_clock_gettime() 319 static int pc_clock_getres(clockid_t id, struct timespec *ts) in pc_clock_getres() argument 329 err = cd.clk->ops.clock_getres(cd.clk, ts); in pc_clock_getres() 338 static int pc_clock_settime(clockid_t id, const struct timespec *ts) in pc_clock_settime() argument 353 err = cd.clk->ops.clock_settime(cd.clk, ts); in pc_clock_settime() 402 static void pc_timer_gettime(struct k_itimer *kit, struct itimerspec *ts) in pc_timer_gettime() argument 411 cd.clk->ops.timer_gettime(cd.clk, kit, ts); in pc_timer_gettime() 417 struct itimerspec *ts, struct itimerspec *old) in pc_timer_settime() argument 428 err = cd.clk->ops.timer_settime(cd.clk, kit, flags, ts, old); in pc_timer_settime()
|
D | ntp.c | 532 static inline void process_adj_status(struct timex *txc, struct timespec *ts) in process_adj_status() argument 555 struct timespec *ts, in process_adjtimex_modes() argument 559 process_adj_status(txc, ts); in process_adjtimex_modes() 641 int __do_adjtimex(struct timex *txc, struct timespec *ts, s32 *time_tai) in __do_adjtimex() argument 658 process_adjtimex_modes(txc, ts, time_tai); in __do_adjtimex() 685 txc->time.tv_sec = ts->tv_sec; in __do_adjtimex() 686 txc->time.tv_usec = ts->tv_nsec; in __do_adjtimex() 708 static inline struct pps_normtime pps_normalize_ts(struct timespec ts) in pps_normalize_ts() argument 711 .sec = ts.tv_sec, in pps_normalize_ts() 712 .nsec = ts.tv_nsec in pps_normalize_ts()
|
D | timer_list.c | 169 (unsigned long long)(ts->x)) in print_cpu() 172 (unsigned long long)(ktime_to_ns(ts->x))) in print_cpu() 174 struct tick_sched *ts = tick_get_tick_sched(cpu); in print_cpu() local
|
/kernel/trace/ |
D | trace_stat.c | 33 struct tracer_stat *ts; member 53 static struct rb_node *release_next(struct tracer_stat *ts, in release_next() argument 72 if (ts->stat_release) in release_next() 73 ts->stat_release(snode->stat); in release_next() 85 node = release_next(session->ts, node); in __reset_stat_session() 157 struct tracer_stat *ts = session->ts; in stat_seq_init() local 166 if (!ts->stat_cmp) in stat_seq_init() 167 ts->stat_cmp = dummy_cmp; in stat_seq_init() 169 stat = ts->stat_start(ts); in stat_seq_init() 173 ret = insert_stat(root, stat, ts->stat_cmp); in stat_seq_init() [all …]
|
D | ring_buffer.c | 677 int cpu, u64 *ts) in ring_buffer_normalize_time_stamp() argument 680 *ts >>= DEBUG_SHIFT; in ring_buffer_normalize_time_stamp() 2271 struct buffer_page *tail_page, u64 ts) in rb_move_tail() argument 2356 ts = rb_time_stamp(buffer); in rb_move_tail() 2357 next_page->page->time_stamp = ts; in rb_move_tail() 2376 unsigned long length, u64 ts, in __rb_reserve_next() argument 2401 tail_page, ts); in __rb_reserve_next() 2416 tail_page->page->time_stamp = ts; in __rb_reserve_next() 2508 u64 ts, delta; in rb_reserve_next_event() local 2547 ts = rb_time_stamp(cpu_buffer->buffer); in rb_reserve_next_event() [all …]
|
D | ring_buffer_benchmark.c | 14 u64 ts; member 82 u64 ts; in read_event() local 84 event = ring_buffer_consume(buffer, cpu, &ts, NULL); in read_event()
|
D | trace_mmiotrace.c | 179 unsigned long long t = ns2usecs(iter->ts); in mmio_print_rw() 226 unsigned long long t = ns2usecs(iter->ts); in mmio_print_map() 262 unsigned long long t = ns2usecs(iter->ts); in mmio_print_mark()
|
D | trace_output.c | 662 unsigned long long abs_ts = iter->ts - iter->trace_buffer->time_start; 663 unsigned long long rel_ts = next_ts - iter->ts; 679 ns2usecs(iter->ts), 685 iter->ts, abs_ts, rel_ts); 734 t = ns2usecs(iter->ts); 739 return trace_seq_printf(s, " %12llu: ", iter->ts); 758 next_ts = iter->ts;
|
D | trace.c | 206 u64 ts; in ftrace_now() local 212 ts = ring_buffer_time_stamp(global_trace.trace_buffer.buffer, cpu); in ftrace_now() 213 ring_buffer_normalize_time_stamp(global_trace.trace_buffer.buffer, cpu, &ts); in ftrace_now() 215 return ts; in ftrace_now() 2069 peek_next_entry(struct trace_iterator *iter, int cpu, u64 *ts, in peek_next_entry() argument 2076 event = ring_buffer_iter_peek(buf_iter, ts); in peek_next_entry() 2078 event = ring_buffer_peek(iter->trace_buffer->buffer, cpu, ts, in peek_next_entry() 2097 u64 next_ts = 0, ts; in __find_next_entry() local 2121 ent = peek_next_entry(iter, cpu, &ts, &lost_events); in __find_next_entry() 2126 if (ent && (!next || ts < next_ts)) { in __find_next_entry() [all …]
|
D | blktrace.c | 1130 unsigned long long ts = iter->ts; in blk_log_action_classic() local 1131 unsigned long nsec_rem = do_div(ts, NSEC_PER_SEC); in blk_log_action_classic() 1132 unsigned secs = (unsigned long)ts; in blk_log_action_classic() 1387 .time = iter->ts, in blk_trace_synthesize_old_trace()
|
D | trace_functions_graph.c | 635 ret = print_graph_abs_time(iter->ts, s); in print_graph_irq() 906 ret = print_graph_abs_time(iter->ts, s); in print_graph_prologue()
|
/kernel/ |
D | delayacct.c | 66 struct timespec ts; in delayacct_end() local 71 ts = timespec_sub(*end, *start); in delayacct_end() 72 ns = timespec_to_ns(&ts); in delayacct_end() 108 struct timespec ts; in __delayacct_add_tsk() local 119 cputime_to_timespec(utime + stime, &ts); in __delayacct_add_tsk() 120 tmp += timespec_to_ns(&ts); in __delayacct_add_tsk() 125 cputime_to_timespec(utimescaled + stimescaled, &ts); in __delayacct_add_tsk() 126 tmp += timespec_to_ns(&ts); in __delayacct_add_tsk()
|
D | time.c | 358 void set_normalized_timespec(struct timespec *ts, time_t sec, s64 nsec) in set_normalized_timespec() argument 375 ts->tv_sec = sec; in set_normalized_timespec() 376 ts->tv_nsec = nsec; in set_normalized_timespec() 388 struct timespec ts; in ns_to_timespec() local 394 ts.tv_sec = div_s64_rem(nsec, NSEC_PER_SEC, &rem); in ns_to_timespec() 396 ts.tv_sec--; in ns_to_timespec() 399 ts.tv_nsec = rem; in ns_to_timespec() 401 return ts; in ns_to_timespec() 413 struct timespec ts = ns_to_timespec(nsec); in ns_to_timeval() local 416 tv.tv_sec = ts.tv_sec; in ns_to_timeval() [all …]
|
D | compat.c | 164 int get_compat_timespec(struct timespec *ts, const struct compat_timespec __user *cts) in get_compat_timespec() argument 167 __get_user(ts->tv_sec, &cts->tv_sec) || in get_compat_timespec() 168 __get_user(ts->tv_nsec, &cts->tv_nsec)) ? -EFAULT : 0; in get_compat_timespec() 172 int put_compat_timespec(const struct timespec *ts, struct compat_timespec __user *cts) in put_compat_timespec() argument 175 __put_user(ts->tv_sec, &cts->tv_sec) || in put_compat_timespec() 176 __put_user(ts->tv_nsec, &cts->tv_nsec)) ? -EFAULT : 0; in put_compat_timespec() 198 int compat_get_timespec(struct timespec *ts, const void __user *uts) in compat_get_timespec() argument 201 return copy_from_user(ts, uts, sizeof *ts) ? -EFAULT : 0; in compat_get_timespec() 203 return get_compat_timespec(ts, uts); in compat_get_timespec() 207 int compat_put_timespec(const struct timespec *ts, void __user *uts) in compat_put_timespec() argument [all …]
|
D | futex_compat.c | 178 struct timespec ts; in COMPAT_SYSCALL_DEFINE6() local 186 if (get_compat_timespec(&ts, utime)) in COMPAT_SYSCALL_DEFINE6() 188 if (!timespec_valid(&ts)) in COMPAT_SYSCALL_DEFINE6() 191 t = timespec_to_ktime(ts); in COMPAT_SYSCALL_DEFINE6()
|
D | tsacct.c | 34 struct timespec uptime, ts; in bacct_add_tsk() local 42 ts = timespec_sub(uptime, tsk->start_time); in bacct_add_tsk() 44 ac_etime = timespec_to_ns(&ts); in bacct_add_tsk() 47 stats->ac_btime = get_seconds() - ts.tv_sec; in bacct_add_tsk()
|
D | itimer.c | 134 struct timespec ts; in cputime_sub_ns() local 137 cputime_to_timespec(ct, &ts); in cputime_sub_ns() 138 cpu_ns = timespec_to_ns(&ts); in cputime_sub_ns()
|
D | rcutorture.c | 214 u64 ts = trace_clock_local(); in rcu_trace_clock_local() local 215 unsigned long __maybe_unused ts_rem = do_div(ts, NSEC_PER_USEC); in rcu_trace_clock_local() 216 return ts; in rcu_trace_clock_local() 1064 unsigned long long ts; in rcu_torture_timer() local 1068 ts = rcu_trace_clock_local(); in rcu_torture_timer() 1092 do_trace_rcu_torture_read(cur_ops->name, &p->rtort_rcu, ts, in rcu_torture_timer() 1123 unsigned long long ts; in rcu_torture_reader() local 1137 ts = rcu_trace_clock_local(); in rcu_torture_reader() 1160 ts, completed, completed_end); in rcu_torture_reader()
|
D | signal.c | 2812 const struct timespec *ts) in do_sigtimedwait() argument 2819 if (ts) { in do_sigtimedwait() 2820 if (!timespec_valid(ts)) in do_sigtimedwait() 2822 timeout = timespec_to_jiffies(ts); in do_sigtimedwait() 2827 if (ts->tv_sec || ts->tv_nsec) in do_sigtimedwait() 2878 struct timespec ts; in SYSCALL_DEFINE4() local 2890 if (copy_from_user(&ts, uts, sizeof(ts))) in SYSCALL_DEFINE4() 2894 ret = do_sigtimedwait(&these, &info, uts ? &ts : NULL); in SYSCALL_DEFINE4()
|
D | futex.c | 2821 struct timespec ts; in SYSCALL_DEFINE6() local 2829 if (copy_from_user(&ts, utime, sizeof(ts)) != 0) in SYSCALL_DEFINE6() 2831 if (!timespec_valid(&ts)) in SYSCALL_DEFINE6() 2834 t = timespec_to_ktime(ts); in SYSCALL_DEFINE6()
|
D | posix-cpu-timers.c | 1651 struct timespec ts; in init_posix_cpu_timers() local 1656 cputime_to_timespec(cputime_one_jiffy, &ts); in init_posix_cpu_timers() 1657 onecputick = ts.tv_nsec; in init_posix_cpu_timers() 1658 WARN_ON(ts.tv_sec != 0); in init_posix_cpu_timers()
|
D | printk.c | 875 static size_t print_time(u64 ts, char *buf) in print_time() argument 882 rem_nsec = do_div(ts, 1000000000); in print_time() 885 return snprintf(NULL, 0, "[%5lu.000000] ", (unsigned long)ts); in print_time() 888 (unsigned long)ts, rem_nsec / 1000); in print_time()
|
/kernel/power/ |
D | suspend.c | 378 struct timespec ts; in pm_suspend_marker() local 381 getnstimeofday(&ts); in pm_suspend_marker() 382 rtc_time_to_tm(ts.tv_sec, &tm); in pm_suspend_marker() 385 tm.tm_hour, tm.tm_min, tm.tm_sec, ts.tv_nsec); in pm_suspend_marker()
|