git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
app/crypto-perf: support lookaside IPsec
[dpdk.git]
/
lib
/
telemetry
/
rte_telemetry.h
diff --git
a/lib/telemetry/rte_telemetry.h
b/lib/telemetry/rte_telemetry.h
index
031db9e
..
7bca8a9
100644
(file)
--- a/
lib/telemetry/rte_telemetry.h
+++ b/
lib/telemetry/rte_telemetry.h
@@
-3,17
+3,14
@@
*/
#include <stdint.h>
*/
#include <stdint.h>
-#include <sched.h>
#include <rte_compat.h>
#ifndef _RTE_TELEMETRY_H_
#define _RTE_TELEMETRY_H_
#include <rte_compat.h>
#ifndef _RTE_TELEMETRY_H_
#define _RTE_TELEMETRY_H_
-/** Maximum number of telemetry callbacks. */
-#define TELEMETRY_MAX_CALLBACKS 64
/** Maximum length for string used in object. */
/** Maximum length for string used in object. */
-#define RTE_TEL_MAX_STRING_LEN
64
+#define RTE_TEL_MAX_STRING_LEN
128
/** Maximum length of string. */
#define RTE_TEL_MAX_SINGLE_STRING_LEN 8192
/** Maximum number of dictionary entries. */
/** Maximum length of string. */
#define RTE_TEL_MAX_SINGLE_STRING_LEN 8192
/** Maximum number of dictionary entries. */
@@
-26,10
+23,6
@@
*
* RTE Telemetry.
*
*
* RTE Telemetry.
*
- * @warning
- * @b EXPERIMENTAL:
- * All functions in this file may be changed or removed without prior notice.
- *
* The telemetry library provides a method to retrieve statistics from
* DPDK by sending a request message over a socket. DPDK will send
* a JSON encoded response containing telemetry data.
* The telemetry library provides a method to retrieve statistics from
* DPDK by sending a request message over a socket. DPDK will send
* a JSON encoded response containing telemetry data.
@@
-61,7
+54,6
@@
enum rte_tel_value_type {
* @return
* 0 on success, negative errno on error
*/
* @return
* 0 on success, negative errno on error
*/
-__rte_experimental
int
rte_tel_data_start_array(struct rte_tel_data *d, enum rte_tel_value_type type);
int
rte_tel_data_start_array(struct rte_tel_data *d, enum rte_tel_value_type type);
@@
-73,7
+65,6
@@
rte_tel_data_start_array(struct rte_tel_data *d, enum rte_tel_value_type type);
* @return
* 0 on success, negative errno on error
*/
* @return
* 0 on success, negative errno on error
*/
-__rte_experimental
int
rte_tel_data_start_dict(struct rte_tel_data *d);
int
rte_tel_data_start_dict(struct rte_tel_data *d);
@@
-87,7
+78,6
@@
rte_tel_data_start_dict(struct rte_tel_data *d);
* @return
* 0 on success, negative errno on error, E2BIG on string truncation
*/
* @return
* 0 on success, negative errno on error, E2BIG on string truncation
*/
-__rte_experimental
int
rte_tel_data_string(struct rte_tel_data *d, const char *str);
int
rte_tel_data_string(struct rte_tel_data *d, const char *str);
@@
-103,7
+93,6
@@
rte_tel_data_string(struct rte_tel_data *d, const char *str);
* @return
* 0 on success, negative errno on error, E2BIG on string truncation
*/
* @return
* 0 on success, negative errno on error, E2BIG on string truncation
*/
-__rte_experimental
int
rte_tel_data_add_array_string(struct rte_tel_data *d, const char *str);
int
rte_tel_data_add_array_string(struct rte_tel_data *d, const char *str);
@@
-119,7
+108,6
@@
rte_tel_data_add_array_string(struct rte_tel_data *d, const char *str);
* @return
* 0 on success, negative errno on error
*/
* @return
* 0 on success, negative errno on error
*/
-__rte_experimental
int
rte_tel_data_add_array_int(struct rte_tel_data *d, int x);
int
rte_tel_data_add_array_int(struct rte_tel_data *d, int x);
@@
-135,7
+123,6
@@
rte_tel_data_add_array_int(struct rte_tel_data *d, int x);
* @return
* 0 on success, negative errno on error
*/
* @return
* 0 on success, negative errno on error
*/
-__rte_experimental
int
rte_tel_data_add_array_u64(struct rte_tel_data *d, uint64_t x);
int
rte_tel_data_add_array_u64(struct rte_tel_data *d, uint64_t x);
@@
-156,7
+143,6
@@
rte_tel_data_add_array_u64(struct rte_tel_data *d, uint64_t x);
* @return
* 0 on success, negative errno on error
*/
* @return
* 0 on success, negative errno on error
*/
-__rte_experimental
int
rte_tel_data_add_array_container(struct rte_tel_data *d,
struct rte_tel_data *val, int keep);
int
rte_tel_data_add_array_container(struct rte_tel_data *d,
struct rte_tel_data *val, int keep);
@@
-175,7
+161,6
@@
rte_tel_data_add_array_container(struct rte_tel_data *d,
* 0 on success, negative errno on error, E2BIG on string truncation of
* either name or value.
*/
* 0 on success, negative errno on error, E2BIG on string truncation of
* either name or value.
*/
-__rte_experimental
int
rte_tel_data_add_dict_string(struct rte_tel_data *d, const char *name,
const char *val);
int
rte_tel_data_add_dict_string(struct rte_tel_data *d, const char *name,
const char *val);
@@
-193,7
+178,6
@@
rte_tel_data_add_dict_string(struct rte_tel_data *d, const char *name,
* @return
* 0 on success, negative errno on error, E2BIG on string truncation of name.
*/
* @return
* 0 on success, negative errno on error, E2BIG on string truncation of name.
*/
-__rte_experimental
int
rte_tel_data_add_dict_int(struct rte_tel_data *d, const char *name, int val);
int
rte_tel_data_add_dict_int(struct rte_tel_data *d, const char *name, int val);
@@
-210,7
+194,6
@@
rte_tel_data_add_dict_int(struct rte_tel_data *d, const char *name, int val);
* @return
* 0 on success, negative errno on error, E2BIG on string truncation of name.
*/
* @return
* 0 on success, negative errno on error, E2BIG on string truncation of name.
*/
-__rte_experimental
int
rte_tel_data_add_dict_u64(struct rte_tel_data *d,
const char *name, uint64_t val);
int
rte_tel_data_add_dict_u64(struct rte_tel_data *d,
const char *name, uint64_t val);
@@
-234,7
+217,6
@@
rte_tel_data_add_dict_u64(struct rte_tel_data *d,
* @return
* 0 on success, negative errno on error
*/
* @return
* 0 on success, negative errno on error
*/
-__rte_experimental
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_container(struct rte_tel_data *d, const char *name,
struct rte_tel_data *val, int keep);
@@
-285,9
+267,8
@@
typedef void * (*handler)(void *sock_id);
* @return
* -EINVAL for invalid parameters failure.
* @return
* @return
* -EINVAL for invalid parameters failure.
* @return
- * -ENO
ENT if max callbacks limit has been reached
.
+ * -ENO
MEM for mem allocation failure
.
*/
*/
-__rte_experimental
int
rte_telemetry_register_cmd(const char *cmd, telemetry_cb fn, const char *help);
int
rte_telemetry_register_cmd(const char *cmd, telemetry_cb fn, const char *help);
@@
-299,7
+280,6
@@
rte_telemetry_register_cmd(const char *cmd, telemetry_cb fn, const char *help);
* @return
* Pointer to a container.
*/
* @return
* Pointer to a container.
*/
-__rte_experimental
struct rte_tel_data *
rte_tel_data_alloc(void);
struct rte_tel_data *
rte_tel_data_alloc(void);
@@
-311,7
+291,6
@@
rte_tel_data_alloc(void);
* Pointer to container.
*.
*/
* Pointer to container.
*.
*/
-__rte_experimental
void
rte_tel_data_free(struct rte_tel_data *data);
void
rte_tel_data_free(struct rte_tel_data *data);