examples/l3fwd-power: add telemetry mode
authorReshma Pattan <reshma.pattan@intel.com>
Mon, 24 Jun 2019 16:45:51 +0000 (17:45 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 28 Jun 2019 09:50:24 +0000 (11:50 +0200)
commit609e79841fcf981b0bc863f03985569397a49d53
tree72dae274f6d7afaa5f72d0ec8cdf6f68a3f8acd0
parent500e70b90c05c267d53963c757c3b1f66908b2fa
examples/l3fwd-power: add telemetry mode

Add new telemetry mode support for l3fwd-power.
This is a standalone mode, in this mode l3fwd-power
does simple l3fwding along with calculating
empty polls, full polls, and busy percentage for
each forwarding core. The aggregation of these
values of all cores is reported as application
level telemetry to metric library for every 500ms from the
master core.

The busy percentage is calculated by recording the poll_count
and when the count reaches a defined value the total
cycles it took is measured and compared with minimum and maximum
reference cycles and busy rate is set according to either 0% or
50% or 100%.

Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
doc/guides/rel_notes/release_19_08.rst
doc/guides/sample_app_ug/l3_forward_power_man.rst
examples/l3fwd-power/Makefile
examples/l3fwd-power/main.c
examples/l3fwd-power/meson.build