Skip to content

stats: add support for ring buffer type#345

Open
hsandid wants to merge 3 commits intoFDio:masterfrom
hsandid:ring-buffer-stats
Open

stats: add support for ring buffer type#345
hsandid wants to merge 3 commits intoFDio:masterfrom
hsandid:ring-buffer-stats

Conversation

@hsandid
Copy link

@hsandid hsandid commented Mar 5, 2026

Hello all,

This PR adds support for ring buffers entries recently introduced as part of VPP stats-segment (https://gerrit.fd.io/r/c/vpp/+/43471).

This updates statseg_v2 to be able to fetch ring-buffer information (config, metadata), as well as return ring-buffer entries in raw bytes format. The stats-client can also be now be used to poll/dump ring-buffer information.

➜  bin/stats-client dump /test/ring-buffer
Dumping stats.. /test/ring-buffer
 - /test/ring-buffer                                               RingBuffer
  config: entry_size=258, ring_size=4096, threads=3, schema_version=1, schema_size=45
  thread[0]: head=29 seq=29 schema_version=1
  thread[1]: head=13 seq=13 schema_version=1
  thread[2]: head=8 seq=8 schema_version=1
Dumped 1 (1) stats

hsandid and others added 3 commits March 5, 2026 11:36
* Support for ring buffers entries in the VPP stats-segment
was recently introduced (https://gerrit.fd.io/r/c/vpp/+/43471)

* This PR introduces support in the statseg_v2 for consuming
ring-buffer entries (config, metadata, data), and also
displaying ring-buffer information when dumping through
the stats-client.

Signed-off-by: Hadi Sandid <hadisandid@gmail.com>
@ondrej-fabry ondrej-fabry added the feature New Feature label Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New Feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants