Home
last modified time | relevance | path

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

/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()
/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 …]
/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()
/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
/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