Home
last modified time | relevance | path

Searched refs:delta_ns (Results 1 – 25 of 29) sorted by relevance

12

/linux-6.6.21/include/trace/events/
Dnmi.h13 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/
Dhyperv_clock.c54 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/
Dvcpu_timer.c28 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/
Dbench.h58 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);
Dbench.c38 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/
Devents-nmi.rst32 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/
Dalarmtimer-suspend.c99 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()
Dset-timer-lat.c99 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/
Dptp_idt82p33.c457 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 …]
Dptp_qoriq.c64 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()
Dptp_clockmatrix.c1566 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/
Dtest_vmlinux.c73 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/
Dbench_local_storage_create.c204 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()
Dbench_htab_mem.c299 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()
Dbench_local_storage_rcu_tasks_trace.c207 static void report_progress(int iter, struct bench_res *res, long delta_ns) in report_progress() argument
/linux-6.6.21/kernel/sched/
Dcpufreq_schedutil.c64 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/
Dsja1105_tas.c311 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/
Dcpufreq_governor.c274 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/
Dptp.c119 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/
Dbcm-phy-ptp.c309 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/
Dv3d_gem.c373 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/
Dpkt_sched.h76 u64 delta_ns);
/linux-6.6.21/kernel/time/
Dhrtimer.c1217 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/
Dxen.c147 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/
Dstmmac_tc.c998 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()

12