Home
last modified time | relevance | path

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

12345678910>>...240

/linux-6.14.4/include/trace/events/
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,
66 TP_ARGS(iocg, path, now, last_period, cur_period, vtime)
70 TP_PROTO(struct ioc_gq *iocg, const char *path, struct ioc_now *now,
[all …]
Dalarmtimer.h47 TP_PROTO(struct alarm *alarm, ktime_t now),
49 TP_ARGS(alarm, now),
55 __field(s64, now)
62 __entry->now = now;
65 TP_printk("alarmtimer:%p type:%s expires:%llu now:%llu",
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)
[all …]
Dtimer.h64 __field( unsigned long, now )
73 __entry->now = jiffies;
79 (long)__entry->expires - __entry->now,
100 __field( unsigned long, now )
107 __entry->now = jiffies;
112 TP_printk("timer=%p function=%ps now=%lu baseclk=%lu",
113 __entry->timer, __entry->function, __entry->now,
254 * @now: pointer to variable which contains current time of the
261 TP_PROTO(struct hrtimer *hrtimer, ktime_t *now),
263 TP_ARGS(hrtimer, now),
[all …]
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 %016l…
67 __entry->last_reap, __entry->hist_head, __entry->now,
/linux-6.14.4/tools/testing/selftests/timens/
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->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()
[all …]
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()
/linux-6.14.4/block/
Dblk-iocost.c561 u64 now; member
963 static void ioc_refresh_vrate(struct ioc *ioc, struct ioc_now *now) in ioc_refresh_vrate() argument
965 s64 pleft = ioc->period_at + ioc->period_us - now->now; in ioc_refresh_vrate()
1042 static void ioc_now(struct ioc *ioc, struct ioc_now *now) in ioc_now() argument
1047 now->now_ns = blk_time_get_ns(); in ioc_now()
1048 now->now = ktime_to_us(now->now_ns); in ioc_now()
1061 now->vnow = ioc->period_at_vtime + in ioc_now()
1062 (now->now - ioc->period_at) * vrate; in ioc_now()
1066 static void ioc_start_period(struct ioc *ioc, struct ioc_now *now) in ioc_start_period() argument
1071 ioc->period_at = now->now; in ioc_start_period()
[all …]
/linux-6.14.4/kernel/time/
Dtimer_list.c23 u64 now; member
47 int idx, u64 now) in print_timer() argument
55 (long long)(ktime_to_ns(hrtimer_get_softexpires(timer)) - now), in print_timer()
56 (long long)(ktime_to_ns(hrtimer_get_expires(timer)) - now)); in print_timer()
61 u64 now) in print_active_timers() argument
91 print_timer(m, timer, &tmp, i, now); in print_active_timers()
99 print_base(struct seq_file *m, struct hrtimer_clock_base *base, u64 now) in print_base() argument
112 print_active_timers(m, base, now + ktime_to_ns(base->offset)); in print_base()
115 static void print_cpu(struct seq_file *m, int cpu, u64 now) in print_cpu() argument
123 print_base(m, cpu_base->clock_base + i, now); in print_cpu()
[all …]
Dtick-sched.c57 static void tick_do_update_jiffies64(ktime_t now) in tick_do_update_jiffies64() argument
72 if (ktime_before(now, smp_load_acquire(&tick_next_period))) in tick_do_update_jiffies64()
86 if (ktime_before(now, nextp)) in tick_do_update_jiffies64()
96 if (ktime_before(now, tick_next_period)) { in tick_do_update_jiffies64()
103 delta = ktime_sub(now, tick_next_period); in tick_do_update_jiffies64()
206 static void tick_sched_do_timer(struct tick_sched *ts, ktime_t now) in tick_sched_do_timer() argument
232 tick_do_update_jiffies64(now); in tick_sched_do_timer()
243 tick_do_update_jiffies64(now); in tick_sched_do_timer()
288 ktime_t now = ktime_get(); in tick_nohz_handler() local
290 tick_sched_do_timer(ts, now); in tick_nohz_handler()
[all …]
/linux-6.14.4/arch/x86/kernel/
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()
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.14.4/tools/power/cpupower/bench/
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-6.14.4/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-6.14.4/arch/x86/events/
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()
250 } while (!local64_try_cmpxchg(&event->hw.prev_count, &prev, now)); 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()
[all …]
/linux-6.14.4/include/net/
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()
140 } else if (codel_time_after(now, vars->first_above_time)) { 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()
177 * that the next drop should happen now, in codel_dequeue()
181 codel_time_after_eq(now, vars->drop_next)) { in codel_dequeue()
[all …]
/linux-6.14.4/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-6.14.4/Documentation/filesystems/
Dporting.rst43 Keep in mind that now you need explicit initialization of private data
64 informative error value to report). Call it foo_fill_super(). Now declare::
93 Now we have the exclusion between ->lookup() and directory removal (by
104 and ->readdir() are called without BKL now. Grab it on entry, drop upon return
106 parts do not need BKL - better yet, now you can shift lock_kernel() and
156 ->setattr() is called without BKL now. Caller _always_ holds ->i_mutex, so
158 Callers of notify_change() need ->i_mutex now.
179 s_export_op is now required for exporting a filesystem.
279 ->permission() is called without BKL now. Grab it on entry, drop upon
281 your method or its parts do not need BKL - better yet, now you can
[all …]
/linux-6.14.4/kernel/sched/
Dpelt.c89 * ... |---x---|------| ... |------|-----x (now)
159 * (now) (~1ms ago) (~2ms ago)
180 ___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()
220 * Now we know we crossed measurement unit boundaries. The *_avg in ___update_load_sum()
295 int __update_load_avg_blocked_se(u64 now, struct sched_entity *se) in __update_load_avg_blocked_se() argument
297 if (___update_load_sum(now, &se->avg, 0, 0, 0)) { in __update_load_avg_blocked_se()
306 int __update_load_avg_se(u64 now, struct cfs_rq *cfs_rq, struct sched_entity *se) in __update_load_avg_se() argument
308 if (___update_load_sum(now, &se->avg, !!se->on_rq, se_runnable(se), in __update_load_avg_se()
[all …]
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 …]
Dpsi.c256 u64 now, state_start; in get_recent_times() local
266 now = cpu_clock(cpu); in get_recent_times()
287 times[s] += now - state_start; in get_recent_times()
396 static void window_reset(struct psi_window *win, u64 now, u64 value, in window_reset() argument
399 win->start_time = now; in window_reset()
415 static u64 window_update(struct psi_window *win, u64 now, u64 value) in window_update() argument
420 elapsed = now - win->start_time; in window_update()
430 window_reset(win, now, value, growth); in window_update()
441 static void update_triggers(struct psi_group *group, u64 now, in update_triggers() argument
478 growth = window_update(&t->win, now, total[t->state]); in update_triggers()
[all …]
/linux-6.14.4/net/rxrpc/
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()
303 ktime_t now, t; in rxrpc_input_call_event() local
351 now = ktime_get_real(); in rxrpc_input_call_event()
[all …]
/linux-6.14.4/fs/bcachefs/
Dclock.c26 if (time_after_eq64((u64) atomic64_read(&clock->now), timer->expire)) { in bch2_io_timer_add()
129 static struct io_timer *get_expired_timer(struct io_clock *clock, u64 now) in get_expired_timer() argument
134 time_after_eq64(now, clock->timers.data[0]->expire)) { in get_expired_timer()
145 u64 now = atomic64_add_return(sectors, &clock->now); in __bch2_increment_clock() local
148 while ((timer = get_expired_timer(clock, now))) in __bch2_increment_clock()
157 u64 now = atomic64_read(&clock->now); in bch2_io_timers_to_text() local
160 prt_printf(out, "current time:\t%llu\n", now); in bch2_io_timers_to_text()
179 atomic64_set(&clock->now, 0); in bch2_io_clock_init()
/linux-6.14.4/tools/testing/selftests/timers/
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.14.4/kernel/trace/
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-6.14.4/fs/affs/
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 …]

12345678910>>...240