| /linux/include/trace/events/ |
| H A D | iocost.h | 16 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) 42 __entry->now = now->now; 43 __entry->vnow = now->vnow; 54 TP_printk("[%s:%s] now=%llu:%llu vrate=%llu " 58 __entry->now, __entry->vnow, __entry->vrate, 66 TP_PROTO(struct ioc_gq *iocg, const char *path, struct ioc_now *now, [all...] |
| H A D | alarmtimer.h | 49 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 D | timer.h | 64 __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, 257 * @now: variable which contains current time of the timers base. 263 TP_PROTO(struct hrtimer *hrtimer, ktime_t now), 265 TP_ARGS(hrtimer, now), [all …]
|
| H A D | napi.h | 43 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 D | vfork_exec.c | 24 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 D | exec.c | 23 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 D | clock_nanosleep.c | 26 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 D | conntrack_resize.sh | 79 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 …]
|
| /linux/block/ |
| H A D | blk-iocost.c | 566 u64 now; 999 static void ioc_refresh_vrate(struct ioc *ioc, struct ioc_now *now) in ioc_adjust_base_vrate() 1001 s64 pleft = ioc->period_at + ioc->period_us - now->now; in ioc_adjust_base_vrate() 1078 static void ioc_now(struct ioc *ioc, struct ioc_now *now) in __propagate_weights() 1083 now->now_ns = blk_time_get_ns(); in __propagate_weights() 1084 now->now = ktime_to_us(now->now_ns); in __propagate_weights() 1097 now in __propagate_weights() 561 u64 now; global() member 943 ioc_refresh_vrate(struct ioc * ioc,struct ioc_now * now) ioc_refresh_vrate() argument 1022 ioc_now(struct ioc * ioc,struct ioc_now * now) ioc_now() argument 1046 ioc_start_period(struct ioc * ioc,struct ioc_now * now) ioc_start_period() argument 1065 __propagate_weights(struct ioc_gq * iocg,u32 active,u32 inuse,bool save,struct ioc_now * now) __propagate_weights() argument 1147 propagate_weights(struct ioc_gq * iocg,u32 active,u32 inuse,bool save,struct ioc_now * now) propagate_weights() argument 1233 weight_updated(struct ioc_gq * iocg,struct ioc_now * now) weight_updated() argument 1248 iocg_activate(struct ioc_gq * iocg,struct ioc_now * now) iocg_activate() argument 1333 iocg_kick_delay(struct ioc_gq * iocg,struct ioc_now * now) iocg_kick_delay() argument 1399 iocg_incur_debt(struct ioc_gq * iocg,u64 abs_cost,struct ioc_now * now) iocg_incur_debt() argument 1424 iocg_pay_debt(struct ioc_gq * iocg,u64 abs_vpay,struct ioc_now * now) iocg_pay_debt() argument 1481 iocg_kick_waitq(struct ioc_gq * iocg,bool pay_debt,struct ioc_now * now) iocg_kick_waitq() argument 1567 struct ioc_now now; iocg_waitq_timer_fn() local 1694 iocg_flush_stat_leaf(struct ioc_gq * iocg,struct ioc_now * now) iocg_flush_stat_leaf() argument 1718 iocg_flush_stat(struct list_head * target_iocgs,struct ioc_now * now) iocg_flush_stat() argument 1742 hweight_after_donation(struct ioc_gq * iocg,u32 old_hwi,u32 hwm,u32 usage,struct ioc_now * now) hweight_after_donation() argument 1847 transfer_surpluses(struct list_head * surpluses,struct ioc_now * now) transfer_surpluses() argument 2074 ioc_forgive_debts(struct ioc * ioc,u64 usage_us_sum,int nr_debtors,struct ioc_now * now) ioc_forgive_debts() argument 2166 ioc_check_iocgs(struct ioc * ioc,struct ioc_now * now) ioc_check_iocgs() argument 2238 struct ioc_now now; ioc_timer_fn() local 2467 adjust_inuse_and_calc_cost(struct ioc_gq * iocg,u64 vtime,u64 abs_cost,struct ioc_now * now) adjust_inuse_and_calc_cost() argument 2614 iocg_handle_over_budget(struct rq_qos * rqos,struct ioc_gq * iocg,struct bio * bio,struct ioc_now * now,struct iocg_wait * wait,bool use_debt,bool ioc_locked,u64 abs_cost,u64 cost) iocg_handle_over_budget() argument 2692 struct ioc_now now; ioc_rqos_throttle() local 2781 struct ioc_now now; ioc_rqos_merge() local 3022 struct ioc_now now; ioc_pd_init() local 3074 struct ioc_now now; ioc_pd_free() local 3151 struct ioc_now now; ioc_weight_write() local [all...] |
| /linux/tools/power/cpupower/bench/ |
| H A D | benchmark.c | 35 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 D | psi.c | 278 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 …]
|
| /linux/include/net/ |
| H A D | codel_impl.h | 117 codel_time_t now) in codel_should_drop() argument 128 WRITE_ONCE(vars->ldelay, now - skb_time_func(skb)); in codel_should_drop() 144 vars->first_above_time = now + params->interval; in codel_should_drop() 145 } else if (codel_time_after(now, vars->first_above_time)) { in codel_should_drop() 163 codel_time_t now; in codel_dequeue() local 171 now = codel_get_time(); in codel_dequeue() 173 skb_len_func, skb_time_func, backlog, now); in codel_dequeue() 178 } else if (codel_time_after_eq(now, vars->drop_next)) { in codel_dequeue() 184 * that the next drop should happen now, in codel_dequeue() 188 codel_time_after_eq(now, vars->drop_next)) { in codel_dequeue() [all …]
|
| /linux/Documentation/filesystems/ |
| H A D | porting.rst | 43 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 yo [all...] |
| /linux/kernel/time/ |
| H A D | tick-sched.c | 58 static void tick_do_update_jiffies64(ktime_t now) in tick_do_update_jiffies64() 73 if (ktime_before(now, smp_load_acquire(&tick_next_period))) in tick_do_update_jiffies64() 87 if (ktime_before(now, nextp)) in tick_do_update_jiffies64() 97 if (ktime_before(now, tick_next_period)) { in tick_do_update_jiffies64() 104 delta = ktime_sub(now, tick_next_period); in tick_do_update_jiffies64() 211 static bool tick_limited_update_jiffies64(struct tick_sched *ts, ktime_t now) in tick_limited_update_jiffies64() 221 tick_do_update_jiffies64(now); in tick_limited_update_jiffies64() 228 static void tick_sched_do_timer(struct tick_sched *ts, ktime_t now) in tick_sched_do_timer() 254 tick_do_update_jiffies64(now); in tick_sched_do_timer() 265 if (tick_limited_update_jiffies64(ts, now)) { in tick_sched_do_timer() 57 tick_do_update_jiffies64(ktime_t now) tick_do_update_jiffies64() argument 210 tick_limited_update_jiffies64(struct tick_sched * ts,ktime_t now) tick_limited_update_jiffies64() argument 227 tick_sched_do_timer(struct tick_sched * ts,ktime_t now) tick_sched_do_timer() argument 308 ktime_t now = ktime_get(); tick_nohz_handler() local 739 tick_nohz_update_jiffies(ktime_t now) tick_nohz_update_jiffies() argument 753 tick_forward_now(ktime_t expires,ktime_t now) tick_forward_now() argument 766 tick_nohz_forward_last_tick(struct tick_sched * ts,ktime_t now) tick_nohz_forward_last_tick() argument 772 tick_nohz_restart(struct tick_sched * ts,ktime_t now) tick_nohz_restart() argument 1021 tick_nohz_restart_sched_tick(struct tick_sched * ts,ktime_t now) tick_nohz_restart_sched_tick() argument 1041 __tick_nohz_full_update_tick(struct tick_sched * ts,ktime_t now) __tick_nohz_full_update_tick() argument 1299 ktime_t now = ts->idle_entrytime; tick_nohz_get_sleep_length() local 1338 tick_nohz_dyntick_stop(struct tick_sched * ts,ktime_t now) tick_nohz_dyntick_stop() argument 1361 tick_nohz_idle_update_tick(struct tick_sched * ts,ktime_t now) tick_nohz_idle_update_tick() argument 1388 ktime_t now; tick_nohz_idle_exit() local 1455 ktime_t now; tick_nohz_irq_enter() local [all...] |
| /linux/drivers/md/bcache/ |
| H A D | util.c | 165 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/net/rxrpc/ |
| H A D | call_event.c | 27 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 D | pvclock.c | 129 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 D | trace_clock.c | 98 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 D | Changes | 103 - 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/drivers/rtc/ |
| H A D | interface.c | 215 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/sched/ |
| H A D | sch_etf.c | 80 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() 195 /* Now we may need to re-arm the qdisc watchdog for the next packet. */ in etf_enqueue_timesortedlist() 202 ktime_t now) in timesortedlist_drop() 209 if (ktime_after(skb->tstamp, now)) in timesortedlist_drop() 214 /* The rbnode field in the skb re-uses these fields, now that in timesortedlist_drop() 238 /* The rbnode field in the skb re-uses these fields, now that in timesortedlist_remove() 258 ktime_t now, next; in etf_dequeue_timesortedlist() 264 now in etf_dequeue_timesortedlist() 201 timesortedlist_drop(struct Qdisc * sch,struct sk_buff * skb,ktime_t now) timesortedlist_drop() argument 257 ktime_t now, next; etf_dequeue_timesortedlist() local [all...] |
| /linux/tools/testing/selftests/timers/ |
| H A D | nanosleep.c | 57 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/arch/mips/kernel/ |
| H A D | sync-r4k.c | 50 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/tools/testing/selftests/bpf/prog_tests/ |
| H A D | time_tai.c | 37 __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/net/dccp/ccids/ |
| H A D | ccid3.c | |