Home
last modified time | relevance | path

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

123

/openbmc/linux/tools/testing/selftests/prctl/
H A 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()
H A Ddisable-tsc-on-off-stress-test.c33 static uint64_t rdtsc(void) in rdtsc() function
57 rdtsc(); in sigsegv_cb()
66 rdtsc(); in task()
H A Ddisable-tsc-ctxt-sw-stress-test.c31 static uint64_t rdtsc(void) in rdtsc() function
53 rdtsc(); in segvtask()
74 for(;;) rdtsc(); in rdtsctask()
/openbmc/linux/tools/testing/selftests/kvm/x86_64/
H A 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()
H A 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()
H A 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()
H A Dtsc_scaling_sync.c29 start_tsc = rdtsc(); in guest_code()
32 local_tsc = rdtsc(); in guest_code()
H A Dvmx_nested_tsc_scaling_test.c164 tsc_start = rdtsc(); in main()
166 tsc_end = rdtsc(); in main()
/openbmc/u-boot/drivers/timer/
H A Dtsc_timer.c241 tsc = rdtsc(); in pit_expect_msb()
243 *deltap = rdtsc() - prev_tsc; in pit_expect_msb()
388 u64 now_tick = rdtsc(); in tsc_timer_get_count()
399 gd->arch.tsc_base = rdtsc(); in tsc_timer_ensure_setup()
464 return rdtsc() - gd->arch.tsc_base; in timer_early_get_count()
/openbmc/linux/tools/power/cpupower/debug/kernel/
H A Dcpufreq-test_tsc.c85 then_tsc = rdtsc(); in cpufreq_test_tsc()
89 now_tsc = rdtsc(); in cpufreq_test_tsc()
/openbmc/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_mksstat.h101 .t0 = rdtsc(), \
120 …const u64 dt = rdtsc() - _##kern_cntr.t0; …
/openbmc/linux/tools/testing/selftests/kvm/
H A Dsystem_counter_offset_test.c44 return rdtsc(); in guest_read_system_counter()
49 return rdtsc() + test->tsc_offset; in host_read_guest_system_counter()
/openbmc/linux/tools/perf/arch/arm64/util/
H A Dtsc.c7 u64 rdtsc(void) in rdtsc() function
/openbmc/u-boot/arch/x86/cpu/quark/
H A Dmrc.c175 my_tsc = rdtsc(); in mrc_mem_init()
177 DPF(D_TIME, "Execution time %llx", rdtsc() - my_tsc); in mrc_mem_init()
/openbmc/linux/arch/x86/include/asm/
H A Dtimex.h13 return rdtsc(); in random_get_entropy()
H A Dtsc.h26 return rdtsc(); in get_cycles()
H A Dentry-common.h85 choose_random_kstack_offset(rdtsc()); in arch_exit_to_user_mode_prepare()
/openbmc/linux/tools/perf/util/
H A Dtsc.h27 u64 rdtsc(void);
/openbmc/u-boot/drivers/watchdog/
H A Dtangier_wdt.c36 now = rdtsc() / 1000; in hw_watchdog_reset()
/openbmc/u-boot/arch/x86/include/asm/
H A Du-boot-x86.h76 static inline __attribute__((no_instrument_function)) uint64_t rdtsc(void) in rdtsc() function
/openbmc/linux/arch/x86/lib/
H A Dkaslr.c76 raw = rdtsc(); in kaslr_get_random_long()
H A Ddelay.c195 *timer_val = rdtsc(); in read_current_timer()
/openbmc/linux/tools/perf/arch/x86/util/
H A Dtsc.c11 u64 rdtsc(void) in rdtsc() function
/openbmc/u-boot/arch/x86/cpu/coreboot/
H A Dtimestamp.c46 timestamp_add(id, rdtsc()); in timestamp_add_now()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-dbs/rocksdb/files/
H A D0005-Implement-timer-implementation-for-mips-platform.patch22 + // mips apparently only allows rdtsc for superusers, so we fall

123