| /linux/tools/testing/selftests/prctl/ |
| H 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()
|
| H 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()
|
| H 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/ |
| H A D | nested_tsc_adjust_test.c | 67 uint64_t l1_tsc = rdtsc() - TSC_OFFSET_VALUE; in l2_guest_code() 81 GUEST_ASSERT(rdtsc() < TSC_ADJUST_VALUE); in l1_guest_code() 82 wrmsr(MSR_IA32_TSC, rdtsc() - TSC_ADJUST_VALUE); in l1_guest_code()
|
| H A D | nested_tsc_scaling_test.c | 180 tsc_start = rdtsc(); in main() 182 tsc_end = rdtsc(); in main()
|
| H A D | xapic_ipi_test.c | 175 tsc_start = rdtsc(); in sender_guest_code() 176 while (rdtsc() - tsc_start < 2000000000) { in sender_guest_code()
|
| /linux/tools/power/cpupower/debug/kernel/ |
| H 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/ |
| H A D | vmwgfx_mksstat.h | 101 .t0 = rdtsc(), \ 120 …const u64 dt = rdtsc() - _##kern_cntr.t0; …
|
| /linux/tools/testing/selftests/kvm/ |
| H A 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/tools/perf/arch/arm64/util/ |
| H A D | tsc.c | 7 u64 rdtsc(void) in rdtsc() function
|
| H A D | hisi-ptt.c | 150 return rdtsc(); in hisi_ptt_reference()
|
| /linux/arch/x86/include/asm/ |
| H A D | timex.h | 13 return rdtsc(); in random_get_entropy()
|
| H A D | entry-common.h | 95 choose_random_kstack_offset(rdtsc()); in arch_exit_to_user_mode_prepare()
|
| /linux/tools/perf/tests/shell/ |
| H A D | test_intel_pt.sh | 318 static inline uint64_t rdtsc(void) 334 .timestamp = rdtsc(), 365 .p.timestamp = rdtsc(),
|
| /linux/arch/x86/kernel/cpu/ |
| H A D | vmware.c | 168 ns = mul_u64_u32_shr(rdtsc(), vmware_cyc2ns.cyc2ns_mul, in vmware_sched_clock() 177 unsigned long long tsc_now = rdtsc(); in vmware_cyc2ns_setup()
|
| H A D | amd.c | 142 d = rdtsc(); in init_amd_k6() 145 d2 = rdtsc(); in init_amd_k6()
|
| /linux/arch/x86/kernel/cpu/mce/ |
| H A D | apei.c | 60 m->tsc = rdtsc(); in apei_mce_report_mem_error()
|
| H A D | core.c | 829 m->tsc = rdtsc(); in machine_check_poll() 1602 m->tsc = rdtsc(); in do_machine_check()
|
| /linux/tools/perf/tests/ |
| H A D | perf-time-to-tsc.c | 141 test_tsc = rdtsc(); in test__perf_time_to_tsc()
|
| /linux/arch/x86/kernel/apic/ |
| H A D | apic.c | 430 tsc = rdtsc(); in lapic_next_deadline() 664 tsc = rdtsc(); in lapic_cal_handler() 844 tsc_start = rdtsc(); in calibrate_APIC_clock() 858 u64 tsc_now = rdtsc(); in calibrate_APIC_clock()
|
| H A D | io_apic.c | 1480 start = rdtsc(); in delay_with_tsc() 1490 now = rdtsc(); in delay_with_tsc()
|
| /linux/tools/testing/selftests/kvm/include/x86/ |
| H A D | processor.h | 443 static inline uint64_t rdtsc(void) in rdtsc() function 856 start = rdtsc(); in udelay() 858 now = rdtsc(); in udelay()
|
| /linux/tools/perf/arch/x86/util/ |
| H A D | intel-bts.c | 276 return rdtsc(); in intel_bts_reference()
|
| /linux/arch/x86/kvm/ |
| H A D | lapic.c | 1937 guest_tsc = kvm_read_l1_tsc(vcpu, rdtsc()); in __kvm_wait_lapic_expire() 1947 guest_tsc = kvm_read_l1_tsc(vcpu, rdtsc()); in __kvm_wait_lapic_expire() 2031 guest_tsc = kvm_read_l1_tsc(vcpu, rdtsc()); in start_sw_tscdeadline() 2080 u64 tscl = rdtsc(); in set_target_expiration() 2131 u64 tscl = rdtsc(); in advance_periodic_target_expiration()
|
| H A D | pmu.c | 661 ctr_val = rdtsc(); in kvm_pmu_rdpmc_vmware()
|