/linux/tools/testing/selftests/prctl/ |
A 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()
|
A 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()
|
A 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/tools/testing/selftests/kvm/x86_64/ |
A D | vmx_preemption_timer_test.c | 43 l2_vmx_pt_start = (rdtsc() >> vmx_pt_rate) << vmx_pt_rate; in l2_guest_code() 49 l2_vmx_pt_finish = rdtsc(); in l2_guest_code() 65 while ((l2_vmx_pt_finish = rdtsc())) in l2_guest_code() 116 l1_vmx_pt_start = (rdtsc() >> vmx_pt_rate) << vmx_pt_rate; in l1_guest_code() 120 l1_vmx_pt_finish = rdtsc(); in l1_guest_code()
|
A D | hyperv_clock.c | 60 r1 = rdtsc(); in check_tsc_msr_rdtsc() 63 r2 = rdtsc(); in check_tsc_msr_rdtsc() 79 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() 188 r2 = rdtsc(); in host_check_tsc_msr_rdtsc()
|
A D | vmx_tsc_adjust_test.c | 74 uint64_t l1_tsc = rdtsc() - TSC_OFFSET_VALUE; in l2_guest_code() 90 GUEST_ASSERT(rdtsc() < TSC_ADJUST_VALUE); in l1_guest_code() 91 wrmsr(MSR_IA32_TSC, rdtsc() - TSC_ADJUST_VALUE); in l1_guest_code()
|
A D | vmx_nested_tsc_scaling_test.c | 178 tsc_start = rdtsc(); in main() 180 tsc_end = rdtsc(); in main()
|
A D | xapic_ipi_test.c | 180 tsc_start = rdtsc(); in sender_guest_code() 181 while (rdtsc() - tsc_start < 2000000000) { in sender_guest_code()
|
/linux/tools/power/cpupower/debug/kernel/ |
A D | cpufreq-test_tsc.c | 85 then_tsc = rdtsc(); in cpufreq_test_tsc() 89 now_tsc = rdtsc(); in cpufreq_test_tsc()
|
/linux/drivers/gpu/drm/vmwgfx/ |
A D | vmwgfx_mksstat.h | 99 .t0 = rdtsc(), \ 118 …const u64 dt = rdtsc() - _##kern_cntr.t0; …
|
/linux/tools/testing/selftests/kvm/ |
A D | system_counter_offset_test.c | 48 return rdtsc(); in guest_read_system_counter() 53 return rdtsc() + test->tsc_offset; in host_read_guest_system_counter()
|
/linux/tools/perf/arch/x86/tests/ |
A D | rdpmc.c | 28 static u64 rdtsc(void) in rdtsc() function 51 cyc = rdtsc(); in mmap_read_self()
|
/linux/tools/perf/arch/arm64/util/ |
A D | tsc.c | 7 u64 rdtsc(void) in rdtsc() function
|
/linux/tools/perf/arch/x86/util/ |
A D | tsc.c | 6 u64 rdtsc(void) in rdtsc() function
|
/linux/tools/perf/util/ |
A D | tsc.h | 27 u64 rdtsc(void);
|
A D | tsc.c | 111 u64 __weak rdtsc(void) in rdtsc() function
|
/linux/arch/x86/include/asm/ |
A D | stackprotector.h | 66 tsc = rdtsc(); in boot_init_stack_canary()
|
A D | tsc.h | 28 return rdtsc(); in get_cycles()
|
A D | entry-common.h | 88 choose_random_kstack_offset(rdtsc() & 0xFF); in arch_exit_to_user_mode_prepare()
|
/linux/arch/x86/lib/ |
A D | kaslr.c | 76 raw = rdtsc(); in kaslr_get_random_long()
|
A D | delay.c | 195 *timer_val = rdtsc(); in read_current_timer()
|
/linux/arch/x86/kernel/cpu/ |
A 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()
|
/linux/arch/x86/kernel/ |
A D | tsc.c | 191 __set_cyc2ns_scale(tsc_khz, smp_processor_id(), rdtsc()); in cyc2ns_init_boot_cpu() 221 u64 tsc_now = rdtsc(); in native_sched_clock() 1008 set_cyc2ns_scale(tsc_khz, freq->policy->cpu, rdtsc()); in time_cpufreq_notifier()
|
A D | espfix_64.c | 105 rand = rdtsc(); in init_espfix_random()
|
/linux/drivers/thermal/intel/ |
A D | intel_powerclamp.c | 334 tsc_now = rdtsc(); in powerclamp_adjust_controls() 453 tsc_now = rdtsc(); in poll_pkg_cstate()
|