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

Function get_cycles

freebsd/contrib/rdma/krping/krping.c:69–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67MODULE_DEPEND(krping, linuxkpi, 1, 1, 1);
68
69static __inline uint64_t
70get_cycles(void)
71{
72 uint32_t low, high;
73 __asm __volatile("rdtsc" : "=a" (low), "=d" (high));
74 return (low | ((u_int64_t)high << 32));
75}
76
77typedef uint64_t cycles_t;
78

Callers 2

wlat_testFunction · 0.85
bw_testFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected