5 #ifndef _RTE_TELEMETRY_H_ 6 #define _RTE_TELEMETRY_H_ 9 #include <rte_compat.h> 17 #define RTE_TEL_MAX_STRING_LEN 128 19 #define RTE_TEL_MAX_SINGLE_STRING_LEN 8192 21 #define RTE_TEL_MAX_DICT_ENTRIES 256 23 #define RTE_TEL_MAX_ARRAY_ENTRIES 512 51 #define RTE_TEL_U64_VAL RTE_TEL_UINT_VAL 153 __rte_deprecated_msg(
"use 'rte_tel_data_add_array_uint' instead");
174 struct rte_tel_data *val,
int keep);
196 uint8_t display_bitwidth);
250 const char *name, uint64_t val);
268 const char *name, uint64_t val)
269 __rte_deprecated_msg(
"use 'rte_tel_data_add_dict_uint' instead");
293 struct rte_tel_data *val,
int keep);
317 uint64_t val, uint8_t display_bitwidth);
337 struct rte_tel_data *info);
361 struct rte_tel_data *info);
372 typedef void * (*handler)(
void *sock_id);
424 struct rte_tel_data *
436 rte_tel_data_free(
struct rte_tel_data *data);
int rte_tel_data_add_dict_uint(struct rte_tel_data *d, const char *name, uint64_t val)
int rte_tel_data_add_dict_string(struct rte_tel_data *d, const char *name, const char *val)
int rte_tel_data_start_array(struct rte_tel_data *d, enum rte_tel_value_type type)
__rte_experimental int rte_tel_data_add_array_uint_hex(struct rte_tel_data *d, uint64_t val, uint8_t display_bitwidth)
int rte_tel_data_add_array_int(struct rte_tel_data *d, int64_t x)
int rte_tel_data_add_array_u64(struct rte_tel_data *d, uint64_t x) __rte_deprecated_msg("use 'rte_tel_data_add_array_uint' instead")
int rte_tel_data_add_array_uint(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_telemetry_register_cmd(const char *cmd, telemetry_cb fn, const char *help)
int rte_tel_data_add_array_container(struct rte_tel_data *d, struct rte_tel_data *val, int keep)
__rte_experimental int rte_telemetry_register_cmd_arg(const char *cmd, telemetry_arg_cb fn, void *arg, const char *help)
int rte_tel_data_start_dict(struct rte_tel_data *d)
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_dict_u64(struct rte_tel_data *d, const char *name, uint64_t val) __rte_deprecated_msg("use 'rte_tel_data_add_dict_uint' instead")
int(* telemetry_arg_cb)(const char *cmd, const char *params, void *arg, struct rte_tel_data *info)
int rte_tel_data_add_dict_int(struct rte_tel_data *d, const char *name, int64_t val)
struct rte_tel_data * rte_tel_data_alloc(void)
int(* telemetry_cb)(const char *cmd, const char *params, struct rte_tel_data *info)
int rte_tel_data_string(struct rte_tel_data *d, const char *str)
__rte_experimental int rte_tel_data_add_dict_uint_hex(struct rte_tel_data *d, const char *name, uint64_t val, uint8_t display_bitwidth)