Home
last modified time | relevance | path

Searched full:now (Results 1 – 25 of 3562) sorted by relevance

12345678910>>...143

/linux/include/trace/events/
H A Diocost.h16 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,
[all...]
H A Dalarmtimer.h49 TP_PROTO(struct alarm *alarm, ktime_t now),
51 TP_ARGS(alarm, now),
57 __field(s64, now)
64 __entry->now = now;
67 TP_printk("alarmtimer:%p type:%s expires:%llu now:%llu",
71 __entry->now
77 TP_PROTO(struct alarm *alarm, ktime_t now),
79 TP_ARGS(alarm, now)
84 TP_PROTO(struct alarm *alarm, ktime_t now),
86 TP_ARGS(alarm, now)
[all …]
H A Dnapi.h43 unsigned long now, unsigned long *hist),
45 TP_ARGS(thrs, len, last_reap, hist_head, now, hist),
52 __field( unsigned long, now)
61 __entry->now = now;
65 TP_printk("thrs %u len %u last_reap %lu hist_head %lu now %lu hist %016lx %016lx %016lx %016lx",
67 __entry->last_reap, __entry->hist_head, __entry->now,
/linux/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()
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 in check()
79 struct timespec now; main() local
[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()
45 clock_gettime(CLOCK_MONOTONIC, &now); in main()
55 if (labs(tst.tv_sec - now.tv_sec) > 5) in main()
57 now.tv_sec, tst.tv_sec); in main()
75 if (labs(tst.tv_sec - now.tv_sec - OFFSET) > 5) in main()
77 now.tv_sec + OFFSET, tst.tv_sec); in main()
81 snprintf(now_str, sizeof(now_str), "%ld", now in main()
[all...]
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/tools/testing/selftests/net/netfilter/
H A Dconntrack_resize.sh79 local now=$(ip netns exec "$ns" conntrack -C)
81 if [ $now -ne "$count" ] ;then
82 echo "expected $count entries in $ns, not $now: $msg"
91 local now=$(date +%s)
92 local end=$((now + duration))
94 while [ $now -lt $end ]; do
96 now=$(date +%s)
117 local now=$(date +%s)
118 local end=$((now + duration))
122 while [ $now -lt $end ]; do
[all …]
H A Dconntrack_reverse_clash.sh31 local now
33 now=$(date +%s)
34 end=$((now + 5))
36 while [ $now -lt $end ];do
38 now=$(date +%s)
/linux/block/
H A Dblk-iocost.c561 u64 now; member
943 static void ioc_refresh_vrate(struct ioc *ioc, struct ioc_now *now) in ioc_refresh_vrate() argument
945 s64 pleft = ioc->period_at + ioc->period_us - now->now; in ioc_refresh_vrate()
1022 static void ioc_now(struct ioc *ioc, struct ioc_now *now) in ioc_now() argument
1027 now->now_ns = blk_time_get_ns(); in ioc_now()
1028 now->now = ktime_to_us(now->now_ns); in ioc_now()
1041 now->vnow = ioc->period_at_vtime + in ioc_now()
1042 (now->now - ioc->period_at) * vrate; in ioc_now()
1046 static void ioc_start_period(struct ioc *ioc, struct ioc_now *now) in ioc_start_period() argument
1051 ioc->period_at = now->now; in ioc_start_period()
[all …]
/linux/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()
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 …]
/linux/kernel/sched/
H A Dpsi.c278 u64 now, state_start; in get_recent_times() local
288 now = cpu_clock(cpu); in get_recent_times()
309 times[s] += now - state_start; in get_recent_times()
418 static void window_reset(struct psi_window *win, u64 now, u64 value, in window_reset() argument
421 win->start_time = now; in window_reset()
437 static u64 window_update(struct psi_window *win, u64 now, u64 value) in window_update() argument
442 elapsed = now - win->start_time; in window_update()
452 window_reset(win, now, value, growth); in window_update()
463 static void update_triggers(struct psi_group *group, u64 now, in update_triggers() argument
500 growth = window_update(&t->win, now, total[t->state]); in update_triggers()
[all …]
H A Dpelt.c90 * ... |---x---|------| ... |------|-----x (now)
160 * (now) (~1ms ago) (~2ms ago)
181 ___update_load_sum(u64 now, struct sched_avg *sa, in ___update_load_sum() argument
186 delta = now - sa->last_update_time; in ___update_load_sum()
192 sa->last_update_time = now; in ___update_load_sum()
221 * Now we know we crossed measurement unit boundaries. The *_avg in ___update_load_sum()
296 int __update_load_avg_blocked_se(u64 now, struct sched_entity *se) in __update_load_avg_blocked_se() argument
298 if (___update_load_sum(now, &se->avg, 0, 0, 0)) { in __update_load_avg_blocked_se()
307 int __update_load_avg_se(u64 now, struct cfs_rq *cfs_rq, struct sched_entity *se) in __update_load_avg_se() argument
309 if (___update_load_sum(now, in __update_load_avg_se()
321 __update_load_avg_cfs_rq(u64 now,struct cfs_rq * cfs_rq) __update_load_avg_cfs_rq() argument
347 update_rt_rq_load_avg(u64 now,struct rq * rq,int running) update_rt_rq_load_avg() argument
373 update_dl_rq_load_avg(u64 now,struct rq * rq,int running) update_dl_rq_load_avg() argument
404 update_hw_load_avg(u64 now,struct rq * rq,u64 capacity) update_hw_load_avg() argument
479 u64 now = rq_clock_pelt(rq); update_other_load_avgs() local
[all...]
/linux/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
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/include/net/
H A Dcodel_impl.h112 codel_time_t now) in codel_should_drop() argument
123 WRITE_ONCE(vars->ldelay, now - skb_time_func(skb)); in codel_should_drop()
139 vars->first_above_time = now + params->interval; in codel_should_drop()
140 } else if (codel_time_after(now, vars->first_above_time)) { in codel_should_drop()
157 codel_time_t now; in codel_dequeue() local
165 now = codel_get_time(); in codel_dequeue()
167 skb_len_func, skb_time_func, backlog, now); in codel_dequeue()
172 } else if (codel_time_after_eq(now, vars->drop_next)) { in codel_dequeue()
178 * that the next drop should happen now, in codel_dequeue()
182 codel_time_after_eq(now, vars->drop_next)) { in codel_dequeue()
[all …]
/linux/net/rxrpc/
H A Dcall_event.c27 ktime_t now = ktime_get_real(); in rxrpc_propose_ping() local
28 ktime_t ping_at = ktime_add(now, delay); in rxrpc_propose_ping()
43 ktime_t now = ktime_get_real(), delay; in rxrpc_propose_delay_ACK() local
53 call->delay_ack_at = ktime_add(now, delay); in rxrpc_propose_delay_ACK()
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()
306 ktime_t now, t; in rxrpc_input_call_event() local
354 now = ktime_get_real(); in rxrpc_input_call_event()
[all …]
/linux/arch/x86/kernel/
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/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()
118 /* Make sure that now is always greater than or equal to prev_time */ 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/fs/affs/
H A DChanges103 - The partition checker now also ignores the
114 It also marks the inode dirty now (which is not
207 they appear now as normal Unix links. They are
208 now resolved only once in lookup(). The backside
237 - Owner/Group defaults now to the fs user (i.e.
242 name buffer. It is now silently truncated to
253 - fsuser is now checked last.
262 - Extension block caches are now allocated on
272 - Hash chains are now sorted by block numbers.
280 - Errors and warnings are now reported via a
[all …]
/linux/tools/testing/selftests/timers/
H A Dnanosleep.c57 struct timespec now, target, rel; in clockstring()
60 if (clock_gettime(clockid, &now)) in clockstring()
62 target = timespec_add(now, ns); in clockstring()
66 clock_gettime(clockid, &now);
68 if (!in_order(target, now)) in in_order()
72 clock_gettime(clockid, &now); in in_order()
76 target = timespec_add(now, ns); in in_order()
78 clock_gettime(clockid, &now);
80 if (!in_order(target, now)) in timespec_add()
91 struct timespec now, target, rel; nanosleep_test() local
/linux/net/sched/
H A Dsch_etf.c80 ktime_t now; in is_packet_valid() local
101 now = q->get_time(); in is_packet_valid()
102 if (ktime_before(txtime, now) || ktime_before(txtime, q->last)) in is_packet_valid()
194 /* Now we may need to re-arm the qdisc watchdog for the next packet. */ in etf_enqueue_timesortedlist()
201 ktime_t now) in timesortedlist_drop() argument
208 if (ktime_after(skb->tstamp, now)) in timesortedlist_drop()
213 /* The rbnode field in the skb re-uses these fields, now that in timesortedlist_drop()
237 /* The rbnode field in the skb re-uses these fields, now that in timesortedlist_remove()
257 ktime_t now, next; in etf_dequeue_timesortedlist() local
263 now in etf_dequeue_timesortedlist()
[all...]
/linux/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()
/linux/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()
69 * Be nice every now and then (and also check whether in check_counter_warp()
75 if (now > end || i > 10000000) in check_counter_warp()
81 * Outside the critical section we can now see whether 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/drivers/rtc/
H A Dinterface.c215 struct rtc_time before, now; in __rtc_read_alarm() local
268 memcpy(&before, &now, sizeof(struct rtc_time)); in __rtc_read_alarm()
282 err = rtc_read_time(rtc, &now); in __rtc_read_alarm()
287 } while (before.tm_min != now.tm_min || in __rtc_read_alarm()
288 before.tm_hour != now.tm_hour || in __rtc_read_alarm()
289 before.tm_mon != now.tm_mon || in __rtc_read_alarm()
290 before.tm_year != now.tm_year); in __rtc_read_alarm()
296 alarm->time.tm_sec = now.tm_sec; in __rtc_read_alarm()
298 alarm->time.tm_min = now.tm_min; in __rtc_read_alarm()
300 alarm->time.tm_hour = now.tm_hour; in __rtc_read_alarm()
[all …]
/linux/net/dccp/ccids/
H A Dccid3.c
/linux/arch/powerpc/kernel/
H A Dtime.c112 * This always puts next_tb beyond now, so the clock event will never fire
171 unsigned long now, unsigned long stime) in vtime_delta_scaled() argument
178 nowscaled = read_spurr(now); in vtime_delta_scaled()
214 unsigned long now, stime; in vtime_delta() local
218 now = mftb(); in vtime_delta()
219 stime = now - acct->starttime; in vtime_delta()
220 acct->starttime = now; in vtime_delta()
222 *stime_scaled = vtime_delta_scaled(acct, now, stime); in vtime_delta()
226 *steal_time = pseries_calculate_stolen_time(now); in vtime_delta()
413 * now.
[all …]

12345678910>>...143