From: Remy Horton Date: Thu, 30 Mar 2017 21:00:57 +0000 (+0100) Subject: metrics: add information metrics library X-Git-Tag: spdx-start~3775 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=349950ddb9c5700dc4921ee758fb55265f0e7f16;p=dpdk.git metrics: add information metrics library This patch adds a new information metrics library. This Metrics library implements a mechanism by which producers can publish numeric information for later querying by consumers. Metrics themselves are statistics that are not generated by PMDs, and hence are not reported via ethdev extended statistics. Metric information is populated using a push model, where producers update the values contained within the metric library by calling an update function on the relevant metrics. Consumers receive metric information by querying the central metric data, which is held in shared memory. Signed-off-by: Remy Horton --- diff --git a/MAINTAINERS b/MAINTAINERS index 086630f9bf..42eaf10d25 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -675,6 +675,10 @@ F: lib/librte_jobstats/ F: examples/l2fwd-jobstats/ F: doc/guides/sample_app_ug/l2_forward_job_stats.rst +Metrics +M: Remy Horton +F: lib/librte_metrics/ + Test Applications ----------------- diff --git a/config/common_base b/config/common_base index 5bdba1d60c..8d038e413c 100644 --- a/config/common_base +++ b/config/common_base @@ -552,6 +552,11 @@ CONFIG_RTE_LIBRTE_EFD=y # CONFIG_RTE_LIBRTE_JOBSTATS=y +# +# Compile the device metrics library +# +CONFIG_RTE_LIBRTE_METRICS=y + # # Compile librte_lpm # diff --git a/doc/api/doxy-api-index.md b/doc/api/doxy-api-index.md index 5df5a5d0bf..47577c2617 100644 --- a/doc/api/doxy-api-index.md +++ b/doc/api/doxy-api-index.md @@ -4,7 +4,7 @@ API {#index}