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
examples/l3fwd: share queue size variables
[dpdk.git]
/
lib
/
telemetry
/
rte_telemetry.h
diff --git
a/lib/telemetry/rte_telemetry.h
b/lib/telemetry/rte_telemetry.h
index
c08146e
..
3372b32
100644
(file)
--- a/
lib/telemetry/rte_telemetry.h
+++ b/
lib/telemetry/rte_telemetry.h
@@
-3,15
+3,18
@@
*/
#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_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/** 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. */
@@
-24,10
+27,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.
@@
-59,7
+58,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);
@@
-71,7
+69,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);
@@
-85,7
+82,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);
@@
-101,7
+97,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);
@@
-117,7
+112,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);
@@
-133,7
+127,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);
@@
-154,7
+147,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);
@@
-173,7
+165,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);
@@
-191,7
+182,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);
@@
-208,7
+198,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);
@@
-232,7
+221,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);
@@
-283,9
+271,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);
@@
-297,7
+284,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);
@@
-309,8
+295,11
@@
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);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#endif