Home
last modified time | relevance | path

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

/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()
/tools/testing/selftests/kvm/x86_64/
Dvmx_preemption_timer_test.c43 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()
Dvmx_tsc_adjust_test.c74 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()
/tools/power/cpupower/debug/kernel/
Dcpufreq-test_tsc.c85 then_tsc = rdtsc(); in cpufreq_test_tsc()
89 now_tsc = rdtsc(); in cpufreq_test_tsc()
/tools/perf/arch/arm64/util/
Dtsc.c7 u64 rdtsc(void) in rdtsc() function
/tools/perf/arch/x86/util/
Dtsc.c6 u64 rdtsc(void) in rdtsc() function
Dintel-bts.c275 return rdtsc(); in intel_bts_reference()
Dintel-pt.c1181 return rdtsc(); in intel_pt_reference()
/tools/perf/util/
Dtsc.h25 u64 rdtsc(void);
Dtsc.c109 u64 __weak rdtsc(void) in rdtsc() function
/tools/perf/arch/x86/tests/
Drdpmc.c28 static u64 rdtsc(void) in rdtsc() function
51 cyc = rdtsc(); in mmap_read_self()
Dperf-time-to-tsc.c112 test_tsc = rdtsc(); in test__perf_time_to_tsc()
/tools/testing/selftests/kvm/include/x86_64/
Dprocessor.h81 static inline uint64_t rdtsc(void) in rdtsc() function
/tools/power/x86/turbostat/
Dturbostat.c1775 static unsigned long long rdtsc(void) in rdtsc() function
1910 t->tsc = rdtsc(); /* we are running on local CPU of interest */ in get_counters()
1934 t->tsc = rdtsc(); /* re-read close to APERF */ in get_counters()
1941 tsc_between = rdtsc(); in get_counters()
1946 tsc_after = rdtsc(); in get_counters()