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