Searched refs:tsc_freq (Results 1 – 3 of 3) sorted by relevance
/tools/testing/selftests/kvm/x86_64/ |
D | hyperv_clock.c | 53 u64 tsc_freq, r1, r2, t1, t2; in check_tsc_msr_rdtsc() local 56 tsc_freq = rdmsr(HV_X64_MSR_TSC_FREQUENCY); in check_tsc_msr_rdtsc() 57 GUEST_ASSERT(tsc_freq > 0); in check_tsc_msr_rdtsc() 71 delta_ns = ((t2 - t1) * 100) - ((r2 - r1) * 1000000000 / tsc_freq); in check_tsc_msr_rdtsc() 180 u64 tsc_freq, r1, r2, t1, t2; in host_check_tsc_msr_rdtsc() local 183 tsc_freq = vcpu_get_msr(vm, VCPU_ID, HV_X64_MSR_TSC_FREQUENCY); in host_check_tsc_msr_rdtsc() 184 TEST_ASSERT(tsc_freq > 0, "TSC frequency must be nonzero"); in host_check_tsc_msr_rdtsc() 198 delta_ns = ((t2 - t1) * 100) - ((r2 - r1) * 1000000000 / tsc_freq); in host_check_tsc_msr_rdtsc() 205 (t2 - t1) * 100, (r2 - r1) * 1000000000 / tsc_freq); in host_check_tsc_msr_rdtsc()
|
D | vmx_nested_tsc_scaling_test.c | 60 uint64_t tsc_start, tsc_end, tsc_freq; in check_tsc_freq() local 72 tsc_freq = tsc_end - tsc_start; in check_tsc_freq() 74 GUEST_CHECK(level, tsc_freq); in check_tsc_freq()
|
/tools/perf/util/ |
D | intel-pt.c | 3871 u64 tsc_freq = intel_pt_ns_to_ticks(pt, 1000000000); in intel_pt_process_auxtrace_info() local 3875 (tsc_freq + 50000000) / 100000000; in intel_pt_process_auxtrace_info() 3876 intel_pt_log("TSC frequency %"PRIu64"\n", tsc_freq); in intel_pt_process_auxtrace_info() 3879 pt->cbr2khz = tsc_freq / pt->max_non_turbo_ratio / 1000; in intel_pt_process_auxtrace_info()
|