41 #include <rte_config.h> 48 #define RTE_TIMER_STOP 0 49 #define RTE_TIMER_PENDING 1 50 #define RTE_TIMER_RUNNING 2 51 #define RTE_TIMER_CONFIG 3 53 #define RTE_TIMER_NO_OWNER -2 76 #ifdef RTE_LIBRTE_TIMER_DEBUG 80 struct rte_timer_debug_stats {
95 #define MAX_SKIPLIST_DEPTH 10 103 struct rte_timer *sl_next[MAX_SKIPLIST_DEPTH];
115 #define RTE_TIMER_INITIALIZER { \ 118 {{RTE_TIMER_STOP, RTE_TIMER_NO_OWNER}}, \ 127 #define RTE_TIMER_INITIALIZER { \ 129 .state = RTE_TIMER_STOP, \ 130 .owner = RTE_TIMER_NO_OWNER, \ 181 int rte_timer_subsystem_init_v1905(
void);
182 void rte_timer_subsystem_init_v20(
void);
249 int rte_timer_reset_v1905(
struct rte_timer *tim, uint64_t ticks,
252 int rte_timer_reset_v20(
struct rte_timer *tim, uint64_t ticks,
312 int rte_timer_stop_v1905(
struct rte_timer *tim);
313 int rte_timer_stop_v20(
struct rte_timer *tim);
357 int rte_timer_manage_v1905(
void);
358 void rte_timer_manage_v20(
void);
370 int rte_timer_dump_stats_v1905(FILE *f);
371 void rte_timer_dump_stats_v20(FILE *f);
411 int __rte_experimental
436 int __rte_experimental
472 int __rte_experimental
504 int __rte_experimental
526 int __rte_experimental
int rte_timer_pending(struct rte_timer *tim)
void rte_timer_stop_sync(struct rte_timer *tim)
int __rte_experimental rte_timer_alt_stop(uint32_t timer_data_id, struct rte_timer *tim)
void(* rte_timer_alt_manage_cb_t)(struct rte_timer *tim)
int rte_timer_manage(void)
int __rte_experimental rte_timer_alt_manage(uint32_t timer_data_id, unsigned int *poll_lcores, int n_poll_lcores, rte_timer_alt_manage_cb_t f)
volatile union rte_timer_status status
int __rte_experimental rte_timer_data_alloc(uint32_t *id_ptr)
void rte_timer_reset_sync(struct rte_timer *tim, uint64_t ticks, enum rte_timer_type type, unsigned tim_lcore, rte_timer_cb_t fct, void *arg)
int __rte_experimental rte_timer_data_dealloc(uint32_t id)
int rte_timer_reset(struct rte_timer *tim, uint64_t ticks, enum rte_timer_type type, unsigned tim_lcore, rte_timer_cb_t fct, void *arg)
int rte_timer_subsystem_init(void)
int rte_timer_stop(struct rte_timer *tim)
int __rte_experimental rte_timer_alt_dump_stats(uint32_t timer_data_id, FILE *f)
int __rte_experimental rte_timer_alt_reset(uint32_t timer_data_id, struct rte_timer *tim, uint64_t ticks, enum rte_timer_type type, unsigned int tim_lcore, rte_timer_cb_t fct, void *arg)
void(* rte_timer_cb_t)(struct rte_timer *, void *)
int __rte_experimental rte_timer_stop_all(uint32_t timer_data_id, unsigned int *walk_lcores, int nb_walk_lcores, rte_timer_stop_all_cb_t f, void *f_arg)
void rte_timer_init(struct rte_timer *tim)
void(* rte_timer_stop_all_cb_t)(struct rte_timer *tim, void *arg)
void __rte_experimental rte_timer_subsystem_finalize(void)
int rte_timer_dump_stats(FILE *f)