/linux-6.1.9/tools/testing/selftests/prctl/ |
D | disable-tsc-test.c | 33 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()
|
D | disable-tsc-on-off-stress-test.c | 33 static uint64_t rdtsc(void) in rdtsc() function 57 rdtsc(); in sigsegv_cb() 66 rdtsc(); in task()
|
D | disable-tsc-ctxt-sw-stress-test.c | 31 static uint64_t rdtsc(void) in rdtsc() function 53 rdtsc(); in segvtask() 74 for(;;) rdtsc(); in rdtsctask()
|
/linux-6.1.9/tools/testing/selftests/kvm/x86_64/ |
D | hyperv_clock.c | 60 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()
|
D | vmx_preemption_timer_test.c | 42 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()
|
D | vmx_tsc_adjust_test.c | 71 uint64_t l1_tsc = rdtsc() - TSC_OFFSET_VALUE; in l2_guest_code() 87 GUEST_ASSERT(rdtsc() < TSC_ADJUST_VALUE); in l1_guest_code() 88 wrmsr(MSR_IA32_TSC, rdtsc() - TSC_ADJUST_VALUE); in l1_guest_code()
|
D | tsc_scaling_sync.c | 33 start_tsc = rdtsc(); in guest_code() 36 local_tsc = rdtsc(); in guest_code()
|
D | vmx_nested_tsc_scaling_test.c | 168 tsc_start = rdtsc(); in main() 170 tsc_end = rdtsc(); in main()
|
D | xapic_ipi_test.c | 176 tsc_start = rdtsc(); in sender_guest_code() 177 while (rdtsc() - tsc_start < 2000000000) { in sender_guest_code()
|
/linux-6.1.9/tools/power/cpupower/debug/kernel/ |
D | cpufreq-test_tsc.c | 85 then_tsc = rdtsc(); in cpufreq_test_tsc() 89 now_tsc = rdtsc(); in cpufreq_test_tsc()
|
/linux-6.1.9/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_mksstat.h | 99 .t0 = rdtsc(), \ 118 …const u64 dt = rdtsc() - _##kern_cntr.t0; …
|
/linux-6.1.9/tools/testing/selftests/kvm/ |
D | system_counter_offset_test.c | 44 return rdtsc(); in guest_read_system_counter() 49 return rdtsc() + test->tsc_offset; in host_read_guest_system_counter()
|
/linux-6.1.9/tools/perf/arch/arm64/util/ |
D | tsc.c | 7 u64 rdtsc(void) in rdtsc() function
|
D | hisi-ptt.c | 149 return rdtsc(); in hisi_ptt_reference()
|
/linux-6.1.9/arch/x86/include/asm/ |
D | timex.h | 13 return rdtsc(); in random_get_entropy()
|
D | stackprotector.h | 66 tsc = rdtsc(); in boot_init_stack_canary()
|
D | tsc.h | 26 return rdtsc(); in get_cycles()
|
D | entry-common.h | 88 choose_random_kstack_offset(rdtsc() & 0xFF); in arch_exit_to_user_mode_prepare()
|
/linux-6.1.9/tools/perf/util/ |
D | tsc.h | 27 u64 rdtsc(void);
|
D | tsc.c | 111 u64 __weak rdtsc(void) in rdtsc() function
|
/linux-6.1.9/arch/x86/lib/ |
D | kaslr.c | 76 raw = rdtsc(); in kaslr_get_random_long()
|
D | delay.c | 195 *timer_val = rdtsc(); in read_current_timer()
|
/linux-6.1.9/tools/perf/arch/x86/util/ |
D | tsc.c | 10 u64 rdtsc(void) in rdtsc() function
|
/linux-6.1.9/tools/perf/tests/shell/ |
D | test_intel_pt.sh | 312 static inline uint64_t rdtsc(void) 328 .timestamp = rdtsc(), 359 .p.timestamp = rdtsc(),
|
/linux-6.1.9/arch/x86/kernel/cpu/ |
D | vmware.c | 150 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()
|