Home
last modified time | relevance | path

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

12345678910>>...46

/linux-6.3-rc2/tools/testing/selftests/timens/
A Dvfork_exec.c24 struct timespec *now; member
30 struct timespec *now = args->now, tst; in tcheck() local
35 if (abs(tst.tv_sec - now->tv_sec) > 5) { in tcheck()
48 .now = now, in check_in_thread()
67 if (abs(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 …]
A Dexec.c23 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 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.3-rc2/include/trace/events/
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 …]
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 …]
A Dtimer.h65 __field( unsigned long, now )
73 __entry->now = jiffies;
100 __field( unsigned long, now )
107 __entry->now = jiffies;
239 TP_ARGS(hrtimer, now),
243 __field( s64, now )
249 __entry->now = *now;
348 TP_ARGS(which, pid, now),
353 __field( unsigned long long, now )
358 __entry->now = now;
[all …]
/linux-6.3-rc2/kernel/time/
A Dtick-sched.c694 ktime_t now, idle; in get_cpu_idle_time_us() local
699 now = ktime_get(); in get_cpu_idle_time_us()
735 ktime_t now, iowait; in get_cpu_iowait_time_us() local
740 now = ktime_get(); in get_cpu_iowait_time_us()
980 ktime_t now) in __tick_nohz_full_update_tick() argument
1278 ktime_t now) in tick_nohz_account_idle_time() argument
1282 ts->idle_exittime = now; in tick_nohz_account_idle_time()
1331 ktime_t now; in tick_nohz_idle_exit() local
1343 now = ktime_get(); in tick_nohz_idle_exit()
1423 ktime_t now; in tick_nohz_irq_enter() local
[all …]
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()
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-6.3-rc2/net/rxrpc/
A Dcall_event.c26 unsigned long now = jiffies; in rxrpc_propose_ping() local
56 ack_at += now; in rxrpc_propose_delay_ACK()
127 now = ktime_get_real(); in rxrpc_resend()
129 oldest = now; in rxrpc_resend()
260 unsigned long now = jiffies; in rxrpc_begin_service_reply() local
375 unsigned long now, next, t; in rxrpc_input_call_event() local
402 now = jiffies; in rxrpc_input_call_event()
404 if (time_after_eq(now, t)) { in rxrpc_input_call_event()
411 time_after_eq(now, t)) { in rxrpc_input_call_event()
417 if (time_after_eq(now, t)) { in rxrpc_input_call_event()
[all …]
/linux-6.3-rc2/arch/x86/kernel/
A Drtc.c36 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()
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.3-rc2/block/
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()
1328 iocg->activated_at = now->now; in iocg_activate()
1332 ioc->dfgv_period_at = now->now; in iocg_activate()
1383 iocg->delay_at = now->now; in iocg_kick_delay()
1417 iocg->indebt_since = now->now; in iocg_incur_debt()
1543 iocg->wait_since = now->now; in iocg_kick_waitq()
2072 ioc->dfgv_period_at = now->now; in ioc_forgive_debts()
2098 ioc->dfgv_period_at = now->now; in ioc_forgive_debts()
2170 iocg->wait_since = now->now; in ioc_check_iocgs()
[all …]
/linux-6.3-rc2/tools/power/cpupower/bench/
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.3-rc2/kernel/sched/
A Dpsi.c248 u64 now, state_start; in get_recent_times() local
258 now = cpu_clock(cpu); in get_recent_times()
445 u64 now; in psi_avgs_work() local
452 now = sched_clock(); in psi_avgs_work()
625 u64 now; in psi_poll_work() local
629 now = sched_clock(); in psi_poll_work()
889 u64 now; in psi_task_change() local
987 u64 now; in psi_account_irqtime() local
1200 u64 now; in psi_cgroup_restart() local
1214 u64 now; in psi_show() local
[all …]
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()
346 int update_rt_rq_load_avg(u64 now, struct rq *rq, int running) in update_rt_rq_load_avg() argument
348 if (___update_load_sum(now, &rq->avg_rt, in update_rt_rq_load_avg()
372 int update_dl_rq_load_avg(u64 now, struct rq *rq, int running) in update_dl_rq_load_avg() argument
374 if (___update_load_sum(now, &rq->avg_dl, in update_dl_rq_load_avg()
[all …]
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);
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
187 update_cfs_rq_load_avg(u64 now, struct cfs_rq *cfs_rq) in update_cfs_rq_load_avg() argument
193 update_rt_rq_load_avg(u64 now, struct rq *rq, int running) in update_rt_rq_load_avg() argument
199 update_dl_rq_load_avg(u64 now, struct rq *rq, int running) in update_dl_rq_load_avg() argument
[all …]
/linux-6.3-rc2/kernel/trace/
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.3-rc2/drivers/md/bcache/
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.3-rc2/tools/testing/selftests/timers/
A Dnanosleep.c103 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-6.3-rc2/include/net/
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.3-rc2/arch/x86/events/
A Dmsr.c229 u64 now; in msr_read_counter() local
232 rdmsrl(event->hw.event_base, now); in msr_read_counter()
234 now = rdtsc_ordered(); in msr_read_counter()
236 return now; in msr_read_counter()
241 u64 prev, now; in msr_event_update() local
247 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.3-rc2/drivers/block/drbd/
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.3-rc2/arch/powerpc/kernel/
A Dtime.c214 unsigned long now, stime; in vtime_delta() local
218 now = mftb(); in vtime_delta()
220 acct->starttime = now; in vtime_delta()
485 if (now >= *next_tb) { in timer_rearm_host_dec()
488 now = *next_tb - now; in timer_rearm_host_dec()
491 set_dec_or_work(now); in timer_rearm_host_dec()
506 u64 now; in DEFINE_INTERRUPT_HANDLER_ASYNC() local
550 now = get_tb(); in DEFINE_INTERRUPT_HANDLER_ASYNC()
551 if (now >= *next_tb) { in DEFINE_INTERRUPT_HANDLER_ASYNC()
555 now = *next_tb - now; in DEFINE_INTERRUPT_HANDLER_ASYNC()
[all …]
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
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()
/linux-6.3-rc2/tools/testing/selftests/powerpc/tm/
A Dtm-syscall.c79 struct timeval end, now; in tm_syscall() local
89 now.tv_sec = TEST_DURATION; in tm_syscall()
90 now.tv_usec = 0; in tm_syscall()
91 timeradd(&end, &now, &end); in tm_syscall()
93 for (count = 0; timercmp(&now, &end, <); count++) { in tm_syscall()
116 gettimeofday(&now, 0); in tm_syscall()

Completed in 68 milliseconds

12345678910>>...46