| /kernel/time/ |
| A D | tick-sched.c | 194 ts->flags |= flag; in tick_sched_flag_set() 201 ts->flags &= ~flag; in tick_sched_flag_clear() 273 ts->next_tick = 0; in tick_sched_handle() 734 ts->iowait_sleeptime = ktime_add(ts->iowait_sleeptime, delta); in tick_nohz_stop_idle() 736 ts->idle_sleeptime = ktime_add(ts->idle_sleeptime, delta); in tick_nohz_stop_idle() 805 return get_cpu_sleep_time_us(ts, &ts->idle_sleeptime, in get_cpu_idle_time_us() 831 return get_cpu_sleep_time_us(ts, &ts->iowait_sleeptime, in get_cpu_iowait_time_us() 839 hrtimer_set_expires(&ts->sched_timer, ts->last_tick); in tick_nohz_restart() 1044 ts->last_tick = hrtimer_get_expires(&ts->sched_timer); in tick_nohz_stop_tick() 1233 ts->idle_jiffies = ts->last_jiffies; in tick_nohz_idle_stop_tick() [all …]
|
| A D | time.c | 144 struct timespec64 ts; in SYSCALL_DEFINE2() local 228 struct timespec64 ts; in COMPAT_SYSCALL_DEFINE2() local 475 tv.tv_sec = ts.tv_sec; in ns_to_kernel_old_timeval() 512 ts->tv_sec = sec; in set_normalized_timespec64() 513 ts->tv_nsec = nsec; in set_normalized_timespec64() 530 ts.tv_nsec = rem; in ns_to_timespec64() 541 return ts; in ns_to_timespec64() 920 ret = copy_from_user(&ts, cts, sizeof(ts)); in __get_old_timespec32() 937 return copy_to_user(cts, &ts, sizeof(ts)) ? -EFAULT : 0; in __put_old_timespec32() 952 return copy_from_user(ts, uts, sizeof(*ts)) ? -EFAULT : 0; in get_old_timespec32() [all …]
|
| A D | timekeeping.c | 202 return ts; in tk_xtime() 211 return ts; in tk_xtime_coarse() 803 ts->tv_nsec = 0; in ktime_get_real_ts64() 1164 ts->sys_monoraw = ktime_sub_ns(ts->sys_monoraw, corr_raw); in adjust_historical_crosststamp() 1165 ts->sys_realtime = ktime_sub_ns(ts->sys_realtime, corr_real); in adjust_historical_crosststamp() 1178 if (ts >= start && ts <= end) in timestamp_in_interval() 1180 if (start > end && (ts >= start || ts <= end)) in timestamp_in_interval() 1457 add_device_randomness(ts, sizeof(*ts)); in do_settimeofday64() 1479 if (ts->tv_nsec < 0 || ts->tv_nsec >= NSEC_PER_SEC) in __timekeeping_inject_offset() 1741 ts->tv_sec = 0; in read_persistent_clock64() [all …]
|
| A D | posix-clock.c | 248 static int pc_clock_gettime(clockid_t id, struct timespec64 *ts) in pc_clock_gettime() argument 258 err = cd.clk->ops.clock_gettime(cd.clk, ts); in pc_clock_gettime() 267 static int pc_clock_getres(clockid_t id, struct timespec64 *ts) in pc_clock_getres() argument 277 err = cd.clk->ops.clock_getres(cd.clk, ts); in pc_clock_getres() 286 static int pc_clock_settime(clockid_t id, const struct timespec64 *ts) in pc_clock_settime() argument 291 if (!timespec64_valid_strict(ts)) in pc_clock_settime() 304 err = cd.clk->ops.clock_settime(cd.clk, ts); in pc_clock_settime()
|
| A D | test_udelay.c | 81 struct timespec64 ts; in udelay_test_show() local 83 ktime_get_ts64(&ts); in udelay_test_show() 85 loops_per_jiffy, (s64)ts.tv_sec, ts.tv_nsec); in udelay_test_show()
|
| A D | ntp.c | 770 int ntp_adjtimex(unsigned int tkid, struct __kernel_timex *txc, const struct timespec64 *ts, in ntp_adjtimex() argument 829 txc->time.tv_sec = ts->tv_sec; in ntp_adjtimex() 830 txc->time.tv_usec = ts->tv_nsec; in ntp_adjtimex() 832 txc->time.tv_usec = ts->tv_nsec / NSEC_PER_USEC; in ntp_adjtimex() 835 if (unlikely(ts->tv_sec >= ntpdata->ntp_next_leap_sec)) { in ntp_adjtimex() 846 if ((ntpdata->time_state == TIME_OOP) && (ts->tv_sec == ntpdata->ntp_next_leap_sec)) in ntp_adjtimex() 870 static inline struct pps_normtime pps_normalize_ts(struct timespec64 ts) in pps_normalize_ts() argument 873 .sec = ts.tv_sec, in pps_normalize_ts() 874 .nsec = ts.tv_nsec in pps_normalize_ts()
|
| A D | timer_list.c | 146 (unsigned long long)(ts->x)) in print_cpu() 149 (unsigned long long)(ktime_to_ns(ts->x))) in print_cpu() 151 SEQ_printf(m, " .%-15s: %d\n", #x, !!(ts->flags & (f))) in print_cpu() 154 struct tick_sched *ts = tick_get_tick_sched(cpu); in print_cpu() local
|
| A D | posix-timers.c | 1279 struct timespec64 ts; in SYSCALL_DEFINE2() local 1284 if (get_old_timespec32(&ts, tp)) in SYSCALL_DEFINE2() 1287 return kc->clock_set(which_clock, &ts); in SYSCALL_DEFINE2() 1294 struct timespec64 ts; in SYSCALL_DEFINE2() local 1300 err = kc->clock_get_timespec(which_clock, &ts); in SYSCALL_DEFINE2() 1302 if (!err && put_old_timespec32(&ts, tp)) in SYSCALL_DEFINE2() 1330 struct timespec64 ts; in SYSCALL_DEFINE2() local 1336 err = kc->clock_getres(which_clock, &ts); in SYSCALL_DEFINE2() 1337 if (!err && tp && put_old_timespec32(&ts, tp)) in SYSCALL_DEFINE2()
|
| A D | namespace.c | 354 static void show_offset(struct seq_file *m, int clockid, struct timespec64 *ts) in show_offset() argument 369 seq_printf(m, "%-10s %10lld %9ld\n", clock, ts->tv_sec, ts->tv_nsec); in show_offset()
|
| A D | ntp_internal.h | 11 extern int ntp_adjtimex(unsigned int tkid, struct __kernel_timex *txc, const struct timespec64 *ts,
|
| A D | hrtimer.c | 2072 int nanosleep_copyout(struct restart_block *restart, struct timespec64 *ts) in nanosleep_copyout() argument 2077 if (put_old_timespec32(ts, restart->nanosleep.compat_rmtp)) in nanosleep_copyout() 2082 if (put_timespec64(ts, restart->nanosleep.rmtp)) in nanosleep_copyout()
|
| /kernel/bpf/ |
| A D | rqspinlock.c | 220 u64 prev = ts->cur; in check_timeout() 222 if (!ts->timeout_end) { in check_timeout() 223 ts->cur = time; in check_timeout() 224 ts->timeout_end = time + ts->duration; in check_timeout() 228 if (time > ts->timeout_end) in check_timeout() 236 ts->cur = time; in check_timeout() 263 #define RES_INIT_TIMEOUT(ts) ({ (ts).spin = 0; }) argument 269 #define RES_RESET_TIMEOUT(ts, _duration) ({ (ts).timeout_end = 0; (ts).duration = _duration; }) argument 277 struct rqspinlock_timeout ts; in resilient_tas_spin_lock() local 280 RES_INIT_TIMEOUT(ts); in resilient_tas_spin_lock() [all …]
|
| /kernel/trace/ |
| A D | trace_stat.c | 34 struct tracer_stat *ts; member 52 if (session->ts->stat_release) in __reset_stat_session() 125 struct tracer_stat *ts = session->ts; in stat_seq_init() local 134 if (!ts->stat_cmp) in stat_seq_init() 135 ts->stat_cmp = dummy_cmp; in stat_seq_init() 137 stat = ts->stat_start(ts); in stat_seq_init() 149 stat = ts->stat_next(stat, i); in stat_seq_init() 179 if (session->ts->stat_headers) { in stat_seq_start() 320 if (node->ts == trace) in register_stat_tracer() 329 session->ts = trace; in register_stat_tracer() [all …]
|
| A D | ring_buffer.c | 324 u64 ts; in rb_event_time_stamp() local 330 return ts; in rb_event_time_stamp() 426 u64 ts; member 702 u64 ts; in ring_buffer_event_time_stamp() local 1092 u64 ts; in rb_time_stamp() local 1880 u64 ts; in rb_meta_validate_events() local 4312 ts = rb_fix_abs_ts(delta, ts); in dump_buffer_page() 4402 if ((full && ts > info->ts) || in check_buffer() 4532 info->ts = ts; in __rb_reserve_next() 5675 if (ts && !(*ts)) { in rb_buffer_peek() [all …]
|
| A D | ring_buffer_benchmark.c | 16 u64 ts; member 89 u64 ts; in read_event() local 91 event = ring_buffer_consume(buffer, cpu, &ts, NULL); in read_event()
|
| A D | trace_mmiotrace.c | 171 unsigned long long t = ns2usecs(iter->ts); in mmio_print_rw() 216 unsigned long long t = ns2usecs(iter->ts); in mmio_print_map() 250 unsigned long long t = ns2usecs(iter->ts); in mmio_print_mark()
|
| A D | trace_output.c | 574 unsigned long long abs_ts = iter->ts - iter->array_buffer->time_start; in lat_print_timestamp() 575 unsigned long long rel_ts = next_ts - iter->ts; in lat_print_timestamp() 591 ns2usecs(iter->ts), in lat_print_timestamp() 598 iter->ts, abs_ts, rel_ts); in lat_print_timestamp() 614 unsigned long long ts) in trace_print_time() argument 620 t = ns2usecs(ts); in trace_print_time() 625 trace_seq_printf(s, " %12llu", ts); in trace_print_time() 653 trace_print_time(s, iter, iter->ts); in trace_print_context() 669 next_ts = iter->ts; in trace_print_lat_context() 1828 iter->ts - FUNC_REPEATS_GET_DELTA_TS(field)); in trace_func_repeats_print()
|
| A D | trace.c | 894 u64 ts; in buffer_ftrace_now() local 903 return ts; in buffer_ftrace_now() 3571 u64 next_ts = 0, ts; in __find_next_entry() local 3603 next_ts = ts; in __find_next_entry() 3913 u64 ts; in tracing_iter_reset() local 4267 entry->pid, iter->cpu, iter->ts); in print_raw_fmt() 4294 SEQ_PUT_HEX_FIELD(s, iter->ts); in print_hex_fmt() 4323 SEQ_PUT_FIELD(s, iter->ts); in print_bin_fmt() 7900 u64 ts; member 8036 err->info.ts = local_clock(); in tracing_log_err() [all …]
|
| A D | blktrace.c | 1209 unsigned long long ts = iter->ts; in blk_log_action_classic() local 1210 unsigned long nsec_rem = do_div(ts, NSEC_PER_SEC); in blk_log_action_classic() 1211 unsigned secs = (unsigned long)ts; in blk_log_action_classic() 1488 .time = iter->ts, in blk_trace_synthesize_old_trace()
|
| /kernel/irq/ |
| A D | timings.c | 482 irqs->last_ts = ts; in irq_timings_store() 489 interval = ts - old_ts; in irq_timings_store() 542 u64 ts, next_evt = U64_MAX; in irq_timings_next_event() local 573 irq_timings_store(irq, this_cpu_ptr(s), ts); in irq_timings_next_event() 584 ts = __irq_timings_next_event(irqs, i, now); in irq_timings_next_event() 585 if (ts <= now) in irq_timings_next_event() 588 if (ts < next_evt) in irq_timings_next_event() 589 next_evt = ts; in irq_timings_next_event() 842 u64 ots = 0xDEAD, ts; in irq_timings_test_irqts() local 877 i, ts, ots, irq, oirq); in irq_timings_test_irqts() [all …]
|
| A D | internals.h | 367 static __always_inline void irq_timings_push(u64 ts, int irq) in irq_timings_push() argument 372 irq_timing_encode(ts, irq); in irq_timings_push()
|
| /kernel/futex/ |
| A D | syscalls.c | 149 if (!timespec64_valid(ts)) in futex_init_timeout() 152 *t = timespec64_to_ktime(*ts); in futex_init_timeout() 166 struct timespec64 ts; in SYSCALL_DEFINE6() local 171 if (get_timespec64(&ts, utime)) in SYSCALL_DEFINE6() 173 ret = futex_init_timeout(cmd, op, &ts, &t); in SYSCALL_DEFINE6() 231 struct timespec64 ts; in futex2_setup_timeout() local 246 if (get_timespec64(&ts, timeout)) in futex2_setup_timeout() 253 ret = futex_init_timeout(FUTEX_WAIT_BITSET, flag_init, &ts, &time); in futex2_setup_timeout() 498 struct timespec64 ts; in SYSCALL_DEFINE6() local 501 if (get_old_timespec32(&ts, utime)) in SYSCALL_DEFINE6() [all …]
|
| /kernel/rcu/ |
| A D | tree_stall.h | 331 struct task_struct *ts[8]; in rcu_print_task_stall() local 344 ts[i++] = t; in rcu_print_task_stall() 345 if (i >= ARRAY_SIZE(ts)) in rcu_print_task_stall() 350 t = ts[--i]; in rcu_print_task_stall()
|
| A D | rcutorture.c | 306 u64 ts = trace_clock_local(); in rcu_trace_clock_local() local 308 (void)do_div(ts, NSEC_PER_USEC); in rcu_trace_clock_local() 309 return ts; in rcu_trace_clock_local() 464 unsigned long long ts; in rcu_read_delay() local 473 ts = rcu_trace_clock_local(); in rcu_read_delay() 479 do_trace_rcu_torture_read(cur_ops->name, NULL, ts, in rcu_read_delay() 2254 unsigned long long ts; member 2280 rtorsp->ts = rcu_trace_clock_local(); in rcu_torture_one_read_start() 2318 rtorsp->ts, rtorsp->started, completed); in rcu_torture_one_read_end()
|
| /kernel/ |
| A D | signal.c | 3746 const struct timespec64 *ts) in do_sigtimedwait() argument 3754 if (ts) { in do_sigtimedwait() 3755 if (!timespec64_valid(ts)) in do_sigtimedwait() 3757 timeout = timespec64_to_ktime(*ts); in do_sigtimedwait() 3810 struct timespec64 ts; in SYSCALL_DEFINE4() local 3822 if (get_timespec64(&ts, uts)) in SYSCALL_DEFINE4() 3826 ret = do_sigtimedwait(&these, &info, uts ? &ts : NULL); in SYSCALL_DEFINE4() 3843 struct timespec64 ts; in SYSCALL_DEFINE4() local 3854 if (get_old_timespec32(&ts, uts)) in SYSCALL_DEFINE4() 3858 ret = do_sigtimedwait(&these, &info, uts ? &ts : NULL); in SYSCALL_DEFINE4()
|