* Read the time base register. * * @return * The time base for this lcore. */
| 18 | * The time base for this lcore. |
| 19 | */ |
| 20 | static inline uint64_t |
| 21 | rte_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 | |
| 33 | static inline uint64_t |
| 34 | rte_rdtsc_precise(void) |
no outgoing calls
no test coverage detected