MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / rdtsc

Function rdtsc

runtime/Perf.cc:96–103  ·  view source on GitHub ↗

* Return the current value of the fine-grain CPU cycle counter * (accessed via the RDTSC instruction). */

Source from the content-addressed store, hash-verified

94 * (accessed via the RDTSC instruction).
95 */
96static __inline __attribute__((always_inline))
97uint64_t
98rdtsc()
99{
100 uint32_t lo, hi;
101 __asm__ __volatile__("rdtsc" : "=a" (lo), "=d" (hi));
102 return (((uint64_t)hi << 32) | lo);
103}
104
105/**
106 * Return the current value of the fine-grain CPU cycle counter

Callers 15

mainFunction · 0.85
initMethod · 0.85
sleepMethod · 0.85
getStatsMethod · 0.85
compressionThreadMainMethod · 0.85
reserveSpaceInternalMethod · 0.85
recordMethod · 0.85
recordMethod · 0.85
insertCheckpointMethod · 0.85
mainFunction · 0.85
TEST_FFunction · 0.85
logFunction · 0.85

Calls

no outgoing calls