service: separate statistics dump and reset
authorDavid Marchand <david.marchand@redhat.com>
Thu, 22 Oct 2020 08:08:10 +0000 (10:08 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 27 Oct 2020 12:21:01 +0000 (13:21 +0100)
commitc3afd1cba69bd7a900fd63c02cc87fba8d74430a
tree9eeb3ede8bdc243203e34d9182e2fff976c6fd8b
parent23b4fd825f6f13c38be2a93b04ee578137d9669f
service: separate statistics dump and reset

No functional change intended.

service_dump_calls_per_lcore() was always called with a 0 reset flag.
service_dump_one() was called with either a 0 reset flag or a NULL
FILE pointer.

We can split the code for readability sake.

Note: there is no path to resetting calls_per_service[], this is left as
is.

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
lib/librte_eal/common/rte_service.c