telemetry: format json response when sending stats
authorCiara Power <ciara.power@intel.com>
Sat, 27 Oct 2018 09:17:46 +0000 (10:17 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 27 Oct 2018 13:18:23 +0000 (15:18 +0200)
commit0fe3a37924d4fb60c712098c33bdae3c2b9f5c6c
treec84aa4e1087eb4d10af7ef51f83de643e838760c
parent67c3c2de48105f58bd478675c3f09b6b4261d06c
telemetry: format json response when sending stats

This patch adds functionality to create a JSON message in
order to send it to a client socket.

When stats are requested by a client, they are retrieved from
the metrics library and encoded in JSON format.

Signed-off-by: Ciara Power <ciara.power@intel.com>
Signed-off-by: Brian Archbold <brian.archbold@intel.com>
Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
lib/librte_telemetry/Makefile
lib/librte_telemetry/meson.build
lib/librte_telemetry/rte_telemetry.c
lib/librte_telemetry/rte_telemetry.h
lib/librte_telemetry/rte_telemetry_internal.h
lib/librte_telemetry/rte_telemetry_parser_test.c [new file with mode: 0644]
lib/librte_telemetry/rte_telemetry_parser_test.h [new file with mode: 0644]
lib/librte_telemetry/rte_telemetry_socket_tests.h [new file with mode: 0644]
lib/librte_telemetry/rte_telemetry_version.map