Home
last modified time | relevance | path

Searched refs:ts (Results 1 – 25 of 25) sorted by relevance

/kernel/time/
Dtick-sched.c134 static void tick_sched_handle(struct tick_sched *ts, struct pt_regs *regs) in tick_sched_handle() argument
145 if (ts->tick_stopped) { in tick_sched_handle()
148 ts->idle_jiffies++; in tick_sched_handle()
200 static void tick_nohz_restart_sched_tick(struct tick_sched *ts, ktime_t now);
208 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); in __tick_nohz_full_check() local
211 if (ts->tick_stopped && !is_idle_task(current)) { in __tick_nohz_full_check()
213 tick_nohz_restart_sched_tick(ts, ktime_get()); in __tick_nohz_full_check()
453 update_ts_time_stats(int cpu, struct tick_sched *ts, ktime_t now, u64 *last_update_time) in update_ts_time_stats() argument
457 if (ts->idle_active) { in update_ts_time_stats()
458 delta = ktime_sub(now, ts->idle_entrytime); in update_ts_time_stats()
[all …]
Dtime.c363 void set_normalized_timespec(struct timespec *ts, time_t sec, s64 nsec) in set_normalized_timespec() argument
380 ts->tv_sec = sec; in set_normalized_timespec()
381 ts->tv_nsec = nsec; in set_normalized_timespec()
393 struct timespec ts; in ns_to_timespec() local
399 ts.tv_sec = div_s64_rem(nsec, NSEC_PER_SEC, &rem); in ns_to_timespec()
401 ts.tv_sec--; in ns_to_timespec()
404 ts.tv_nsec = rem; in ns_to_timespec()
406 return ts; in ns_to_timespec()
418 struct timespec ts = ns_to_timespec(nsec); in ns_to_timeval() local
421 tv.tv_sec = ts.tv_sec; in ns_to_timeval()
[all …]
Dtimekeeping.c83 struct timespec64 ts; in tk_xtime() local
85 ts.tv_sec = tk->xtime_sec; in tk_xtime()
86 ts.tv_nsec = (long)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in tk_xtime()
87 return ts; in tk_xtime()
90 static void tk_set_xtime(struct timekeeper *tk, const struct timespec64 *ts) in tk_set_xtime() argument
92 tk->xtime_sec = ts->tv_sec; in tk_set_xtime()
93 tk->tkr_mono.xtime_nsec = (u64)ts->tv_nsec << tk->tkr_mono.shift; in tk_set_xtime()
96 static void tk_xtime_add(struct timekeeper *tk, const struct timespec64 *ts) in tk_xtime_add() argument
98 tk->xtime_sec += ts->tv_sec; in tk_xtime_add()
99 tk->tkr_mono.xtime_nsec += (u64)ts->tv_nsec << tk->tkr_mono.shift; in tk_xtime_add()
[all …]
Dposix-clock.c300 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()
Dntp.c535 static inline void process_adj_status(struct timex *txc, struct timespec64 *ts) in process_adj_status() argument
558 struct timespec64 *ts, in process_adjtimex_modes() argument
562 process_adj_status(txc, ts); in process_adjtimex_modes()
655 int __do_adjtimex(struct timex *txc, struct timespec64 *ts, s32 *time_tai) in __do_adjtimex() argument
672 process_adjtimex_modes(txc, ts, time_tai); in __do_adjtimex()
699 txc->time.tv_sec = (time_t)ts->tv_sec; in __do_adjtimex()
700 txc->time.tv_usec = ts->tv_nsec; in __do_adjtimex()
720 static inline struct pps_normtime pps_normalize_ts(struct timespec ts) in pps_normalize_ts() argument
723 .sec = ts.tv_sec, in pps_normalize_ts()
724 .nsec = ts.tv_nsec in pps_normalize_ts()
Dudelay_test.c90 struct timespec ts; in udelay_test_show() local
92 ktime_get_ts(&ts); in udelay_test_show()
94 loops_per_jiffy, ts.tv_sec, ts.tv_nsec); in udelay_test_show()
Dtimekeeping.h15 extern int timekeeping_inject_offset(struct timespec *ts);
18 extern void timekeeping_clocktai(struct timespec *ts);
Ditimer.c134 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()
Dtimer_list.c169 (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
Dposix-cpu-timers.c1465 struct timespec ts; in init_posix_cpu_timers() local
1470 cputime_to_timespec(cputime_one_jiffy, &ts); in init_posix_cpu_timers()
1471 onecputick = ts.tv_nsec; in init_posix_cpu_timers()
1472 WARN_ON(ts.tv_sec != 0); in init_posix_cpu_timers()
/kernel/trace/
Dtrace_stat.c33 struct tracer_stat *ts; member
51 if (session->ts->stat_release) in __reset_stat_session()
52 session->ts->stat_release(snode->stat); in __reset_stat_session()
126 struct tracer_stat *ts = session->ts; in stat_seq_init() local
135 if (!ts->stat_cmp) in stat_seq_init()
136 ts->stat_cmp = dummy_cmp; in stat_seq_init()
138 stat = ts->stat_start(ts); in stat_seq_init()
142 ret = insert_stat(root, stat, ts->stat_cmp); in stat_seq_init()
150 stat = ts->stat_next(stat, i); in stat_seq_init()
156 ret = insert_stat(root, stat, ts->stat_cmp); in stat_seq_init()
[all …]
Dring_buffer.c740 int cpu, u64 *ts) in ring_buffer_normalize_time_stamp() argument
743 *ts >>= DEBUG_SHIFT; in ring_buffer_normalize_time_stamp()
2324 struct buffer_page *tail_page, u64 ts) in rb_move_tail() argument
2409 ts = rb_time_stamp(buffer); in rb_move_tail()
2410 next_page->page->time_stamp = ts; in rb_move_tail()
2429 unsigned long length, u64 ts, in __rb_reserve_next() argument
2461 tail_page, ts); in __rb_reserve_next()
2476 tail_page->page->time_stamp = ts; in __rb_reserve_next()
2568 u64 ts, delta; in rb_reserve_next_event() local
2607 ts = rb_time_stamp(cpu_buffer->buffer); in rb_reserve_next_event()
[all …]
Dring_buffer_benchmark.c14 u64 ts; member
82 u64 ts; in read_event() local
84 event = ring_buffer_consume(buffer, cpu, &ts, NULL); in read_event()
Dtrace_mmiotrace.c179 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()
Dtrace_output.c481 unsigned long long abs_ts = iter->ts - iter->trace_buffer->time_start; in lat_print_timestamp()
482 unsigned long long rel_ts = next_ts - iter->ts; in lat_print_timestamp()
498 ns2usecs(iter->ts), in lat_print_timestamp()
504 iter->ts, abs_ts, rel_ts); in lat_print_timestamp()
553 t = ns2usecs(iter->ts); in trace_print_context()
558 return trace_seq_printf(s, " %12llu: ", iter->ts); in trace_print_context()
577 next_ts = iter->ts; in trace_print_lat_context()
Dtrace.c282 u64 ts; in buffer_ftrace_now() local
288 ts = ring_buffer_time_stamp(buf->buffer, cpu); in buffer_ftrace_now()
289 ring_buffer_normalize_time_stamp(buf->buffer, cpu, &ts); in buffer_ftrace_now()
291 return ts; in buffer_ftrace_now()
2287 peek_next_entry(struct trace_iterator *iter, int cpu, u64 *ts, in peek_next_entry() argument
2294 event = ring_buffer_iter_peek(buf_iter, ts); in peek_next_entry()
2296 event = ring_buffer_peek(iter->trace_buffer->buffer, cpu, ts, in peek_next_entry()
2315 u64 next_ts = 0, ts; in __find_next_entry() local
2339 ent = peek_next_entry(iter, cpu, &ts, &lost_events); in __find_next_entry()
2344 if (ent && (!next || ts < next_ts)) { in __find_next_entry()
[all …]
Dblktrace.c1150 unsigned long long ts = iter->ts; in blk_log_action_classic() local
1151 unsigned long nsec_rem = do_div(ts, NSEC_PER_SEC); in blk_log_action_classic()
1152 unsigned secs = (unsigned long)ts; in blk_log_action_classic()
1407 .time = iter->ts, in blk_trace_synthesize_old_trace()
Dtrace_functions_graph.c714 ret = print_graph_abs_time(iter->ts, s); in print_graph_irq()
995 ret = print_graph_abs_time(iter->ts, s); in print_graph_prologue()
/kernel/
Dcompat.c143 static int __compat_get_timespec(struct timespec *ts, const struct compat_timespec __user *cts) in __compat_get_timespec() argument
146 __get_user(ts->tv_sec, &cts->tv_sec) || in __compat_get_timespec()
147 __get_user(ts->tv_nsec, &cts->tv_nsec)) ? -EFAULT : 0; in __compat_get_timespec()
150 static int __compat_put_timespec(const struct timespec *ts, struct compat_timespec __user *cts) in __compat_put_timespec() argument
153 __put_user(ts->tv_sec, &cts->tv_sec) || in __compat_put_timespec()
154 __put_user(ts->tv_nsec, &cts->tv_nsec)) ? -EFAULT : 0; in __compat_put_timespec()
175 int compat_get_timespec(struct timespec *ts, const void __user *uts) in compat_get_timespec() argument
178 return copy_from_user(ts, uts, sizeof(*ts)) ? -EFAULT : 0; in compat_get_timespec()
180 return __compat_get_timespec(ts, uts); in compat_get_timespec()
184 int compat_put_timespec(const struct timespec *ts, void __user *uts) in compat_put_timespec() argument
[all …]
Dfutex_compat.c178 struct timespec ts; in COMPAT_SYSCALL_DEFINE6() local
186 if (compat_get_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()
Dsignal.c2800 const struct timespec *ts) in do_sigtimedwait() argument
2807 if (ts) { in do_sigtimedwait()
2808 if (!timespec_valid(ts)) in do_sigtimedwait()
2810 timeout = timespec_to_jiffies(ts); in do_sigtimedwait()
2815 if (ts->tv_sec || ts->tv_nsec) in do_sigtimedwait()
2866 struct timespec ts; in SYSCALL_DEFINE4() local
2878 if (copy_from_user(&ts, uts, sizeof(ts))) in SYSCALL_DEFINE4()
2882 ret = do_sigtimedwait(&these, &info, uts ? &ts : NULL); in SYSCALL_DEFINE4()
Dfutex.c3007 struct timespec ts; in SYSCALL_DEFINE6() local
3015 if (copy_from_user(&ts, utime, sizeof(ts)) != 0) in SYSCALL_DEFINE6()
3017 if (!timespec_valid(&ts)) in SYSCALL_DEFINE6()
3020 t = timespec_to_ktime(ts); in SYSCALL_DEFINE6()
/kernel/power/
Dsuspend.c527 struct timespec ts; in pm_suspend_marker() local
530 getnstimeofday(&ts); in pm_suspend_marker()
531 time_to_tm(ts.tv_sec, 0, &tm); in pm_suspend_marker()
534 tm.tm_hour, tm.tm_min, tm.tm_sec, ts.tv_nsec); in pm_suspend_marker()
/kernel/rcu/
Drcutorture.c184 u64 ts = trace_clock_local(); in rcu_trace_clock_local() local
185 unsigned long __maybe_unused ts_rem = do_div(ts, NSEC_PER_USEC); in rcu_trace_clock_local()
186 return ts; in rcu_trace_clock_local()
1023 unsigned long long ts; in rcu_torture_timer() local
1027 ts = rcu_trace_clock_local(); in rcu_torture_timer()
1051 do_trace_rcu_torture_read(cur_ops->name, &p->rtort_rcu, ts, in rcu_torture_timer()
1082 unsigned long long ts; in rcu_torture_reader() local
1096 ts = rcu_trace_clock_local(); in rcu_torture_reader()
1119 ts, completed, completed_end); in rcu_torture_reader()
/kernel/printk/
Dprintk.c1007 static size_t print_time(u64 ts, char *buf) in print_time() argument
1014 rem_nsec = do_div(ts, 1000000000); in print_time()
1017 return snprintf(NULL, 0, "[%5lu.000000] ", (unsigned long)ts); in print_time()
1020 (unsigned long)ts, rem_nsec / 1000); in print_time()