5#ifndef _RTE_TELEMETRY_H_
6#define _RTE_TELEMETRY_H_
15#define RTE_TEL_MAX_STRING_LEN 128
17#define RTE_TEL_MAX_SINGLE_STRING_LEN 8192
19#define RTE_TEL_MAX_DICT_ENTRIES 256
21#define RTE_TEL_MAX_ARRAY_ENTRIES 512
154 struct rte_tel_data *val,
int keep);
208 const char *name, uint64_t val);
232 struct rte_tel_data *val,
int keep);
252 struct rte_tel_data *info);
263typedef void * (*handler)(
void *sock_id);
305rte_tel_data_free(
struct rte_tel_data *data);
struct rte_tel_data * rte_tel_data_alloc(void)
int rte_tel_data_add_dict_string(struct rte_tel_data *d, const char *name, const char *val)
int rte_tel_data_add_dict_u64(struct rte_tel_data *d, const char *name, uint64_t val)
int rte_tel_data_start_array(struct rte_tel_data *d, enum rte_tel_value_type type)
int rte_tel_data_string(struct rte_tel_data *d, const char *str)
int rte_telemetry_register_cmd(const char *cmd, telemetry_cb fn, const char *help)
int(* telemetry_cb)(const char *cmd, const char *params, struct rte_tel_data *info)
int rte_tel_data_add_dict_container(struct rte_tel_data *d, const char *name, struct rte_tel_data *val, int keep)
int rte_tel_data_add_array_int(struct rte_tel_data *d, int x)
int rte_tel_data_add_array_container(struct rte_tel_data *d, struct rte_tel_data *val, int keep)
int rte_tel_data_start_dict(struct rte_tel_data *d)
int rte_tel_data_add_array_u64(struct rte_tel_data *d, uint64_t x)
int rte_tel_data_add_array_string(struct rte_tel_data *d, const char *str)
int rte_tel_data_add_dict_int(struct rte_tel_data *d, const char *name, int val)