DPDK  2.0.0
Functions
rte_cycles.h File Reference
#include <stdint.h>
#include <rte_debug.h>
#include <rte_atomic.h>

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)
void rte_delay_us (unsigned us)
static void rte_delay_ms (unsigned ms)

Detailed Description

Simple Time Reference Functions (Cycles and HPET).

Function Documentation

static void rte_delay_ms ( unsigned  ms)
inlinestatic

Wait at least ms milliseconds.

Parameters
msThe number of milliseconds to wait.
void rte_delay_us ( unsigned  us)

Wait at least us microseconds.

Parameters
usThe number of microseconds to wait.
static uint64_t rte_get_timer_cycles ( void  )
inlinestatic

Get the number of cycles since boot from the default timer.

Returns
The number of cycles
static uint64_t rte_get_timer_hz ( void  )
inlinestatic

Get the number of cycles in one second for the default timer.

Returns
The number of cycles in one second.
static uint64_t rte_get_tsc_cycles ( void  )
inlinestatic

Return the number of TSC cycles since boot

Returns
the number of cycles
uint64_t rte_get_tsc_hz ( void  )

Get the measured frequency of the RDTSC counter

Returns
The TSC frequency for this lcore