X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_telemetry%2Frte_telemetry.h;h=aedb31859866be08191c591d49223c4894ce7065;hb=545fa736b94bc4381bc9ddf4019184e8f8a9516a;hp=97674ae2dc2e0ac0c8b9ae8fee0093c545cba0cf;hpb=8877ac688b5267c5edec38fbd07dfad0c993c020;p=dpdk.git diff --git a/lib/librte_telemetry/rte_telemetry.h b/lib/librte_telemetry/rte_telemetry.h index 97674ae2dc..aedb318598 100644 --- a/lib/librte_telemetry/rte_telemetry.h +++ b/lib/librte_telemetry/rte_telemetry.h @@ -31,7 +31,8 @@ * @return * -EALREADY if Telemetry is already initialised. */ -int32_t __rte_experimental +__rte_experimental +int32_t rte_telemetry_init(void); /** @@ -45,7 +46,24 @@ rte_telemetry_init(void); * @return * -EPERM on failure */ -int32_t __rte_experimental +__rte_experimental +int32_t rte_telemetry_cleanup(void); +/** + * @warning + * @b EXPERIMENTAL: this API may change without prior notice + * + * Runs various tests to ensure telemetry initialisation and register/unregister + * functions are working correctly. + * + * @return + * 0 on success when all tests have passed + * @return + * -1 on failure when the test has failed + */ +__rte_experimental +int32_t +rte_telemetry_selftest(void); + #endif