Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\pvclock.c Create Date:2022-07-28 08:45:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pvclock_clocksource_read

Proto:u64 pvclock_clocksource_read(struct pvclock_vcpu_time_info *src)

Type:u64

Parameter:

TypeParameterName
struct pvclock_vcpu_time_info *src
74  Do
75  version = pvclock_read_begin(src)
76  ret = __pvclock_read_cycles(src, 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)
77  flags = flags
78  When pvclock_read_retry(src, version) cycle
80  If Value for the false possibility is greater at compile time((flags & PVCLOCK_GUEST_STOPPED) != 0) Then
81  flags &= ~PVCLOCK_GUEST_STOPPED
82  pvclock_touch_watchdogs()
85  If valid_flags & PVCLOCK_TSC_STABLE_BIT && flags & PVCLOCK_TSC_STABLE_BIT Then Return ret
103  last = atomic64_read( & last_value)
104  Do
105  If ret < last Then Return last
107  last = atomic64_cmpxchg( & last_value, last, ret)
108  When Value for the false possibility is greater at compile time(last != ret) cycle
110  Return ret
Caller
NameDescribe
pvclock_read_wallclock
kvm_clock_read