Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\msr.h Create Date:2022-07-28 05:34:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dtsc_ordered() - read the current TSC in program order* rdtsc_ordered() returns the result of RDTSC as a 64-bit integer.* It is ordered like a load to a global in-memory counter. It should* be impossible to observe non-monotonic rdtsc_unordered() behavior

Proto:static __always_inline unsigned long long rdtsc_ordered(void)

Type:unsigned long long

Parameter:Nothing

220  Using 64-bit values saves one instruction clearing the high half of low (val, low, high)
236  asm volatile
243  Return EAX_EDX_VAL(val, low, high)
Caller
NameDescribe
delay_tscTSC based delay:
delay_mwaitxOn some AMD platforms, MWAITX has a configurable 32-bit timer, that* counts with TSC frequency. The input value is the loop of the* counter, it will exit when the timer expires.
read_tscWe used to compare the TSC to the cycle_last value in the clocksource* structure to avoid a nasty time-warp
measure_cycles_lat_fnmeasure_cycles_lat_fn - Measure cycle latency to read pseudo-locked memory*@_plr: pseudo-lock region to measure* There is no deterministic way to test if a memory region is cached. One* way is to measure how long it takes to read the memory, the speed of
trace_clock_x86_tscrace_clock_x86_tsc(): A clock that is just the cycle counter.* Unlike the other clocks, this is not in nanoseconds.
pvclock_clocksource_read