MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pvclock_get_nsec_offset

Function pvclock_get_nsec_offset

freebsd/x86/x86/pvclock.c:129–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129static uint64_t
130pvclock_get_nsec_offset(struct pvclock_vcpu_time_info *ti)
131{
132 uint64_t delta;
133
134 delta = rdtsc() - ti->tsc_timestamp;
135
136 return (pvclock_scale_delta(delta, ti->tsc_to_system_mul,
137 ti->tsc_shift));
138}
139
140static void
141pvclock_read_time_info(struct pvclock_vcpu_time_info *ti,

Callers 1

pvclock_read_time_infoFunction · 0.85

Calls 2

pvclock_scale_deltaFunction · 0.85
rdtscFunction · 0.50

Tested by

no test coverage detected