Searched refs:tsc_freq (Results 1 – 4 of 4) sorted by relevance
/linux-6.3-rc2/tools/testing/selftests/kvm/x86_64/ |
A 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() 178 u64 tsc_freq, r1, r2, t1, t2; in host_check_tsc_msr_rdtsc() local 181 tsc_freq = vcpu_get_msr(vcpu, HV_X64_MSR_TSC_FREQUENCY); in host_check_tsc_msr_rdtsc() 182 TEST_ASSERT(tsc_freq > 0, "TSC frequency must be nonzero"); in host_check_tsc_msr_rdtsc() 196 delta_ns = ((t2 - t1) * 100) - ((r2 - r1) * 1000000000 / tsc_freq); in host_check_tsc_msr_rdtsc() 203 (t2 - t1) * 100, (r2 - r1) * 1000000000 / tsc_freq); in host_check_tsc_msr_rdtsc()
|
A D | vmx_nested_tsc_scaling_test.c | 57 uint64_t tsc_start, tsc_end, tsc_freq; in check_tsc_freq() local 69 tsc_freq = tsc_end - tsc_start; in check_tsc_freq() 71 GUEST_CHECK(level, tsc_freq); in check_tsc_freq()
|
/linux-6.3-rc2/arch/x86/kernel/ |
A D | tsc.c | 905 unsigned long tsc_freq = native_calibrate_cpu_early(); in native_calibrate_cpu() local 907 if (!tsc_freq) in native_calibrate_cpu() 908 tsc_freq = pit_hpet_ptimer_calibrate_cpu(); in native_calibrate_cpu() 910 return tsc_freq; in native_calibrate_cpu()
|
/linux-6.3-rc2/tools/perf/util/ |
A D | intel-pt.c | 4363 u64 tsc_freq = intel_pt_ns_to_ticks(pt, 1000000000); in intel_pt_process_auxtrace_info() local 4367 (tsc_freq + 50000000) / 100000000; in intel_pt_process_auxtrace_info() 4368 intel_pt_log("TSC frequency %"PRIu64"\n", tsc_freq); in intel_pt_process_auxtrace_info() 4371 pt->cbr2khz = tsc_freq / pt->max_non_turbo_ratio / 1000; in intel_pt_process_auxtrace_info()
|
Completed in 25 milliseconds