| 427 | } |
| 428 | |
| 429 | static uint64_t get_time_ns(void) |
| 430 | { |
| 431 | struct timespec ts; |
| 432 | |
| 433 | clock_gettime(CLOCK_MONOTONIC_RAW, &ts); |
| 434 | return (uint64_t)ts.tv_sec * 1000000000ULL + (uint64_t)ts.tv_nsec; |
| 435 | } |
| 436 | |
| 437 | static void tp_spin_delay_ns(uint64_t delay_ns); |
| 438 | static void tp_cpu_relax_once(void); |
no outgoing calls
no test coverage detected