| rte_cycles.h(3) | Library Functions Manual | rte_cycles.h(3) |
rte_cycles.h
#include <stdint.h>
#include <rte_debug.h>
#include <rte_atomic.h>
uint64_t rte_get_tsc_hz (void)
static uint64_t rte_get_tsc_cycles (void)
static uint64_t rte_get_timer_cycles (void)
static uint64_t rte_get_timer_hz (void)
static void rte_delay_ms (unsigned ms)
void rte_delay_us_block (unsigned int us)
void rte_delay_us_sleep (unsigned int us)
void rte_delay_us_callback_register (void(*userfunc)(unsigned int))
void(* rte_delay_us )(unsigned int us)
Simple Time Reference Functions (Cycles and HPET).
Definition in file rte_cycles.h.
Get the measured frequency of the RDTSC counter
Returns
Return the number of TSC cycles since boot
Returns
Get the number of cycles since boot from the default timer.
Returns
Definition at line 97 of file rte_cycles.h.
Get the number of cycles in one second for the default timer.
Returns
Definition at line 119 of file rte_cycles.h.
Wait at least ms milliseconds.
Parameters
Definition at line 151 of file rte_cycles.h.
Blocking delay function.
Parameters
Delay function that uses system sleep. Does not block the CPU core.
Parameters
Replace rte_delay_us with user defined function.
Parameters
Wait at least us microseconds. This function can be replaced with user-defined function.
See also
Parameters
Generated automatically by Doxygen for DPDK from the source code.
| Version 24.11.3 | DPDK |