Home
last modified time | relevance | path

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

12

/Linux-v4.19/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()
/Linux-v4.19/tools/testing/selftests/kvm/
Dvmx_tsc_adjust_test.c76 uint64_t l1_tsc = rdtsc() - TSC_OFFSET_VALUE; in l2_guest_code()
92 GUEST_ASSERT(rdtsc() < TSC_ADJUST_VALUE); in l1_guest_code()
93 wrmsr(MSR_IA32_TSC, rdtsc() - TSC_ADJUST_VALUE); in l1_guest_code()
/Linux-v4.19/arch/x86/kernel/
Dapb_timer.c257 start = rdtsc(); in apbt_clocksource_register()
267 now = rdtsc(); in apbt_clocksource_register()
384 t1 = rdtsc(); in apbt_quick_calibrate()
390 t2 = rdtsc(); in apbt_quick_calibrate()
Despfix_64.c113 rand = rdtsc(); in init_espfix_random()
Dtsc.c182 __set_cyc2ns_scale(tsc_khz, smp_processor_id(), rdtsc()); in cyc2ns_init_boot_cpu()
213 u64 tsc_now = rdtsc(); in native_sched_clock()
979 set_cyc2ns_scale(tsc_khz, freq->cpu, rdtsc()); in time_cpufreq_notifier()
/Linux-v4.19/tools/power/cpupower/debug/kernel/
Dcpufreq-test_tsc.c84 then_tsc = rdtsc(); in cpufreq_test_tsc()
88 now_tsc = rdtsc(); in cpufreq_test_tsc()
/Linux-v4.19/arch/x86/kernel/cpu/
Dvmware.c84 ns = mul_u64_u32_shr(rdtsc(), vmware_cyc2ns.cyc2ns_mul, in vmware_sched_clock()
93 unsigned long long tsc_now = rdtsc(); in vmware_sched_clock_setup()
Damd.c140 d = rdtsc(); in init_amd_k6()
143 d2 = rdtsc(); in init_amd_k6()
/Linux-v4.19/tools/perf/arch/x86/tests/
Drdpmc.c26 static u64 rdtsc(void) in rdtsc() function
49 cyc = rdtsc(); in mmap_read_self()
Dperf-time-to-tsc.c105 test_tsc = rdtsc(); in test__perf_time_to_tsc()
/Linux-v4.19/tools/perf/util/
Dtsc.h21 u64 rdtsc(void);
Dtsc.c28 u64 __weak rdtsc(void) in rdtsc() function
/Linux-v4.19/arch/x86/include/asm/
Dtsc.h30 return rdtsc(); in get_cycles()
Dstackprotector.h76 tsc = rdtsc(); in boot_init_stack_canary()
Dmsr.h201 static __always_inline unsigned long long rdtsc(void) in rdtsc() function
232 return rdtsc(); in rdtsc_ordered()
/Linux-v4.19/arch/x86/lib/
Dkaslr.c72 raw = rdtsc(); in kaslr_get_random_long()
Ddelay.c153 *timer_val = rdtsc(); in read_current_timer()
/Linux-v4.19/tools/perf/arch/x86/util/
Dtsc.c42 u64 rdtsc(void) in rdtsc() function
/Linux-v4.19/arch/x86/kernel/cpu/mcheck/
Dmce-apei.c58 m.tsc = rdtsc(); in apei_mce_report_mem_error()
/Linux-v4.19/drivers/thermal/
Dintel_powerclamp.c352 tsc_now = rdtsc(); in powerclamp_adjust_controls()
471 tsc_now = rdtsc(); in poll_pkg_cstate()
/Linux-v4.19/drivers/input/gameport/
Dgameport.c152 t1 = rdtsc(); in old_gameport_measure_speed()
154 t2 = rdtsc(); in old_gameport_measure_speed()
/Linux-v4.19/arch/x86/kernel/apic/
Dapic.c470 tsc = rdtsc(); in lapic_next_deadline()
727 tsc = rdtsc(); in lapic_cal_handler()
1424 tsc = rdtsc(); in apic_pending_intr_clear()
1454 ntsc = rdtsc(); in apic_pending_intr_clear()
/Linux-v4.19/arch/x86/kvm/
Dpmu.c264 ctr_val = rdtsc(); in kvm_pmu_rdpmc_vmware()

12