| /kernel/linux/linux-6.6/include/trace/events/ |
| D | iocost.h | 16 TP_PROTO(struct ioc_gq *iocg, const char *path, struct ioc_now *now, 19 TP_ARGS(iocg, path, now, last_period, cur_period, vtime), 24 __field(u64, now) 39 __entry->now = now->now; 40 __entry->vnow = now->vnow; 51 TP_printk("[%s:%s] now=%llu:%llu vrate=%llu " 55 __entry->now, __entry->vnow, __entry->vrate, 63 TP_PROTO(struct ioc_gq *iocg, const char *path, struct ioc_now *now, 66 TP_ARGS(iocg, path, now, last_period, cur_period, vtime) 70 TP_PROTO(struct ioc_gq *iocg, const char *path, struct ioc_now *now, [all …]
|
| D | alarmtimer.h | 47 TP_PROTO(struct alarm *alarm, ktime_t now), 49 TP_ARGS(alarm, now), 55 __field(s64, now) 62 __entry->now = now; 65 TP_printk("alarmtimer:%p type:%s expires:%llu now:%llu", 69 __entry->now 75 TP_PROTO(struct alarm *alarm, ktime_t now), 77 TP_ARGS(alarm, now) 82 TP_PROTO(struct alarm *alarm, ktime_t now), 84 TP_ARGS(alarm, now) [all …]
|
| D | timer.h | 65 __field( unsigned long, now ) 73 __entry->now = jiffies; 79 (long)__entry->expires - __entry->now, 100 __field( unsigned long, now ) 107 __entry->now = jiffies; 112 TP_printk("timer=%p function=%ps now=%lu baseclk=%lu", 113 __entry->timer, __entry->function, __entry->now, 234 * @now: pointer to variable which contains current time of the 241 TP_PROTO(struct hrtimer *hrtimer, ktime_t *now), 243 TP_ARGS(hrtimer, now), [all …]
|
| /kernel/linux/linux-5.10/include/trace/events/ |
| D | iocost.h | 16 TP_PROTO(struct ioc_gq *iocg, const char *path, struct ioc_now *now, 19 TP_ARGS(iocg, path, now, last_period, cur_period, vtime), 24 __field(u64, now) 39 __entry->now = now->now; 40 __entry->vnow = now->vnow; 41 __entry->vrate = now->vrate; 51 TP_printk("[%s:%s] now=%llu:%llu vrate=%llu " 55 __entry->now, __entry->vnow, __entry->vrate, 64 TP_PROTO(struct ioc_gq *iocg, const char *path, struct ioc_now *now, 68 TP_ARGS(iocg, path, now, old_inuse, new_inuse, [all …]
|
| D | alarmtimer.h | 47 TP_PROTO(struct alarm *alarm, ktime_t now), 49 TP_ARGS(alarm, now), 55 __field(s64, now) 62 __entry->now = now; 65 TP_printk("alarmtimer:%p type:%s expires:%llu now:%llu", 69 __entry->now 75 TP_PROTO(struct alarm *alarm, ktime_t now), 77 TP_ARGS(alarm, now) 82 TP_PROTO(struct alarm *alarm, ktime_t now), 84 TP_ARGS(alarm, now) [all …]
|
| D | timer.h | 64 __field( unsigned long, now ) 72 __entry->now = jiffies; 78 (long)__entry->expires - __entry->now, 98 __field( unsigned long, now ) 105 __entry->now = jiffies; 110 TP_printk("timer=%p function=%ps now=%lu baseclk=%lu", 111 __entry->timer, __entry->function, __entry->now, 231 * @now: pointer to variable which contains current time of the 238 TP_PROTO(struct hrtimer *hrtimer, ktime_t *now), 240 TP_ARGS(hrtimer, now), [all …]
|
| /kernel/linux/linux-5.10/net/rxrpc/ |
| D | call_event.c | 31 unsigned long now = jiffies; in rxrpc_propose_ping() local 32 unsigned long ping_at = now + rxrpc_idle_ack_delay; in rxrpc_propose_ping() 36 rxrpc_reduce_call_timer(call, ping_at, now, in rxrpc_propose_ping() 112 unsigned long now = jiffies, ack_at; in __rxrpc_propose_ACK() local 120 ack_at += now; in __rxrpc_propose_ACK() 123 rxrpc_reduce_call_timer(call, ack_at, now, in __rxrpc_propose_ACK() 162 ktime_t now, max_age, oldest, ack_ts; in rxrpc_resend() local 168 now = ktime_get_real(); in rxrpc_resend() 169 max_age = ktime_sub_us(now, jiffies_to_usecs(call->peer->rto_j)); in rxrpc_resend() 184 oldest = now; in rxrpc_resend() [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/timens/ |
| D | vfork_exec.c | 24 struct timespec *now; member 30 struct timespec *now = args->now, tst; in tcheck() local 35 if (labs(tst.tv_sec - now->tv_sec) > 5) { in tcheck() 37 args->tst_name, tst.tv_sec, now->tv_sec); in tcheck() 44 static int check_in_thread(char *tst_name, struct timespec *now) in check_in_thread() argument 48 .now = now, in check_in_thread() 60 static int check(char *tst_name, struct timespec *now) in check() argument 67 if (labs(tst.tv_sec - now->tv_sec) > 5) in check() 69 tst_name, tst.tv_sec, now->tv_sec); in check() 71 if (check_in_thread(tst_name, now)) in check() [all …]
|
| D | exec.c | 23 struct timespec now, tst; in main() local 28 if (sscanf(argv[1], "%ld", &now.tv_sec) != 1) in main() 33 if (labs(tst.tv_sec - now.tv_sec) > 5) in main() 34 return pr_fail("%ld %ld\n", now.tv_sec, tst.tv_sec); in main() 43 clock_gettime(CLOCK_MONOTONIC, &now); in main() 53 if (labs(tst.tv_sec - now.tv_sec) > 5) in main() 55 now.tv_sec, tst.tv_sec); in main() 73 if (labs(tst.tv_sec - now.tv_sec - OFFSET) > 5) in main() 75 now.tv_sec + OFFSET, tst.tv_sec); in main() 79 snprintf(now_str, sizeof(now_str), "%ld", now.tv_sec + OFFSET); in main()
|
| /kernel/linux/linux-6.6/net/rxrpc/ |
| D | call_event.c | 26 unsigned long now = jiffies; in rxrpc_propose_ping() local 27 unsigned long ping_at = now + rxrpc_idle_ack_delay; in rxrpc_propose_ping() 31 rxrpc_reduce_call_timer(call, ping_at, now, in rxrpc_propose_ping() 44 unsigned long now = jiffies, ack_at; in rxrpc_propose_delay_ACK() local 54 ack_at += now; in rxrpc_propose_delay_ACK() 57 rxrpc_reduce_call_timer(call, ack_at, now, in rxrpc_propose_delay_ACK() 119 ktime_t now, max_age, oldest, ack_ts; in rxrpc_resend() local 126 now = ktime_get_real(); in rxrpc_resend() 127 max_age = ktime_sub_us(now, jiffies_to_usecs(call->peer->rto_j)); in rxrpc_resend() 128 oldest = now; in rxrpc_resend() [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/timens/ |
| D | exec.c | 23 struct timespec now, tst; in main() local 28 if (sscanf(argv[1], "%ld", &now.tv_sec) != 1) in main() 33 if (abs(tst.tv_sec - now.tv_sec) > 5) in main() 34 return pr_fail("%ld %ld\n", now.tv_sec, tst.tv_sec); in main() 43 clock_gettime(CLOCK_MONOTONIC, &now); in main() 53 if (abs(tst.tv_sec - now.tv_sec) > 5) in main() 55 now.tv_sec, tst.tv_sec); in main() 73 if (abs(tst.tv_sec - now.tv_sec - OFFSET) > 5) in main() 75 now.tv_sec + OFFSET, tst.tv_sec); in main() 79 snprintf(now_str, sizeof(now_str), "%ld", now.tv_sec + OFFSET); in main()
|
| /kernel/linux/linux-5.10/block/ |
| D | blk-iocost.c | 564 u64 now; member 955 static void ioc_refresh_vrate(struct ioc *ioc, struct ioc_now *now) in ioc_refresh_vrate() argument 957 s64 pleft = ioc->period_at + ioc->period_us - now->now; in ioc_refresh_vrate() 986 static void ioc_now(struct ioc *ioc, struct ioc_now *now) in ioc_now() argument 990 now->now_ns = ktime_get(); in ioc_now() 991 now->now = ktime_to_us(now->now_ns); in ioc_now() 992 now->vrate = atomic64_read(&ioc->vtime_rate); in ioc_now() 1004 now->vnow = ioc->period_at_vtime + in ioc_now() 1005 (now->now - ioc->period_at) * now->vrate; in ioc_now() 1009 static void ioc_start_period(struct ioc *ioc, struct ioc_now *now) in ioc_start_period() argument [all …]
|
| /kernel/linux/linux-6.6/block/ |
| D | blk-iocost.c | 561 u64 now; member 963 static void ioc_refresh_vrate(struct ioc *ioc, struct ioc_now *now) in ioc_refresh_vrate() argument 965 s64 pleft = ioc->period_at + ioc->period_us - now->now; in ioc_refresh_vrate() 1042 static void ioc_now(struct ioc *ioc, struct ioc_now *now) in ioc_now() argument 1047 now->now_ns = ktime_get(); in ioc_now() 1048 now->now = ktime_to_us(now->now_ns); in ioc_now() 1061 now->vnow = ioc->period_at_vtime + in ioc_now() 1062 (now->now - ioc->period_at) * vrate; in ioc_now() 1066 static void ioc_start_period(struct ioc *ioc, struct ioc_now *now) in ioc_start_period() argument 1071 ioc->period_at = now->now; in ioc_start_period() [all …]
|
| /kernel/linux/linux-6.6/kernel/time/ |
| D | timer_list.c | 23 u64 now; member 47 int idx, u64 now) in print_timer() argument 55 (long long)(ktime_to_ns(hrtimer_get_softexpires(timer)) - now), in print_timer() 56 (long long)(ktime_to_ns(hrtimer_get_expires(timer)) - now)); in print_timer() 61 u64 now) in print_active_timers() argument 91 print_timer(m, timer, &tmp, i, now); in print_active_timers() 99 print_base(struct seq_file *m, struct hrtimer_clock_base *base, u64 now) in print_base() argument 112 print_active_timers(m, base, now + ktime_to_ns(base->offset)); in print_base() 115 static void print_cpu(struct seq_file *m, int cpu, u64 now) in print_cpu() argument 123 print_base(m, cpu_base->clock_base + i, now); in print_cpu() [all …]
|
| D | tick-sched.c | 57 static void tick_do_update_jiffies64(ktime_t now) in tick_do_update_jiffies64() argument 72 if (ktime_before(now, smp_load_acquire(&tick_next_period))) in tick_do_update_jiffies64() 86 if (ktime_before(now, nextp)) in tick_do_update_jiffies64() 96 if (ktime_before(now, tick_next_period)) { in tick_do_update_jiffies64() 103 delta = ktime_sub(now, tick_next_period); in tick_do_update_jiffies64() 185 static void tick_sched_do_timer(struct tick_sched *ts, ktime_t now) in tick_sched_do_timer() argument 210 tick_do_update_jiffies64(now); in tick_sched_do_timer() 221 tick_do_update_jiffies64(now); in tick_sched_do_timer() 648 static void tick_nohz_update_jiffies(ktime_t now) in tick_nohz_update_jiffies() argument 652 __this_cpu_write(tick_cpu_sched.idle_waketime, now); in tick_nohz_update_jiffies() [all …]
|
| /kernel/linux/linux-6.6/arch/x86/kernel/ |
| D | rtc.c | 36 int mach_set_cmos_time(const struct timespec64 *now) in mach_set_cmos_time() argument 38 unsigned long long nowtime = now->tv_sec; in mach_set_cmos_time() 57 void mach_get_cmos_time(struct timespec64 *now) in mach_get_cmos_time() argument 66 now->tv_sec = now->tv_nsec = 0; in mach_get_cmos_time() 72 now->tv_sec = now->tv_nsec = 0; in mach_get_cmos_time() 76 now->tv_sec = rtc_tm_to_time64(&tm); in mach_get_cmos_time() 77 now->tv_nsec = 0; in mach_get_cmos_time() 103 int update_persistent_clock64(struct timespec64 now) in update_persistent_clock64() argument 105 return x86_platform.set_wallclock(&now); in update_persistent_clock64()
|
| /kernel/linux/linux-5.10/tools/power/cpupower/bench/ |
| D | benchmark.c | 35 long long now, then; in calculate_timespace() local 44 now = get_time(); in calculate_timespace() 48 timed = (unsigned int)(then - now); in calculate_timespace() 55 now = get_time(); in calculate_timespace() 59 timed = (unsigned int)(then - now); in calculate_timespace() 81 long long now, then; in start_benchmark() local 126 now = get_time(); in start_benchmark() 130 performance_time += then - now - sleep_time; in start_benchmark() 135 (long)(then - now), sleep_time, in start_benchmark() 152 now = get_time(); in start_benchmark() [all …]
|
| /kernel/linux/linux-6.6/tools/power/cpupower/bench/ |
| D | benchmark.c | 35 long long now, then; in calculate_timespace() local 44 now = get_time(); in calculate_timespace() 48 timed = (unsigned int)(then - now); in calculate_timespace() 55 now = get_time(); in calculate_timespace() 59 timed = (unsigned int)(then - now); in calculate_timespace() 81 long long now, then; in start_benchmark() local 126 now = get_time(); in start_benchmark() 130 performance_time += then - now - sleep_time; in start_benchmark() 135 (long)(then - now), sleep_time, in start_benchmark() 152 now = get_time(); in start_benchmark() [all …]
|
| /kernel/linux/linux-5.10/arch/x86/events/ |
| D | msr.c | 219 u64 now; in msr_read_counter() local 222 rdmsrl(event->hw.event_base, now); in msr_read_counter() 224 now = rdtsc_ordered(); in msr_read_counter() 226 return now; in msr_read_counter() 231 u64 prev, now; in msr_event_update() local 237 now = msr_read_counter(event); in msr_event_update() 239 if (local64_cmpxchg(&event->hw.prev_count, prev, now) != prev) in msr_event_update() 242 delta = now - prev; in msr_event_update() 248 now = now & (1ULL << 31) ? (now >> 16) & 0x3f : -1; in msr_event_update() 249 local64_set(&event->count, now); in msr_event_update() [all …]
|
| /kernel/linux/linux-6.6/arch/x86/events/ |
| D | msr.c | 231 u64 now; in msr_read_counter() local 234 rdmsrl(event->hw.event_base, now); in msr_read_counter() 236 now = rdtsc_ordered(); in msr_read_counter() 238 return now; in msr_read_counter() 243 u64 prev, now; in msr_event_update() local 249 now = msr_read_counter(event); in msr_event_update() 250 } while (!local64_try_cmpxchg(&event->hw.prev_count, &prev, now)); in msr_event_update() 252 delta = now - prev; in msr_event_update() 258 now = now & (1ULL << 31) ? (now >> 16) & 0x3f : -1; in msr_event_update() 259 local64_set(&event->count, now); in msr_event_update() [all …]
|
| /kernel/linux/linux-5.10/drivers/block/drbd/ |
| D | drbd_debugfs.c | 96 static void seq_print_one_request(struct seq_file *m, struct drbd_request *req, unsigned long now) in seq_print_one_request() argument 108 seq_printf(m, "\t%d", jiffies_to_msecs(now - req->start_jif)); in seq_print_one_request() 109 seq_print_age_or_dash(m, s & RQ_IN_ACT_LOG, now - req->in_actlog_jif); in seq_print_one_request() 110 seq_print_age_or_dash(m, s & RQ_LOCAL_PENDING, now - req->pre_submit_jif); in seq_print_one_request() 113 seq_print_age_or_dash(m, s & RQ_NET_SENT, now - req->pre_send_jif); in seq_print_one_request() 114 seq_print_age_or_dash(m, (s & RQ_NET_SENT) && !(s & RQ_NET_PENDING), now - req->acked_jif); in seq_print_one_request() 115 seq_print_age_or_dash(m, s & RQ_NET_DONE, now - req->net_done_jif); in seq_print_one_request() 122 static void seq_print_minor_vnr_req(struct seq_file *m, struct drbd_request *req, unsigned long now) in seq_print_minor_vnr_req() argument 125 seq_print_one_request(m, req, now); in seq_print_minor_vnr_req() 128 …int_resource_pending_meta_io(struct seq_file *m, struct drbd_resource *resource, unsigned long now) in seq_print_resource_pending_meta_io() argument [all …]
|
| /kernel/linux/linux-6.6/drivers/block/drbd/ |
| D | drbd_debugfs.c | 96 static void seq_print_one_request(struct seq_file *m, struct drbd_request *req, unsigned long now) in seq_print_one_request() argument 108 seq_printf(m, "\t%d", jiffies_to_msecs(now - req->start_jif)); in seq_print_one_request() 109 seq_print_age_or_dash(m, s & RQ_IN_ACT_LOG, now - req->in_actlog_jif); in seq_print_one_request() 110 seq_print_age_or_dash(m, s & RQ_LOCAL_PENDING, now - req->pre_submit_jif); in seq_print_one_request() 113 seq_print_age_or_dash(m, s & RQ_NET_SENT, now - req->pre_send_jif); in seq_print_one_request() 114 seq_print_age_or_dash(m, (s & RQ_NET_SENT) && !(s & RQ_NET_PENDING), now - req->acked_jif); in seq_print_one_request() 115 seq_print_age_or_dash(m, s & RQ_NET_DONE, now - req->net_done_jif); in seq_print_one_request() 122 static void seq_print_minor_vnr_req(struct seq_file *m, struct drbd_request *req, unsigned long now) in seq_print_minor_vnr_req() argument 125 seq_print_one_request(m, req, now); in seq_print_minor_vnr_req() 128 …int_resource_pending_meta_io(struct seq_file *m, struct drbd_resource *resource, unsigned long now) in seq_print_resource_pending_meta_io() argument [all …]
|
| /kernel/linux/linux-5.10/kernel/time/ |
| D | tick-sched.c | 54 static void tick_do_update_jiffies64(ktime_t now) in tick_do_update_jiffies64() argument 82 if (ktime_before(now, READ_ONCE(tick_next_period))) in tick_do_update_jiffies64() 87 if (ktime_before(now, tick_next_period)) { in tick_do_update_jiffies64() 94 delta = ktime_sub(now, tick_next_period); in tick_do_update_jiffies64() 153 static void tick_sched_do_timer(struct tick_sched *ts, ktime_t now) in tick_sched_do_timer() argument 178 tick_do_update_jiffies64(now); in tick_sched_do_timer() 189 tick_do_update_jiffies64(now); in tick_sched_do_timer() 582 static void tick_nohz_update_jiffies(ktime_t now) in tick_nohz_update_jiffies() argument 586 __this_cpu_write(tick_cpu_sched.idle_waketime, now); in tick_nohz_update_jiffies() 589 tick_do_update_jiffies64(now); in tick_nohz_update_jiffies() [all …]
|
| D | timer_list.c | 23 u64 now; member 57 int idx, u64 now) in print_timer() argument 68 (long long)(ktime_to_ns(hrtimer_get_softexpires(timer)) - now), in print_timer() 69 (long long)(ktime_to_ns(hrtimer_get_expires(timer)) - now)); in print_timer() 74 u64 now) in print_active_timers() argument 104 print_timer(m, timer, &tmp, i, now); in print_active_timers() 112 print_base(struct seq_file *m, struct hrtimer_clock_base *base, u64 now) in print_base() argument 127 print_active_timers(m, base, now + ktime_to_ns(base->offset)); in print_base() 130 static void print_cpu(struct seq_file *m, int cpu, u64 now) in print_cpu() argument 138 print_base(m, cpu_base->clock_base + i, now); in print_cpu() [all …]
|
| /kernel/linux/linux-5.10/include/net/ |
| D | codel_impl.h | 108 codel_time_t now) in codel_should_drop() argument 119 vars->ldelay = now - skb_time_func(skb); in codel_should_drop() 135 vars->first_above_time = now + params->interval; in codel_should_drop() 136 } else if (codel_time_after(now, vars->first_above_time)) { in codel_should_drop() 153 codel_time_t now; in codel_dequeue() local 160 now = codel_get_time(); in codel_dequeue() 162 skb_len_func, skb_time_func, backlog, now); in codel_dequeue() 167 } else if (codel_time_after_eq(now, vars->drop_next)) { in codel_dequeue() 173 * that the next drop should happen now, in codel_dequeue() 177 codel_time_after_eq(now, vars->drop_next)) { in codel_dequeue() [all …]
|