stats: refactor header files 33/22133/2
authorDave Barach <[email protected]>
Wed, 14 Aug 2019 13:35:41 +0000 (09:35 -0400)
committerAndrew Yourtchenko <[email protected]>
Thu, 19 Sep 2019 18:16:21 +0000 (18:16 +0000)
commit1ffabcb3df911f5f115a1c6dd51bdb5fdd3ac52c
tree46716a60634883ccd2f9017862515669478d743d
parent6b9847e8012b3b186897f3b2bdeaf478f8767301
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 <[email protected]>
Change-Id: I3175e3d1f1fd8ea816336a584565179d1972115c
(cherry picked from commit 531969ef614bdc15c45dae0f1b5e90afaf86eb7b)
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]