telemetry: move some functions to metrics library
authorCiara Power <ciara.power@intel.com>
Thu, 30 Apr 2020 16:01:21 +0000 (17:01 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 10 May 2020 21:46:18 +0000 (23:46 +0200)
commitc5b7197f662e143cce4f6a18639006200e329036
treef4a9df99869fc0e1e2d36ed32a4d574061a86e39
parent44dfb297af4c47edbbde64dfb4715f108c7de2a4
telemetry: move some functions to metrics library

This commit moves some of the telemetry library code to a new file in
the metrics library. No modifications are made to the moved code,
except what is needed to allow it to compile and run. The additional
code in metrics is built only when the Jansson library is  present.
Telemetry functions as normal, using the functions from the
metrics_telemetry file. This move will enable code be reused by the new
version of telemetry in a later commit, to support backward
compatibility with the existing telemetry usage.

Signed-off-by: Ciara Power <ciara.power@intel.com>
Reviewed-by: Keith Wiles <keith.wiles@intel.com>
12 files changed:
lib/Makefile
lib/librte_metrics/Makefile
lib/librte_metrics/meson.build
lib/librte_metrics/rte_metrics.c
lib/librte_metrics/rte_metrics.h
lib/librte_metrics/rte_metrics_telemetry.c [new file with mode: 0644]
lib/librte_metrics/rte_metrics_telemetry.h [new file with mode: 0644]
lib/librte_metrics/rte_metrics_version.map
lib/librte_telemetry/rte_telemetry.c
lib/librte_telemetry/rte_telemetry_internal.h
lib/librte_telemetry/rte_telemetry_parser.c
mk/rte.app.mk