stats: refactor header files 02/21302/3
authorDave Barach <dave@barachs.net>
Wed, 14 Aug 2019 13:35:41 +0000 (09:35 -0400)
committerNeale Ranns <nranns@cisco.com>
Thu, 15 Aug 2019 10:14:52 +0000 (10:14 +0000)
commit531969ef614bdc15c45dae0f1b5e90afaf86eb7b
tree69141710a458ec3a486a83b5fbaadb590001a93a
parent9094b5c319d3f072d3c248fe7c876e4048c13ac2
stats: refactor header files

Performant stat segment scraping involves caching the results of
stat_segment_ls (...) and directly fishing counter data from the
shared-memory segment.

To do that, we need to publish several things previously hidden,
declared in stat_client.c:

o stat_client_main_t typedef
o stat_segment_access_t typedef
o stat_segment_access_start inline function
o stat_segment_access_end inline function

Type: refactor

Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: I3175e3d1f1fd8ea816336a584565179d1972115c
src/vpp-api/client/stat_client.c
src/vpp-api/client/stat_client.h
src/vpp/CMakeLists.txt
src/vpp/stats/stat_segment.h
src/vpp/stats/stat_segment_shared.h [new file with mode: 0644]