DPDK
24.11.0-rc3
|
Go to the source code of this file.
Functions | |
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)) |
Variables | |
void(* | rte_delay_us )(unsigned int us) |
Simple Time Reference Functions (Cycles and HPET).
Definition in file rte_cycles.h.
uint64_t rte_get_tsc_hz | ( | void | ) |
Get the measured frequency of the RDTSC counter
|
inlinestatic |
Return the number of TSC cycles since boot
|
inlinestatic |
Get the number of cycles since boot from the default timer.
Definition at line 97 of file rte_cycles.h.
|
inlinestatic |
Get the number of cycles in one second for the default timer.
Definition at line 119 of file rte_cycles.h.
|
inlinestatic |
Wait at least ms milliseconds.
ms | The number of milliseconds to wait. |
Definition at line 151 of file rte_cycles.h.
void rte_delay_us_block | ( | unsigned int | us | ) |
Blocking delay function.
us | Number of microseconds to wait. |
void rte_delay_us_sleep | ( | unsigned int | us | ) |
Delay function that uses system sleep. Does not block the CPU core.
us | Number of microseconds to wait. |
void rte_delay_us_callback_register | ( | void(*)(unsigned int) | userfunc | ) |
Replace rte_delay_us with user defined function.
userfunc | User function which replaces rte_delay_us. rte_delay_us_block restores builtin block delay function. |
void(* rte_delay_us) (unsigned int us) |
Wait at least us microseconds. This function can be replaced with user-defined function.
us | The number of microseconds to wait. |