/linux/include/trace/events/ |
A D | iocost.h | 24 __field(u64, now) 39 __entry->now = now->now; 40 __entry->vnow = now->vnow; 41 __entry->vrate = now->vrate; 55 __entry->now, __entry->vnow, __entry->vrate, 88 __field(u64, now) 98 __entry->now = now->now; 187 TP_ARGS(iocg, path, now, usage_pct, 193 __field(u64, now) 205 __entry->now = now->now; [all …]
|
A 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; 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) 89 TP_PROTO(struct alarm *alarm, ktime_t now), [all …]
|
A D | timer.h | 64 __field( unsigned long, now ) 72 __entry->now = jiffies; 98 __field( unsigned long, now ) 105 __entry->now = jiffies; 236 TP_ARGS(hrtimer, now), 240 __field( s64, now ) 246 __entry->now = *now; 345 TP_ARGS(which, pid, now), 350 __field( unsigned long long, now ) 355 __entry->now = now; [all …]
|
/linux/net/rxrpc/ |
A D | call_event.c | 31 unsigned long now = jiffies; in rxrpc_propose_ping() local 120 ack_at += now; in __rxrpc_propose_ACK() 170 now = ktime_get_real(); in rxrpc_resend() 186 oldest = now; in rxrpc_resend() 294 unsigned long now, next, t; in rxrpc_process_call() local 320 now = jiffies; in rxrpc_process_call() 322 if (time_after_eq(now, t)) { in rxrpc_process_call() 329 time_after_eq(now, t)) { in rxrpc_process_call() 335 if (time_after_eq(now, t)) { in rxrpc_process_call() 412 rxrpc_resend(call, now); in rxrpc_process_call() [all …]
|
/linux/kernel/time/ |
A D | tick-sched.c | 678 ktime_t now, idle; in get_cpu_idle_time_us() local 683 now = ktime_get(); in get_cpu_idle_time_us() 719 ktime_t now, iowait; in get_cpu_iowait_time_us() local 724 now = ktime_get(); in get_cpu_iowait_time_us() 964 ktime_t now) in __tick_nohz_full_update_tick() argument 1232 ktime_t now) in tick_nohz_account_idle_time() argument 1236 ts->idle_exittime = now; in tick_nohz_account_idle_time() 1285 ktime_t now; in tick_nohz_idle_exit() local 1297 now = ktime_get(); in tick_nohz_idle_exit() 1371 ktime_t now; in tick_nohz_irq_enter() local [all …]
|
A D | timer_list.c | 23 u64 now; member 47 int idx, u64 now) in print_timer() argument 61 u64 now) in print_active_timers() argument 91 print_timer(m, timer, &tmp, i, now); in print_active_timers() 123 print_base(m, cpu_base->clock_base + i, now); in print_cpu() 267 u64 now = ktime_to_ns(ktime_get()); in sysrq_timer_list_show() local 270 timer_list_header(NULL, now); in sysrq_timer_list_show() 273 print_cpu(NULL, cpu, now); in sysrq_timer_list_show() 289 timer_list_header(m, iter->now); in timer_list_show() 291 print_cpu(m, iter->cpu, iter->now); in timer_list_show() [all …]
|
/linux/block/ |
A D | blk-iocost.c | 1028 now->now = ktime_to_us(now->now_ns); in ioc_now() 1042 (now->now - ioc->period_at) * now->vrate; in ioc_now() 1051 ioc->period_at = now->now; in ioc_start_period() 1308 iocg->activated_at = now->now; in iocg_activate() 1312 ioc->dfgv_period_at = now->now; in iocg_activate() 1363 iocg->delay_at = now->now; in iocg_kick_delay() 1397 iocg->indebt_since = now->now; in iocg_incur_debt() 1523 iocg->wait_since = now->now; in iocg_kick_waitq() 2058 ioc->dfgv_period_at = now->now; in ioc_forgive_debts() 2084 ioc->dfgv_period_at = now->now; in ioc_forgive_debts() [all …]
|
/linux/tools/testing/selftests/timens/ |
A 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()
|
A D | clock_nanosleep.c | 26 struct timespec *now, *rem; member 36 clock_nanosleep(args->clockid, args->abs ? TIMER_ABSTIME : 0, args->now, args->rem); in call_nanosleep() 43 struct timespec now = {}, rem; in run_test() local 44 struct thread_args args = { .now = &now, .rem = &rem, .clockid = clockid}; in run_test() 64 now.tv_sec = start.tv_sec; in run_test() 65 now.tv_nsec = start.tv_nsec; in run_test() 68 now.tv_sec += 3600; in run_test()
|
/linux/kernel/sched/ |
A D | psi.c | 254 u64 now, state_start; in get_recent_times() local 264 now = cpu_clock(cpu); in get_recent_times() 428 u64 now; in psi_avgs_work() local 435 now = sched_clock(); in psi_avgs_work() 461 win->start_time = now; in window_reset() 592 u64 now; in psi_poll_work() local 596 now = sched_clock(); in psi_poll_work() 798 u64 now; in psi_task_change() local 805 now = cpu_clock(cpu); in psi_task_change() 1040 u64 now; in psi_show() local [all …]
|
A D | pelt.c | 184 ___update_load_sum(u64 now, struct sched_avg *sa, in ___update_load_sum() argument 189 delta = now - sa->last_update_time; in ___update_load_sum() 195 sa->last_update_time = now; in ___update_load_sum() 301 if (___update_load_sum(now, &se->avg, 0, 0, 0)) { in __update_load_avg_blocked_se() 324 int __update_load_avg_cfs_rq(u64 now, struct cfs_rq *cfs_rq) in __update_load_avg_cfs_rq() argument 326 if (___update_load_sum(now, &cfs_rq->avg, in __update_load_avg_cfs_rq() 350 int update_rt_rq_load_avg(u64 now, struct rq *rq, int running) in update_rt_rq_load_avg() argument 352 if (___update_load_sum(now, &rq->avg_rt, in update_rt_rq_load_avg() 376 int update_dl_rq_load_avg(u64 now, struct rq *rq, int running) in update_dl_rq_load_avg() argument 378 if (___update_load_sum(now, &rq->avg_dl, in update_dl_rq_load_avg() [all …]
|
A D | pelt.h | 4 int __update_load_avg_blocked_se(u64 now, struct sched_entity *se); 5 int __update_load_avg_se(u64 now, struct cfs_rq *cfs_rq, struct sched_entity *se); 6 int __update_load_avg_cfs_rq(u64 now, struct cfs_rq *cfs_rq); 7 int update_rt_rq_load_avg(u64 now, struct rq *rq, int running); 8 int update_dl_rq_load_avg(u64 now, struct rq *rq, int running); 11 int update_thermal_load_avg(u64 now, struct rq *rq, u64 capacity); 19 update_thermal_load_avg(u64 now, struct rq *rq, u64 capacity) in update_thermal_load_avg() argument 160 update_cfs_rq_load_avg(u64 now, struct cfs_rq *cfs_rq) in update_cfs_rq_load_avg() argument 166 update_rt_rq_load_avg(u64 now, struct rq *rq, int running) in update_rt_rq_load_avg() argument 172 update_dl_rq_load_avg(u64 now, struct rq *rq, int running) in update_dl_rq_load_avg() argument [all …]
|
/linux/tools/power/cpupower/bench/ |
A 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() 135 (long)(then - now), sleep_time, in start_benchmark() 152 now = get_time(); in start_benchmark() 156 powersave_time += then - now - sleep_time; in start_benchmark() [all …]
|
/linux/drivers/md/bcache/ |
A D | util.c | 165 uint64_t now, duration, last; in bch_time_stats_update() local 169 now = local_clock(); in bch_time_stats_update() 170 duration = time_after64(now, start_time) in bch_time_stats_update() 171 ? now - start_time : 0; in bch_time_stats_update() 172 last = time_after64(now, stats->last) in bch_time_stats_update() 173 ? now - stats->last : 0; in bch_time_stats_update() 188 stats->last = now ?: 1; in bch_time_stats_update() 203 uint64_t now = local_clock(); in bch_next_delay() local 214 d->next = now + NSEC_PER_SEC * 5LLU / 2LLU; in bch_next_delay() 217 d->next = now - NSEC_PER_SEC * 2; in bch_next_delay() [all …]
|
/linux/kernel/trace/ |
A D | trace_clock.c | 98 u64 now, prev_time; in trace_clock_global() local 116 now = sched_clock_cpu(this_cpu); in trace_clock_global() 119 if ((s64)(now - prev_time) < 0) in trace_clock_global() 120 now = prev_time; in trace_clock_global() 133 if ((s64)(now - prev_time) < 0) in trace_clock_global() 134 now = prev_time; in trace_clock_global() 136 trace_clock_struct.prev_time = now; in trace_clock_global() 144 return now; in trace_clock_global()
|
/linux/drivers/block/drbd/ |
A D | drbd_debugfs.c | 125 seq_print_one_request(m, req, now); in seq_print_minor_vnr_req() 211 jiffies_to_msecs(now - start_jif), in seq_print_device_bitmap_io() 248 unsigned long now) in seq_print_peer_request() argument 303 unsigned long now) in seq_print_resource_transfer_log_summary() argument 501 unsigned long now) in seq_print_one_timing_detail() argument 576 unsigned long now = jiffies; in connection_oldest_requests_show() local 585 seq_print_minor_vnr_req(m, r1, now); in connection_oldest_requests_show() 589 seq_print_minor_vnr_req(m, r1, now); in connection_oldest_requests_show() 694 unsigned long now = jiffies; in device_oldest_requests_show() local 710 seq_print_one_request(m, r1, now); in device_oldest_requests_show() [all …]
|
/linux/include/net/ |
A D | codel_impl.h | 110 codel_time_t now) in codel_should_drop() argument 121 vars->ldelay = now - skb_time_func(skb); in codel_should_drop() 137 vars->first_above_time = now + params->interval; in codel_should_drop() 155 codel_time_t now; in codel_dequeue() local 162 now = codel_get_time(); in codel_dequeue() 164 skb_len_func, skb_time_func, backlog, now); in codel_dequeue() 169 } else if (codel_time_after_eq(now, vars->drop_next)) { in codel_dequeue() 179 codel_time_after_eq(now, vars->drop_next)) { in codel_dequeue() 200 backlog, now)) { in codel_dequeue() 225 skb_time_func, backlog, now); in codel_dequeue() [all …]
|
/linux/tools/testing/selftests/timers/ |
A D | nanosleep.c | 103 struct timespec now, target, rel; in nanosleep_test() local 106 if (clock_gettime(clockid, &now)) in nanosleep_test() 108 target = timespec_add(now, ns); in nanosleep_test() 112 clock_gettime(clockid, &now); in nanosleep_test() 114 if (!in_order(target, now)) in nanosleep_test() 118 clock_gettime(clockid, &now); in nanosleep_test() 122 target = timespec_add(now, ns); in nanosleep_test() 124 clock_gettime(clockid, &now); in nanosleep_test() 126 if (!in_order(target, now)) in nanosleep_test()
|
/linux/arch/x86/events/ |
A D | msr.c | 222 u64 now; in msr_read_counter() local 225 rdmsrl(event->hw.event_base, now); in msr_read_counter() 227 now = rdtsc_ordered(); in msr_read_counter() 229 return now; in msr_read_counter() 234 u64 prev, now; in msr_event_update() local 240 now = msr_read_counter(event); in msr_event_update() 245 delta = now - prev; in msr_event_update() 251 now = now & (1ULL << 31) ? (now >> 16) & 0x3f : -1; in msr_event_update() 252 local64_set(&event->count, now); in msr_event_update() 260 u64 now = msr_read_counter(event); in msr_event_start() local [all …]
|
/linux/arch/x86/kernel/ |
A D | pvclock.c | 119 struct timespec64 now; in pvclock_read_wallclock() local 132 now.tv_sec = wall_clock->sec; in pvclock_read_wallclock() 133 now.tv_nsec = wall_clock->nsec; in pvclock_read_wallclock() 138 delta += now.tv_sec * NSEC_PER_SEC + now.tv_nsec; in pvclock_read_wallclock() 140 now.tv_nsec = do_div(delta, NSEC_PER_SEC); in pvclock_read_wallclock() 141 now.tv_sec = delta; in pvclock_read_wallclock() 143 set_normalized_timespec64(ts, now.tv_sec, now.tv_nsec); in pvclock_read_wallclock()
|
A D | rtc.c | 42 int mach_set_rtc_mmss(const struct timespec64 *now) in mach_set_rtc_mmss() argument 44 unsigned long long nowtime = now->tv_sec; in mach_set_rtc_mmss() 63 void mach_get_cmos_time(struct timespec64 *now) in mach_get_cmos_time() argument 73 now->tv_sec = now->tv_nsec = 0; in mach_get_cmos_time() 121 now->tv_sec = mktime64(year, mon, day, hour, min, sec); in mach_get_cmos_time() 122 now->tv_nsec = 0; in mach_get_cmos_time() 148 int update_persistent_clock64(struct timespec64 now) in update_persistent_clock64() argument 150 return x86_platform.set_wallclock(&now); in update_persistent_clock64()
|
/linux/drivers/rtc/ |
A D | interface.c | 215 struct rtc_time before, now; in __rtc_read_alarm() local 412 time64_t now, scheduled; in __rtc_set_alarm() local 427 if (scheduled <= now) in __rtc_set_alarm() 496 struct rtc_time now; in rtc_initialize_alarm() local 586 ktime_t now, onesec; in rtc_update_irq_enable() local 806 ktime_t now; in rtc_timer_enqueue() local 810 now = rtc_tm_to_ktime(tm); in rtc_timer_enqueue() 814 if (next->expires >= now) in rtc_timer_enqueue() 901 ktime_t now; in rtc_timer_do_work() local 910 now = rtc_tm_to_ktime(tm); in rtc_timer_do_work() [all …]
|
/linux/tools/testing/selftests/net/ |
A D | timestamping.c | 138 struct timeval now; in sendpacket() local 142 gettimeofday(&now, 0); in sendpacket() 147 (long)now.tv_sec, (long)now.tv_usec, in sendpacket() 162 struct timeval now; in printpacket() local 164 gettimeofday(&now, 0); in printpacket() 167 (long)now.tv_sec, (long)now.tv_usec, in printpacket() 501 struct timeval now; in main() local 507 gettimeofday(&now, 0); in main() 520 (long)now.tv_sec, (long)now.tv_usec, in main() 523 gettimeofday(&now, 0); in main() [all …]
|
/linux/fs/btrfs/ |
A D | discard.c | 159 u64 now) in find_next_block_group() argument 175 if (ret_block_group->discard_eligible_time < now) in find_next_block_group() 204 int *discard_index, u64 now) in peek_discard_list() argument 334 u64 now, bool override) in __btrfs_discard_schedule_work() argument 365 if (now < block_group->discard_eligible_time) { in __btrfs_discard_schedule_work() 397 const u64 now = ktime_get_ns(); in btrfs_discard_schedule_work() local 445 u64 now = ktime_get_ns(); in btrfs_discard_workfn() local 450 &discard_index, now); in btrfs_discard_workfn() 453 if (now < block_group->discard_eligible_time) { in btrfs_discard_workfn() 501 now = ktime_get_ns(); in btrfs_discard_workfn() [all …]
|
/linux/drivers/staging/wfx/ |
A D | fwio.c | 153 ktime_t now, start; in wait_ncp_status() local 162 now = ktime_get(); in wait_ncp_status() 168 if (ktime_compare(now, start)) in wait_ncp_status() 170 ktime_us_delta(now, start)); in wait_ncp_status() 180 ktime_t now, start; in upload_firmware() local 190 now = ktime_get(); in upload_firmware() 199 if (ktime_compare(now, start)) in upload_firmware() 201 ktime_us_delta(now, start)); in upload_firmware() 338 ktime_t now, start; in wfx_init_device() local 383 now = ktime_get(); in wfx_init_device() [all …]
|