usertools: add new telemetry script
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 30 Apr 2020 16:01:28 +0000 (17:01 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 10 May 2020 21:56:47 +0000 (23:56 +0200)
commit6a2967c112a3aa36c903b1554202732dcb2dd190
tree555f4410dec8e726744090ed5c53406fc5df1c34
parentf38748736eb2010d2771259e3584e9fda7c72edd
usertools: add new telemetry script

This patch adds a python script that can be used with the new telemetry
socket. It connects as a client to the socket, and allows the user send
a command and see the JSON response.

The example usage below shows the script connecting to the new telemetry
socket, and sending three default telemetry commands entered by the user.
The response for each command is shown below the user input.

Connecting to /var/run/dpdk/rte/dpdk_telemetry.v2
{"version": "DPDK 20.05.0-rc0", "pid": 32794, "max_output_len": 16384}
--> /
{"/": ["/", "/help", "/info"]}
--> /info
{"/info": {"version": "DPDK 20.05.0-rc0", "pid": 32794, \
    "max_output_len": 16384}}
--> /help,/info
{"/help": {"/info": "Returns DPDK Telemetry information. \
    Takes no parameters"}}

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Signed-off-by: Ciara Power <ciara.power@intel.com>
Reviewed-by: Keith Wiles <keith.wiles@intel.com>
MAINTAINERS
usertools/dpdk-telemetry.py [new file with mode: 0755]
usertools/meson.build