DPDK  19.05.0
Functions
rte_telemetry.h File Reference
#include <stdint.h>

Go to the source code of this file.

Functions

int32_t __rte_experimental rte_telemetry_init (void)
int32_t __rte_experimental rte_telemetry_cleanup (void)
int32_t __rte_experimental rte_telemetry_selftest (void)

Detailed Description

RTE Telemetry

The telemetry library provides a method to retrieve statistics from DPDK by sending a JSON encoded message over a socket. DPDK will send a JSON encoded response containing telemetry data.

Definition in file rte_telemetry.h.

Function Documentation

int32_t __rte_experimental rte_telemetry_init ( void  )
Warning
EXPERIMENTAL: this API may change without prior notice

Initialize Telemetry

Returns
0 on successful initialisation.
-ENOMEM on memory allocation error
-EPERM on unknown error failure
-EALREADY if Telemetry is already initialised.
int32_t __rte_experimental rte_telemetry_cleanup ( void  )
Warning
EXPERIMENTAL: this API may change without prior notice

Clean up and free memory.

Returns
0 on success
-EPERM on failure
int32_t __rte_experimental rte_telemetry_selftest ( void  )
Warning
EXPERIMENTAL: this API may change without prior notice

Runs various tests to ensure telemetry initialisation and register/unregister functions are working correctly.

Returns
0 on success when all tests have passed
-1 on failure when the test has failed