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

Function rte_rdtsc

dpdk/lib/eal/loongarch/include/rte_cycles.h:20–31  ·  view source on GitHub ↗

* Read the time base register. * * @return * The time base for this lcore. */

Source from the content-addressed store, hash-verified

18 * The time base for this lcore.
19 */
20static inline uint64_t
21rte_rdtsc(void)
22{
23 uint64_t count;
24
25 __asm__ __volatile__ (
26 "rdtime.d %[cycles], $zero\n"
27 : [cycles] "=r" (count)
28 ::
29 );
30 return count;
31}
32
33static inline uint64_t
34rte_rdtsc_precise(void)

Callers 3

rte_rdtsc_preciseFunction · 0.70
rte_get_tsc_cyclesFunction · 0.70
get_tsc_freqFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected