Home
last modified time | relevance | path

Searched refs:rdtsc (Results 1 – 25 of 50) sorted by relevance

12

/linux-6.6.21/tools/testing/selftests/prctl/ !
Ddisable-tsc-test.c33 static uint64_t rdtsc(void) in rdtsc() function
67 printf("rdtsc() == %llu\n", (unsigned long long)rdtsc()); in main()
75 printf("rdtsc() == %llu\n", (unsigned long long)rdtsc()); in main()
82 printf("rdtsc() == %llu\n", (unsigned long long)rdtsc()); in main()
91 printf("%llu\n", (unsigned long long)rdtsc()); in main()
Ddisable-tsc-on-off-stress-test.c33 static uint64_t rdtsc(void) in rdtsc() function
57 rdtsc(); in sigsegv_cb()
66 rdtsc(); in task()
Ddisable-tsc-ctxt-sw-stress-test.c31 static uint64_t rdtsc(void) in rdtsc() function
53 rdtsc(); in segvtask()
74 for(;;) rdtsc(); in rdtsctask()
/linux-6.6.21/tools/testing/selftests/kvm/x86_64/ !
Dhyperv_clock.c60 r1 = rdtsc(); in check_tsc_msr_rdtsc()
62 r1 = (r1 + rdtsc()) / 2; in check_tsc_msr_rdtsc()
64 r2 = rdtsc(); in check_tsc_msr_rdtsc()
66 r2 = (r2 + rdtsc()) / 2; in check_tsc_msr_rdtsc()
81 return mul_u64_u64_shr64(rdtsc(), tsc_page->tsc_scale) + tsc_page->tsc_offset; in get_tscpage_ts()
185 r1 = rdtsc(); in host_check_tsc_msr_rdtsc()
187 r1 = (r1 + rdtsc()) / 2; in host_check_tsc_msr_rdtsc()
189 r2 = rdtsc(); in host_check_tsc_msr_rdtsc()
191 r2 = (r2 + rdtsc()) / 2; in host_check_tsc_msr_rdtsc()
Dvmx_preemption_timer_test.c42 l2_vmx_pt_start = (rdtsc() >> vmx_pt_rate) << vmx_pt_rate; in l2_guest_code()
48 l2_vmx_pt_finish = rdtsc(); in l2_guest_code()
64 while ((l2_vmx_pt_finish = rdtsc())) in l2_guest_code()
115 l1_vmx_pt_start = (rdtsc() >> vmx_pt_rate) << vmx_pt_rate; in l1_guest_code()
119 l1_vmx_pt_finish = rdtsc(); in l1_guest_code()
Dvmx_tsc_adjust_test.c66 uint64_t l1_tsc = rdtsc() - TSC_OFFSET_VALUE; in l2_guest_code()
82 GUEST_ASSERT(rdtsc() < TSC_ADJUST_VALUE); in l1_guest_code()
83 wrmsr(MSR_IA32_TSC, rdtsc() - TSC_ADJUST_VALUE); in l1_guest_code()
Dtsc_scaling_sync.c29 start_tsc = rdtsc(); in guest_code()
32 local_tsc = rdtsc(); in guest_code()
Dvmx_nested_tsc_scaling_test.c164 tsc_start = rdtsc(); in main()
166 tsc_end = rdtsc(); in main()
Dxapic_ipi_test.c176 tsc_start = rdtsc(); in sender_guest_code()
177 while (rdtsc() - tsc_start < 2000000000) { in sender_guest_code()
/linux-6.6.21/tools/power/cpupower/debug/kernel/ !
Dcpufreq-test_tsc.c85 then_tsc = rdtsc(); in cpufreq_test_tsc()
89 now_tsc = rdtsc(); in cpufreq_test_tsc()
/linux-6.6.21/drivers/gpu/drm/vmwgfx/ !
Dvmwgfx_mksstat.h101 .t0 = rdtsc(), \
120 …const u64 dt = rdtsc() - _##kern_cntr.t0; …
/linux-6.6.21/tools/testing/selftests/kvm/ !
Dsystem_counter_offset_test.c44 return rdtsc(); in guest_read_system_counter()
49 return rdtsc() + test->tsc_offset; in host_read_guest_system_counter()
/linux-6.6.21/tools/perf/arch/arm64/util/ !
Dtsc.c7 u64 rdtsc(void) in rdtsc() function
Dhisi-ptt.c149 return rdtsc(); in hisi_ptt_reference()
/linux-6.6.21/arch/x86/include/asm/ !
Dtimex.h13 return rdtsc(); in random_get_entropy()
Dtsc.h26 return rdtsc(); in get_cycles()
Dentry-common.h88 choose_random_kstack_offset(rdtsc() & 0xFF); in arch_exit_to_user_mode_prepare()
/linux-6.6.21/tools/perf/util/ !
Dtsc.h27 u64 rdtsc(void);
Dtsc.c111 u64 __weak rdtsc(void) in rdtsc() function
/linux-6.6.21/arch/x86/lib/ !
Dkaslr.c76 raw = rdtsc(); in kaslr_get_random_long()
Ddelay.c195 *timer_val = rdtsc(); in read_current_timer()
/linux-6.6.21/tools/perf/arch/x86/util/ !
Dtsc.c11 u64 rdtsc(void) in rdtsc() function
/linux-6.6.21/arch/x86/kernel/cpu/ !
Dvmware.c150 ns = mul_u64_u32_shr(rdtsc(), vmware_cyc2ns.cyc2ns_mul, in vmware_sched_clock()
159 unsigned long long tsc_now = rdtsc(); in vmware_cyc2ns_setup()
/linux-6.6.21/tools/perf/tests/shell/ !
Dtest_intel_pt.sh312 static inline uint64_t rdtsc(void)
328 .timestamp = rdtsc(),
359 .p.timestamp = rdtsc(),
/linux-6.6.21/arch/x86/kernel/cpu/mce/ !
Dapei.c58 m.tsc = rdtsc(); in apei_mce_report_mem_error()

12