23 #ifndef _RTE_METRICS_H_ 24 #define _RTE_METRICS_H_ 27 #include <rte_compat.h> 33 extern int metrics_initialized;
36 #define RTE_METRICS_MAX_NAME_LEN 64 37 #define RTE_METRICS_MAX_METRICS 256 47 #define RTE_METRICS_GLOBAL -1 211 const uint64_t value);
234 const uint64_t *values,
char name[RTE_METRICS_MAX_NAME_LEN]
int rte_metrics_update_values(int port_id, uint16_t key, const uint64_t *values, uint32_t count)
int rte_metrics_update_value(int port_id, uint16_t key, const uint64_t value)
void rte_metrics_init(int socket_id)
#define RTE_METRICS_MAX_NAME_LEN
int rte_metrics_get_values(int port_id, struct rte_metric_value *values, uint16_t capacity)
int rte_metrics_get_names(struct rte_metric_name *names, uint16_t capacity)
int rte_metrics_reg_name(const char *name)
int rte_metrics_reg_names(const char *const *names, uint16_t cnt_names)
__rte_experimental int rte_metrics_deinit(void)