Home
last modified time | relevance | path

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

12345678910>>...44

/Linux-v4.19/net/rxrpc/
Dcall_event.c35 unsigned long now = jiffies; in rxrpc_propose_ping() local
36 unsigned long ping_at = now + rxrpc_idle_ack_delay; in rxrpc_propose_ping()
40 rxrpc_reduce_call_timer(call, ping_at, now, in rxrpc_propose_ping()
119 unsigned long now = jiffies, ack_at; in __rxrpc_propose_ACK() local
126 ack_at += now; in __rxrpc_propose_ACK()
129 rxrpc_reduce_call_timer(call, ack_at, now, in __rxrpc_propose_ACK()
168 ktime_t now, max_age, oldest, ack_ts, timeout, min_timeo; in rxrpc_resend() local
182 now = ktime_get_real(); in rxrpc_resend()
183 max_age = ktime_sub(now, timeout); in rxrpc_resend()
198 oldest = now; in rxrpc_resend()
[all …]
/Linux-v4.19/include/trace/events/
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 …]
Dtimer.h64 __field( unsigned long, now )
72 __entry->now = jiffies;
78 (long)__entry->expires - __entry->now,
98 __field( unsigned long, now )
104 __entry->now = jiffies;
108 TP_printk("timer=%p function=%pf now=%lu", __entry->timer, __entry->function,__entry->now)
230 TP_PROTO(struct hrtimer *hrtimer, ktime_t *now),
232 TP_ARGS(hrtimer, now),
236 __field( s64, now )
242 __entry->now = *now;
[all …]
/Linux-v4.19/kernel/time/
Dtick-sched.c57 static void tick_do_update_jiffies64(ktime_t now) in tick_do_update_jiffies64() argument
65 delta = ktime_sub(now, last_jiffies_update); in tick_do_update_jiffies64()
72 delta = ktime_sub(now, last_jiffies_update); in tick_do_update_jiffies64()
116 static void tick_sched_do_timer(struct tick_sched *ts, ktime_t now) in tick_sched_do_timer() argument
135 tick_do_update_jiffies64(now); in tick_sched_do_timer()
492 static void tick_nohz_update_jiffies(ktime_t now) in tick_nohz_update_jiffies() argument
496 __this_cpu_write(tick_cpu_sched.idle_waketime, now); in tick_nohz_update_jiffies()
499 tick_do_update_jiffies64(now); in tick_nohz_update_jiffies()
509 update_ts_time_stats(int cpu, struct tick_sched *ts, ktime_t now, u64 *last_update_time) in update_ts_time_stats() argument
514 delta = ktime_sub(now, ts->idle_entrytime); in update_ts_time_stats()
[all …]
Dtimer_list.c28 u64 now; member
62 int idx, u64 now) in print_timer() argument
73 (long long)(ktime_to_ns(hrtimer_get_softexpires(timer)) - now), in print_timer()
74 (long long)(ktime_to_ns(hrtimer_get_expires(timer)) - now)); in print_timer()
79 u64 now) in print_active_timers() argument
109 print_timer(m, timer, &tmp, i, now); in print_active_timers()
117 print_base(struct seq_file *m, struct hrtimer_clock_base *base, u64 now) in print_base() argument
132 print_active_timers(m, base, now + ktime_to_ns(base->offset)); in print_base()
135 static void print_cpu(struct seq_file *m, int cpu, u64 now) in print_cpu() argument
143 print_base(m, cpu_base->clock_base + i, now); in print_cpu()
[all …]
Dtimekeeping_internal.h17 static inline u64 clocksource_delta(u64 now, u64 last, u64 mask) in clocksource_delta() argument
19 u64 ret = (now - last) & mask; in clocksource_delta()
28 static inline u64 clocksource_delta(u64 now, u64 last, u64 mask) in clocksource_delta() argument
30 return (now - last) & mask; in clocksource_delta()
/Linux-v4.19/tools/power/cpupower/bench/
Dbenchmark.c48 long long now, then; in calculate_timespace() local
57 now = get_time(); in calculate_timespace()
61 timed = (unsigned int)(then - now); in calculate_timespace()
68 now = get_time(); in calculate_timespace()
72 timed = (unsigned int)(then - now); in calculate_timespace()
94 long long now, then; in start_benchmark() local
139 now = get_time(); in start_benchmark()
143 performance_time += then - now - sleep_time; in start_benchmark()
148 (long)(then - now), sleep_time, in start_benchmark()
165 now = get_time(); in start_benchmark()
[all …]
/Linux-v4.19/kernel/sched/
Dpelt.h3 int __update_load_avg_blocked_se(u64 now, int cpu, struct sched_entity *se);
4 int __update_load_avg_se(u64 now, int cpu, struct cfs_rq *cfs_rq, struct sched_entity *se);
5 int __update_load_avg_cfs_rq(u64 now, int cpu, struct cfs_rq *cfs_rq);
6 int update_rt_rq_load_avg(u64 now, struct rq *rq, int running);
7 int update_dl_rq_load_avg(u64 now, struct rq *rq, int running);
48 update_cfs_rq_load_avg(u64 now, struct cfs_rq *cfs_rq) in update_cfs_rq_load_avg() argument
54 update_rt_rq_load_avg(u64 now, struct rq *rq, int running) in update_rt_rq_load_avg() argument
60 update_dl_rq_load_avg(u64 now, struct rq *rq, int running) in update_dl_rq_load_avg() argument
Dpelt.c180 ___update_load_sum(u64 now, int cpu, 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()
270 int __update_load_avg_blocked_se(u64 now, int cpu, struct sched_entity *se) in __update_load_avg_blocked_se() argument
275 if (___update_load_sum(now, cpu, &se->avg, 0, 0, 0)) { in __update_load_avg_blocked_se()
283 int __update_load_avg_se(u64 now, int cpu, struct cfs_rq *cfs_rq, struct sched_entity *se) in __update_load_avg_se() argument
288 if (___update_load_sum(now, cpu, &se->avg, !!se->on_rq, !!se->on_rq, in __update_load_avg_se()
299 int __update_load_avg_cfs_rq(u64 now, int cpu, struct cfs_rq *cfs_rq) in __update_load_avg_cfs_rq() argument
301 if (___update_load_sum(now, cpu, &cfs_rq->avg, in __update_load_avg_cfs_rq()
324 int update_rt_rq_load_avg(u64 now, struct rq *rq, int running) in update_rt_rq_load_avg() argument
[all …]
/Linux-v4.19/drivers/md/bcache/
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
213 if (time_before64(now + NSEC_PER_SEC * 5LLU / 2LLU, d->next)) in bch_next_delay()
214 d->next = now + NSEC_PER_SEC * 5LLU / 2LLU; in bch_next_delay()
[all …]
/Linux-v4.19/include/net/
Dcodel_impl.h108 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()
177 codel_time_after_eq(now, vars->drop_next)) { in codel_dequeue()
198 backlog, now)) { in codel_dequeue()
[all …]
/Linux-v4.19/tools/testing/selftests/timers/
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-v4.19/arch/x86/kernel/
Dpvclock.c130 struct timespec64 now; in pvclock_read_wallclock() local
143 now.tv_sec = wall_clock->sec; in pvclock_read_wallclock()
144 now.tv_nsec = wall_clock->nsec; in pvclock_read_wallclock()
149 delta += now.tv_sec * NSEC_PER_SEC + now.tv_nsec; in pvclock_read_wallclock()
151 now.tv_nsec = do_div(delta, NSEC_PER_SEC); in pvclock_read_wallclock()
152 now.tv_sec = delta; in pvclock_read_wallclock()
154 set_normalized_timespec64(ts, now.tv_sec, now.tv_nsec); in pvclock_read_wallclock()
Drtc.c42 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-v4.19/arch/x86/events/
Dmsr.c189 u64 now; in msr_read_counter() local
192 rdmsrl(event->hw.event_base, now); in msr_read_counter()
194 now = rdtsc_ordered(); in msr_read_counter()
196 return now; in msr_read_counter()
201 u64 prev, now; in msr_event_update() local
207 now = msr_read_counter(event); in msr_event_update()
209 if (local64_cmpxchg(&event->hw.prev_count, prev, now) != prev) in msr_event_update()
212 delta = now - prev; in msr_event_update()
218 now = now & (1ULL << 31) ? (now >> 16) & 0x3f : -1; in msr_event_update()
219 local64_set(&event->count, now); in msr_event_update()
[all …]
/Linux-v4.19/drivers/gpu/drm/vmwgfx/
Dvmwgfx_marker.c78 u64 now; in vmw_marker_pull() local
81 now = ktime_get_raw_ns(); in vmw_marker_pull()
85 queue->lag_time = now; in vmw_marker_pull()
94 queue->lag = now - marker->submitted; in vmw_marker_pull()
95 queue->lag_time = now; in vmw_marker_pull()
109 u64 now; in vmw_fifo_lag() local
112 now = ktime_get_raw_ns(); in vmw_fifo_lag()
113 queue->lag += now - queue->lag_time; in vmw_fifo_lag()
114 queue->lag_time = now; in vmw_fifo_lag()
/Linux-v4.19/drivers/block/drbd/
Ddrbd_debugfs.c96 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 …]
/Linux-v4.19/tools/testing/selftests/powerpc/tm/
Dtm-syscall.c67 struct timeval end, now; in tm_syscall() local
76 now.tv_sec = TEST_DURATION; in tm_syscall()
77 now.tv_usec = 0; in tm_syscall()
78 timeradd(&end, &now, &end); in tm_syscall()
80 for (count = 0; timercmp(&now, &end, <); count++) { in tm_syscall()
94 gettimeofday(&now, 0); in tm_syscall()
/Linux-v4.19/kernel/trace/
Dtrace_clock.c98 u64 now; in trace_clock_global() local
103 now = sched_clock_cpu(this_cpu); in trace_clock_global()
118 if ((s64)(now - trace_clock_struct.prev_time) < 0) in trace_clock_global()
119 now = trace_clock_struct.prev_time + 1; in trace_clock_global()
121 trace_clock_struct.prev_time = now; in trace_clock_global()
128 return now; in trace_clock_global()
/Linux-v4.19/tools/testing/selftests/networking/timestamping/
Dtimestamping.c139 struct timeval now; in sendpacket() local
144 gettimeofday(&now, 0); in sendpacket()
149 (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()
478 struct timeval now; in main() local
484 gettimeofday(&now, 0); in main()
485 delta_us = (long)(next.tv_sec - now.tv_sec) * 1000000 + in main()
486 (long)(next.tv_usec - now.tv_usec); in main()
[all …]
/Linux-v4.19/drivers/rtc/
Dinterface.c206 struct rtc_time before, now; in __rtc_read_alarm() local
259 memcpy(&before, &now, sizeof(struct rtc_time)); in __rtc_read_alarm()
274 err = rtc_read_time(rtc, &now); in __rtc_read_alarm()
279 } while ( before.tm_min != now.tm_min in __rtc_read_alarm()
280 || before.tm_hour != now.tm_hour in __rtc_read_alarm()
281 || before.tm_mon != now.tm_mon in __rtc_read_alarm()
282 || before.tm_year != now.tm_year); in __rtc_read_alarm()
288 alarm->time.tm_sec = now.tm_sec; in __rtc_read_alarm()
290 alarm->time.tm_min = now.tm_min; in __rtc_read_alarm()
292 alarm->time.tm_hour = now.tm_hour; in __rtc_read_alarm()
[all …]
/Linux-v4.19/net/dccp/ccids/
Dccid3.c106 static u32 ccid3_hc_tx_idle_rtt(struct ccid3_hc_tx_sock *hc, ktime_t now) in ccid3_hc_tx_idle_rtt() argument
108 u32 delta = ktime_us_delta(now, hc->tx_t_last_win_count); in ccid3_hc_tx_idle_rtt()
129 ktime_t now = stamp ? *stamp : ktime_get_real(); in ccid3_hc_tx_update_x() local
137 if (ccid3_hc_tx_idle_rtt(hc, now) >= 2) { in ccid3_hc_tx_update_x()
147 } else if (ktime_us_delta(now, hc->tx_t_ld) - (s64)hc->tx_rtt >= 0) { in ccid3_hc_tx_update_x()
152 hc->tx_t_ld = now; in ccid3_hc_tx_update_x()
186 ktime_t now) in ccid3_hc_tx_update_win_count() argument
188 u32 delta = ktime_us_delta(now, hc->tx_t_last_win_count), in ccid3_hc_tx_update_win_count()
192 hc->tx_t_last_win_count = now; in ccid3_hc_tx_update_win_count()
284 ktime_t now = ktime_get_real(); in ccid3_hc_tx_send_packet() local
[all …]
/Linux-v4.19/tools/power/cpupower/debug/kernel/
Dcpufreq-test_tsc.c55 u32 now, then, diff; in cpufreq_test_tsc() local
87 now = read_pmtmr(); in cpufreq_test_tsc()
89 diff = (now - then) & 0xFFFFFF; in cpufreq_test_tsc()
91 …printk(KERN_DEBUG "t1: %08u t2: %08u diff_pmtmr: %08u diff_tsc: %016llu\n", then, now, diff, diff_… in cpufreq_test_tsc()
92 then = now; in cpufreq_test_tsc()
/Linux-v4.19/arch/arm/xen/
Denlighten.c109 struct timespec64 now, ts_monotonic; in xen_read_wallclock() local
117 now.tv_sec = ((uint64_t)wall_clock->sec_hi << 32) | wall_clock->sec; in xen_read_wallclock()
118 now.tv_nsec = wall_clock->nsec; in xen_read_wallclock()
124 *ts = timespec64_add(now, ts_monotonic); in xen_read_wallclock()
134 struct timespec64 now, system_time; in xen_pvclock_gtod_notify() local
137 now.tv_sec = tk->xtime_sec; in xen_pvclock_gtod_notify()
138 now.tv_nsec = (long)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in xen_pvclock_gtod_notify()
139 system_time = timespec64_add(now, tk->wall_to_monotonic); in xen_pvclock_gtod_notify()
145 if (!was_set && timespec64_compare(&now, &next_sync) < 0) in xen_pvclock_gtod_notify()
150 op.u.settime64.secs = now.tv_sec; in xen_pvclock_gtod_notify()
[all …]
/Linux-v4.19/arch/parisc/lib/
Ddelay.c32 u32 bclock, now, loops = __loops; in __cr16_delay() local
39 now = mfctl(16); in __cr16_delay()
40 if ((now - bclock) >= loops) in __cr16_delay()
59 loops -= (now - bclock); in __cr16_delay()

12345678910>>...44