Home
last modified time | relevance | path

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

12345678910>>...58

/linux-6.15/tools/testing/selftests/timens/
H A Dvfork_exec.c24 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()
48 .now = now, in check_in_thread()
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()
79 struct timespec now; in main() local
98 clock_gettime(CLOCK_MONOTONIC, &now); in main()
106 if (check("parent before vfork", &now)) in main()
[all …]
H A Dexec.c23 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()
H A Dclock_nanosleep.c26 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-6.15/include/trace/events/
H A Diocost.h24 __field(u64, now)
39 __entry->now = now->now;
40 __entry->vnow = now->vnow;
55 __entry->now, __entry->vnow, __entry->vrate,
82 TP_ARGS(iocg, path, now, old_inuse, new_inuse,
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 …]
H A Dalarmtimer.h47 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 …]
H A Dtimer.h64 __field( unsigned long, now )
73 __entry->now = jiffies;
100 __field( unsigned long, now )
107 __entry->now = jiffies;
263 TP_ARGS(hrtimer, now),
267 __field( s64, now )
273 __entry->now = *now;
372 TP_ARGS(which, pid, now),
377 __field( unsigned long long, now )
382 __entry->now = now;
[all …]
/linux-6.15/kernel/sched/
H A Dpelt.c180 ___update_load_sum(u64 now, struct sched_avg *sa, in ___update_load_sum() argument
185 delta = now - sa->last_update_time; in ___update_load_sum()
191 sa->last_update_time = now; in ___update_load_sum()
297 if (___update_load_sum(now, &se->avg, 0, 0, 0)) { in __update_load_avg_blocked_se()
320 int __update_load_avg_cfs_rq(u64 now, struct cfs_rq *cfs_rq) in __update_load_avg_cfs_rq() argument
322 if (___update_load_sum(now, &cfs_rq->avg, in __update_load_avg_cfs_rq()
348 if (___update_load_sum(now, &rq->avg_rt, in update_rt_rq_load_avg()
374 if (___update_load_sum(now, &rq->avg_dl, in update_dl_rq_load_avg()
403 int update_hw_load_avg(u64 now, struct rq *rq, u64 capacity) in update_hw_load_avg() argument
405 if (___update_load_sum(now, &rq->avg_hw, in update_hw_load_avg()
[all …]
H A Dpelt.h4 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);
12 int update_hw_load_avg(u64 now, struct rq *rq, u64 capacity);
20 update_hw_load_avg(u64 now, struct rq *rq, u64 capacity) in update_hw_load_avg() argument
188 update_cfs_rq_load_avg(u64 now, struct cfs_rq *cfs_rq) in update_cfs_rq_load_avg() argument
194 update_rt_rq_load_avg(u64 now, struct rq *rq, int running) in update_rt_rq_load_avg() argument
200 update_dl_rq_load_avg(u64 now, struct rq *rq, int running) in update_dl_rq_load_avg() argument
[all …]
H A Dpsi.c256 u64 now, state_start; in get_recent_times() local
266 now = cpu_clock(cpu); in get_recent_times()
561 u64 now; in psi_avgs_work() local
568 now = sched_clock(); in psi_avgs_work()
635 u64 now; in psi_rtpoll_work() local
639 now = sched_clock(); in psi_rtpoll_work()
778 u64 now; in psi_group_change() local
793 now = cpu_clock(cpu); in psi_group_change()
1019 u64 now; in psi_account_irqtime() local
1238 u64 now; in psi_show() local
[all …]
/linux-6.15/arch/x86/kernel/
H A Drtc.c35 int mach_set_cmos_time(const struct timespec64 *now) in mach_set_cmos_time() argument
37 unsigned long long nowtime = now->tv_sec; in mach_set_cmos_time()
56 void mach_get_cmos_time(struct timespec64 *now) in mach_get_cmos_time() argument
65 now->tv_sec = now->tv_nsec = 0; in mach_get_cmos_time()
71 now->tv_sec = now->tv_nsec = 0; in mach_get_cmos_time()
75 now->tv_sec = rtc_tm_to_time64(&tm); in mach_get_cmos_time()
76 now->tv_nsec = 0; in mach_get_cmos_time()
102 int update_persistent_clock64(struct timespec64 now) in update_persistent_clock64() argument
104 return x86_platform.set_wallclock(&now); in update_persistent_clock64()
H A Dpvclock.c129 struct timespec64 now; in pvclock_read_wallclock() local
142 now.tv_sec = wall_clock->sec; in pvclock_read_wallclock()
143 now.tv_nsec = wall_clock->nsec; in pvclock_read_wallclock()
148 delta += now.tv_sec * NSEC_PER_SEC + now.tv_nsec; in pvclock_read_wallclock()
150 now.tv_nsec = do_div(delta, NSEC_PER_SEC); in pvclock_read_wallclock()
151 now.tv_sec = delta; in pvclock_read_wallclock()
153 set_normalized_timespec64(ts, now.tv_sec, now.tv_nsec); in pvclock_read_wallclock()
/linux-6.15/block/
H A Dblk-iocost.c1048 now->now = ktime_to_us(now->now_ns); in ioc_now()
1071 ioc->period_at = now->now; in ioc_start_period()
1335 iocg->activated_at = now->now; in iocg_activate()
1339 ioc->dfgv_period_at = now->now; in iocg_activate()
1398 iocg->delay_at = now->now; in iocg_kick_delay()
1432 iocg->indebt_since = now->now; in iocg_incur_debt()
1561 iocg->wait_since = now->now; in iocg_kick_waitq()
2090 ioc->dfgv_period_at = now->now; in ioc_forgive_debts()
2116 ioc->dfgv_period_at = now->now; in ioc_forgive_debts()
2190 iocg->wait_since = now->now; in ioc_check_iocgs()
[all …]
/linux-6.15/tools/power/cpupower/bench/
H A Dbenchmark.c35 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-6.15/kernel/time/
H A Dtick-sched.c288 ktime_t now = ktime_get(); in tick_nohz_handler() local
738 ts->idle_entrytime = now; in tick_nohz_stop_idle()
758 ktime_t now, idle; in get_cpu_sleep_time_us() local
764 now = ktime_get(); in get_cpu_sleep_time_us()
1107 ktime_t now) in __tick_nohz_full_update_tick() argument
1390 ktime_t now) in tick_nohz_account_idle_time() argument
1394 ts->idle_exittime = now; in tick_nohz_account_idle_time()
1452 ktime_t now; in tick_nohz_idle_exit() local
1464 now = ktime_get(); in tick_nohz_idle_exit()
1522 ktime_t now; in tick_nohz_irq_enter() local
[all …]
H A Dtimer_list.c23 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()
271 u64 now = ktime_to_ns(ktime_get()); in sysrq_timer_list_show() local
274 timer_list_header(NULL, now); in sysrq_timer_list_show()
277 print_cpu(NULL, cpu, now); in sysrq_timer_list_show()
293 timer_list_header(m, iter->now); in timer_list_show()
295 print_cpu(m, iter->cpu, iter->now); in timer_list_show()
[all …]
/linux-6.15/kernel/trace/
H A Dtrace_clock.c98 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-6.15/drivers/md/bcache/
H A Dutil.c165 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-6.15/tools/testing/selftests/timers/
H A Dnanosleep.c91 struct timespec now, target, rel; in nanosleep_test() local
94 if (clock_gettime(clockid, &now)) in nanosleep_test()
96 target = timespec_add(now, ns); in nanosleep_test()
100 clock_gettime(clockid, &now); in nanosleep_test()
102 if (!in_order(target, now)) in nanosleep_test()
106 clock_gettime(clockid, &now); in nanosleep_test()
110 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()
/linux-6.15/include/net/
H A Dcodel_impl.h112 codel_time_t now) in codel_should_drop() argument
123 vars->ldelay = now - skb_time_func(skb); in codel_should_drop()
139 vars->first_above_time = now + params->interval; in codel_should_drop()
157 codel_time_t now; in codel_dequeue() local
164 now = codel_get_time(); in codel_dequeue()
166 skb_len_func, skb_time_func, backlog, now); in codel_dequeue()
171 } else if (codel_time_after_eq(now, vars->drop_next)) { in codel_dequeue()
181 codel_time_after_eq(now, vars->drop_next)) { in codel_dequeue()
202 backlog, now)) { in codel_dequeue()
227 skb_time_func, backlog, now); in codel_dequeue()
[all …]
/linux-6.15/arch/x86/events/
H A Dmsr.c231 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()
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()
267 u64 now = msr_read_counter(event); in msr_event_start() local
[all …]
/linux-6.15/drivers/block/drbd/
H A Ddrbd_debugfs.c125 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-6.15/arch/mips/kernel/
H A Dsync-r4k.c50 uint32_t start, now, prev, end, cur_max_warp = 0; in check_counter_warp() local
64 now = read_c0_count(); in check_counter_warp()
65 last_counter = now; in check_counter_warp()
75 if (now > end || i > 10000000) in check_counter_warp()
84 if (unlikely(prev > now)) { in check_counter_warp()
86 max_warp = max(max_warp, prev - now); in check_counter_warp()
99 WARN(!(now-start), in check_counter_warp()
101 now-start, end-start); in check_counter_warp()
/linux-6.15/arch/powerpc/kernel/
H A Dtime.c214 unsigned long now, stime; in vtime_delta() local
218 now = mftb(); in vtime_delta()
220 acct->starttime = now; in vtime_delta()
507 if (now >= *next_tb) { in timer_rearm_host_dec()
510 now = *next_tb - now; in timer_rearm_host_dec()
513 set_dec_or_work(now); in timer_rearm_host_dec()
528 u64 now; in DEFINE_INTERRUPT_HANDLER_ASYNC() local
572 now = get_tb(); in DEFINE_INTERRUPT_HANDLER_ASYNC()
573 if (now >= *next_tb) { in DEFINE_INTERRUPT_HANDLER_ASYNC()
577 now = *next_tb - now; in DEFINE_INTERRUPT_HANDLER_ASYNC()
[all …]
/linux-6.15/net/rxrpc/
H A Dcall_event.c27 ktime_t now = ktime_get_real(); in rxrpc_propose_ping() local
43 ktime_t now = ktime_get_real(), delay; in rxrpc_propose_delay_ACK() local
79 req->now = ktime_get_real(); in rxrpc_retransmit_data()
89 .now = ktime_get_real(), in rxrpc_resend()
134 .now = ktime_get_real(), in rxrpc_resend_tlp()
207 .now = ktime_get_real(), in rxrpc_transmit_fresh_data()
303 ktime_t now, t; in rxrpc_input_call_event() local
351 now = ktime_get_real(); in rxrpc_input_call_event()
389 now = ktime_get_real(); in rxrpc_input_call_event()
453 now = ktime_get_real(); in rxrpc_input_call_event()
[all …]
/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dtime_tai.c37 __u64 ts1, ts2, now; in test_time_tai() local
64 now = ts_to_ns(&now_tai); in test_time_tai()
66 ASSERT_TRUE(now > ts1, "tai_future_ts1"); in test_time_tai()
67 ASSERT_TRUE(now > ts2, "tai_future_ts2"); in test_time_tai()
70 ASSERT_TRUE(now - ts1 < TAI_THRESHOLD, "tai_range_ts1"); in test_time_tai()
71 ASSERT_TRUE(now - ts2 < TAI_THRESHOLD, "tai_range_ts2"); in test_time_tai()

12345678910>>...58