/linux-6.6.21/include/trace/events/ |
D | nmi.h | 13 TP_PROTO(void *handler, s64 delta_ns, int handled), 15 TP_ARGS(handler, delta_ns, handled), 19 __field( s64, delta_ns) 25 __entry->delta_ns = delta_ns; 31 __entry->delta_ns,
|
/linux-6.6.21/tools/testing/selftests/kvm/x86_64/ |
D | hyperv_clock.c | 54 s64 delta_ns; in check_tsc_msr_rdtsc() local 71 delta_ns = ((t2 - t1) * 100) - ((r2 - r1) * 1000000000 / tsc_freq); in check_tsc_msr_rdtsc() 72 if (delta_ns < 0) in check_tsc_msr_rdtsc() 73 delta_ns = -delta_ns; in check_tsc_msr_rdtsc() 76 GUEST_ASSERT(delta_ns * 100 < (t2 - t1) * 100); in check_tsc_msr_rdtsc() 179 s64 delta_ns; in host_check_tsc_msr_rdtsc() local 196 delta_ns = ((t2 - t1) * 100) - ((r2 - r1) * 1000000000 / tsc_freq); in host_check_tsc_msr_rdtsc() 197 if (delta_ns < 0) in host_check_tsc_msr_rdtsc() 198 delta_ns = -delta_ns; in host_check_tsc_msr_rdtsc() 201 TEST_ASSERT(delta_ns * 100 < (t2 - t1) * 100, in host_check_tsc_msr_rdtsc()
|
/linux-6.6.21/arch/riscv/kvm/ |
D | vcpu_timer.c | 28 u64 cycles_now, cycles_delta, delta_ns; in kvm_riscv_delta_cycles2ns() local 36 delta_ns = (cycles_delta * gt->nsec_mult) >> gt->nsec_shift; in kvm_riscv_delta_cycles2ns() 39 return delta_ns; in kvm_riscv_delta_cycles2ns() 44 u64 delta_ns; in kvm_riscv_vcpu_hrtimer_expired() local 50 delta_ns = kvm_riscv_delta_cycles2ns(t->next_cycles, gt, t); in kvm_riscv_vcpu_hrtimer_expired() 51 hrtimer_forward_now(&t->hrt, ktime_set(0, delta_ns)); in kvm_riscv_vcpu_hrtimer_expired() 87 u64 delta_ns; in kvm_riscv_vcpu_update_hrtimer() local 94 delta_ns = kvm_riscv_delta_cycles2ns(ncycles, gt, t); in kvm_riscv_vcpu_update_hrtimer() 96 hrtimer_start(&t->hrt, ktime_set(0, delta_ns), HRTIMER_MODE_REL); in kvm_riscv_vcpu_update_hrtimer() 111 u64 delta_ns; in kvm_riscv_vcpu_vstimer_expired() local [all …]
|
/linux-6.6.21/tools/testing/selftests/bpf/ |
D | bench.h | 58 void (*report_progress)(int iter, struct bench_res* res, long delta_ns); 70 void hits_drops_report_progress(int iter, struct bench_res *res, long delta_ns); 72 void false_hits_report_progress(int iter, struct bench_res *res, long delta_ns); 74 void ops_report_progress(int iter, struct bench_res *res, long delta_ns); 77 long delta_ns);
|
D | bench.c | 38 void false_hits_report_progress(int iter, struct bench_res *res, long delta_ns) in false_hits_report_progress() argument 43 iter, (delta_ns - 1000000000) / 1000.0); in false_hits_report_progress() 67 void hits_drops_report_progress(int iter, struct bench_res *res, long delta_ns) in hits_drops_report_progress() argument 72 hits_per_sec = res->hits / 1000000.0 / (delta_ns / 1000000000.0); in hits_drops_report_progress() 74 drops_per_sec = res->drops / 1000000.0 / (delta_ns / 1000000000.0); in hits_drops_report_progress() 77 iter, (delta_ns - 1000000000) / 1000.0); in hits_drops_report_progress() 158 void ops_report_progress(int iter, struct bench_res *res, long delta_ns) in ops_report_progress() argument 162 hits_per_sec = res->hits / 1000000.0 / (delta_ns / 1000000000.0); in ops_report_progress() 165 printf("Iter %3d (%7.3lfus): ", iter, (delta_ns - 1000000000) / 1000.0); in ops_report_progress() 192 long delta_ns) in local_storage_report_progress() argument [all …]
|
/linux-6.6.21/Documentation/trace/ |
D | events-nmi.rst | 32 to the filter is in nanoseconds! You can filter on 'delta_ns':: 35 echo 'handler==0xffffffff81625600 && delta_ns>1000000' > filter 41 …<idle>-0 [000] d.h3 505.397558: nmi_handler: perf_event_nmi_handler() delta_ns: 3236765 hand… 42 …<idle>-0 [000] d.h3 505.805893: nmi_handler: perf_event_nmi_handler() delta_ns: 3174234 hand… 43 …<idle>-0 [000] d.h3 506.158206: nmi_handler: perf_event_nmi_handler() delta_ns: 3084642 hand… 44 …<idle>-0 [000] d.h3 506.334346: nmi_handler: perf_event_nmi_handler() delta_ns: 3080351 hand…
|
/linux-6.6.21/tools/testing/selftests/timers/ |
D | alarmtimer-suspend.c | 99 long long delta_ns; in sigalarm() local 105 delta_ns = timespec_sub(start_time, ts); in sigalarm() 106 delta_ns -= NSEC_PER_SEC * SUSPEND_SECS * alarmcount; in sigalarm() 109 ts.tv_nsec, delta_ns); in sigalarm() 111 if (delta_ns > UNREASONABLE_LAT) { in sigalarm()
|
D | set-timer-lat.c | 99 long long delta_ns; in sigalarm() local 105 delta_ns = timespec_sub(start_time, ts); in sigalarm() 106 delta_ns -= NSEC_PER_SEC * TIMER_SECS * alarmcount; in sigalarm() 108 if (delta_ns < 0) in sigalarm() 111 if (delta_ns > max_latency_ns) in sigalarm() 112 max_latency_ns = delta_ns; in sigalarm()
|
/linux-6.6.21/drivers/ptp/ |
D | ptp_idt82p33.c | 457 s64 delta_ns) in _idt82p33_adjtime_immediate() argument 472 now_ns += delta_ns + idt82p33->tod_write_overhead_ns; in _idt82p33_adjtime_immediate() 482 s64 delta_ns) in _idt82p33_adjtime_internal_triggered() argument 500 ns = (ts.tv_sec + 2) * NSEC_PER_SEC + delta_ns + delay_ns; in _idt82p33_adjtime_internal_triggered() 502 ns = (ts.tv_sec + 1) * NSEC_PER_SEC + delta_ns + delay_ns; in _idt82p33_adjtime_internal_triggered() 515 (void)div_s64_rem(delta_ns, NSEC_PER_SEC, &remainder); in _idt82p33_adjtime_internal_triggered() 604 static int idt82p33_start_ddco(struct idt82p33_channel *channel, s32 delta_ns) in idt82p33_start_ddco() argument 615 if (abs(delta_ns) < DDCO_THRESHOLD_NS) in idt82p33_start_ddco() 619 ppb = delta_ns; in idt82p33_start_ddco() 1048 static int idt82p33_adjtime(struct ptp_clock_info *ptp, s64 delta_ns) in idt82p33_adjtime() argument [all …]
|
D | ptp_qoriq.c | 64 static void tmr_offset_write(struct ptp_qoriq *ptp_qoriq, u64 delta_ns) in tmr_offset_write() argument 67 u32 lo = delta_ns & 0xffffffff; in tmr_offset_write() 68 u32 hi = delta_ns >> 32; in tmr_offset_write()
|
D | ptp_clockmatrix.c | 1566 s32 delta_ns, in do_phase_pull_in_sw() argument 1579 if (abs(delta_ns) < PHASE_PULL_IN_MIN_THRESHOLD_NS) in do_phase_pull_in_sw() 1586 ppb = delta_ns; in do_phase_pull_in_sw() 1713 static int _idtcm_adjphase(struct idtcm_channel *channel, s32 delta_ns) in _idtcm_adjphase() argument 1727 phase_50ps = div_s64((s64)delta_ns * 1000, 50); in _idtcm_adjphase()
|
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | test_vmlinux.c | 73 int BPF_KPROBE(handle__kprobe, struct hrtimer *timer, ktime_t tim, u64 delta_ns, in BPF_KPROBE() argument 82 int BPF_PROG(handle__fentry, struct hrtimer *timer, ktime_t tim, u64 delta_ns, in BPF_PROG() argument
|
/linux-6.6.21/tools/testing/selftests/bpf/benchs/ |
D | bench_local_storage_create.c | 204 static void report_progress(int iter, struct bench_res *res, long delta_ns) in report_progress() argument 208 creates_per_sec = res->hits / 1000.0 / (delta_ns / 1000000000.0); in report_progress() 212 iter, (delta_ns - 1000000000) / 1000.0); in report_progress()
|
D | bench_htab_mem.c | 299 static void htab_mem_report_progress(int iter, struct bench_res *res, long delta_ns) in htab_mem_report_progress() argument 303 loop = res->hits / 1000.0 / (delta_ns / 1000000000.0); in htab_mem_report_progress() 305 printf("Iter %3d (%7.3lfus): ", iter, (delta_ns - 1000000000) / 1000.0); in htab_mem_report_progress()
|
D | bench_local_storage_rcu_tasks_trace.c | 207 static void report_progress(int iter, struct bench_res *res, long delta_ns) in report_progress() argument
|
/linux-6.6.21/kernel/sched/ |
D | cpufreq_schedutil.c | 64 s64 delta_ns; in sugov_should_update_freq() local 90 delta_ns = time - sg_policy->last_freq_update_time; in sugov_should_update_freq() 92 return delta_ns >= sg_policy->freq_update_delay_ns; in sugov_should_update_freq() 180 s64 delta_ns = time - sg_cpu->last_update; in sugov_iowait_reset() local 183 if (delta_ns <= TICK_NSEC) in sugov_iowait_reset()
|
/linux-6.6.21/drivers/net/dsa/sja1105/ |
D | sja1105_tas.c | 311 s64 delta_ns = offload->entries[i].interval; in sja1105_init_scheduling() local 313 schedule[k].delta = ns_to_sja1105_delta(delta_ns); in sja1105_init_scheduling() 548 s64 delta_ns = admin->entries[i].interval; in sja1105_setup_tc_taprio() local 549 s64 delta_cycles = ns_to_sja1105_delta(delta_ns); in sja1105_setup_tc_taprio() 557 delta_ns, too_long ? "long" : "short", i); in sja1105_setup_tc_taprio()
|
/linux-6.6.21/drivers/cpufreq/ |
D | cpufreq_governor.c | 274 u64 delta_ns, lst; in dbs_update_util_handler() local 294 delta_ns = time - lst; in dbs_update_util_handler() 295 if ((s64)delta_ns < policy_dbs->sample_delay_ns) in dbs_update_util_handler()
|
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/af/ |
D | ptp.c | 119 ktime_t delta_ns, period_ns; in ptp_reset_thresh() local 123 delta_ns = ktime_to_ns(ktime_sub(curr_ts, ptp->last_ts)); in ptp_reset_thresh() 134 period_ns = ktime_set(0, (NSEC_PER_SEC + 100 - delta_ns)); in ptp_reset_thresh()
|
/linux-6.6.21/drivers/net/phy/ |
D | bcm-phy-ptp.c | 309 s64 delta_ns) in bcm_ptp_adjtime_locked() argument 317 ns = timespec64_to_ns(&ts) + delta_ns; in bcm_ptp_adjtime_locked() 324 static int bcm_ptp_adjtime(struct ptp_clock_info *info, s64 delta_ns) in bcm_ptp_adjtime() argument 330 err = bcm_ptp_adjtime_locked(priv, delta_ns); in bcm_ptp_adjtime()
|
/linux-6.6.21/drivers/gpu/drm/v3d/ |
D | v3d_gem.c | 373 u64 delta_ns; in v3d_wait_bo_ioctl() local 386 delta_ns = ktime_to_ns(ktime_sub(ktime_get(), start)); in v3d_wait_bo_ioctl() 387 if (delta_ns < args->timeout_ns) in v3d_wait_bo_ioctl() 388 args->timeout_ns -= delta_ns; in v3d_wait_bo_ioctl()
|
/linux-6.6.21/include/net/ |
D | pkt_sched.h | 76 u64 delta_ns);
|
/linux-6.6.21/kernel/time/ |
D | hrtimer.c | 1217 u64 delta_ns, const enum hrtimer_mode mode, in __hrtimer_start_range_ns() argument 1252 hrtimer_set_expires_range_ns(timer, tim, delta_ns); in __hrtimer_start_range_ns() 1285 u64 delta_ns, const enum hrtimer_mode mode) in hrtimer_start_range_ns() argument 1302 if (__hrtimer_start_range_ns(timer, tim, delta_ns, mode, base)) in hrtimer_start_range_ns()
|
/linux-6.6.21/arch/x86/kvm/ |
D | xen.c | 147 static void kvm_xen_start_timer(struct kvm_vcpu *vcpu, u64 guest_abs, s64 delta_ns) in kvm_xen_start_timer() argument 152 if (delta_ns <= 0) { in kvm_xen_start_timer() 157 ktime_add_ns(ktime_now, delta_ns), in kvm_xen_start_timer() 447 u64 delta_ns = now - vx->runstate_entry_time; in kvm_xen_update_runstate() local 460 delta_ns -= steal_ns; in kvm_xen_update_runstate() 466 vx->runstate_times[vx->current_runstate] += delta_ns; in kvm_xen_update_runstate()
|
/linux-6.6.21/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_tc.c | 998 s64 delta_ns = qopt->entries[i].interval; in tc_setup_taprio() local 1001 if (delta_ns > GENMASK(wid, 0)) in tc_setup_taprio() 1023 priv->plat->est->gcl[i] = delta_ns | (gates << wid); in tc_setup_taprio()
|