Home
last modified time | relevance | path

Searched refs:now_ns (Results 1 – 7 of 7) sorted by relevance

/linux-6.1.9/kernel/
Dtsacct.c26 u64 now_ns, delta; in bacct_add_tsk() local
32 now_ns = ktime_get_ns(); in bacct_add_tsk()
34 delta = now_ns - tsk->group_leader->start_time; in bacct_add_tsk()
38 delta = now_ns - tsk->start_time; in bacct_add_tsk()
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dtc_redirect.c368 __u64 now_ns, pkt_ns; in rcv_tstamp() local
396 now_ns = now_ts.tv_sec * NSEC_PER_SEC + now_ts.tv_nsec; in rcv_tstamp()
398 if (ASSERT_GE(now_ns, pkt_ns, "check rcv tstamp")) in rcv_tstamp()
399 ASSERT_LT(now_ns - pkt_ns, 5 * NSEC_PER_SEC, in rcv_tstamp()
411 __u64 now_ns; in snd_tstamp() local
416 now_ns = now_ts.tv_sec * NSEC_PER_SEC + now_ts.tv_nsec; in snd_tstamp()
428 cmsg->cmsg_len = CMSG_LEN(sizeof(now_ns)); in snd_tstamp()
429 *(__u64 *)CMSG_DATA(cmsg) = now_ns; in snd_tstamp()
/linux-6.1.9/block/
Dbfq-iosched.c2055 static void bfq_update_io_intensity(struct bfq_queue *bfqq, u64 now_ns) in bfq_update_io_intensity() argument
2057 u64 tot_io_time = now_ns - bfqq->io_start_time; in bfq_update_io_intensity()
2061 now_ns - bfqq->ttime.last_end_request; in bfq_update_io_intensity()
2080 bfqq->io_start_time = now_ns - (tot_io_time>>1); in bfq_update_io_intensity()
2137 u64 now_ns) in bfq_check_waker() argument
2144 now_ns - bfqd->last_completion >= 4 * NSEC_PER_MSEC) in bfq_check_waker()
2155 now_ns > bfqq->waker_detection_started + in bfq_check_waker()
2165 bfqq->waker_detection_started = now_ns; in bfq_check_waker()
2213 u64 now_ns = ktime_get_ns(); in bfq_add_request() local
2224 bfq_check_waker(bfqd, bfqq, now_ns); in bfq_add_request()
[all …]
Dblk-iocost.c556 u64 now_ns; member
805 u64 now_ns; in ioc_autop_idx() local
825 now_ns = ktime_get_ns(); in ioc_autop_idx()
829 ioc->autop_too_fast_at = now_ns; in ioc_autop_idx()
830 if (now_ns - ioc->autop_too_fast_at >= AUTOP_CYCLE_NSEC) in ioc_autop_idx()
838 ioc->autop_too_slow_at = now_ns; in ioc_autop_idx()
839 if (now_ns - ioc->autop_too_slow_at >= AUTOP_CYCLE_NSEC) in ioc_autop_idx()
1022 now->now_ns = ktime_get(); in ioc_now()
1023 now->now = ktime_to_us(now->now_ns); in ioc_now()
1525 expires = now->now_ns + in iocg_kick_waitq()
/linux-6.1.9/drivers/ptp/
Dptp_idt82p33.c209 s64 now_ns; in _idt82p33_adjtime() local
219 now_ns = timespec64_to_ns(&ts); in _idt82p33_adjtime()
220 now_ns += delta_ns + idt82p33->tod_write_overhead_ns; in _idt82p33_adjtime()
222 ts = ns_to_timespec64(now_ns); in _idt82p33_adjtime()
/linux-6.1.9/arch/mips/kvm/
Demulate.c330 s64 now_ns, periods; in kvm_mips_ktime_to_count() local
333 now_ns = ktime_to_ns(now); in kvm_mips_ktime_to_count()
334 delta = now_ns + vcpu->arch.count_dyn_bias; in kvm_mips_ktime_to_count()
338 periods = div64_s64(now_ns, vcpu->arch.count_period); in kvm_mips_ktime_to_count()
341 delta = now_ns + vcpu->arch.count_dyn_bias; in kvm_mips_ktime_to_count()
/linux-6.1.9/net/ipv4/
Dtcp_bbr.c440 u64 now_ns, edt_ns, interval_us; in bbr_packets_in_net_at_edt() local
443 now_ns = tp->tcp_clock_cache; in bbr_packets_in_net_at_edt()
444 edt_ns = max(tp->tcp_wstamp_ns, now_ns); in bbr_packets_in_net_at_edt()
445 interval_us = div_u64(edt_ns - now_ns, NSEC_PER_USEC); in bbr_packets_in_net_at_edt()