Skip to content

add ring_buffer__query

Martin Kelly bpf 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2libbpf: add ring_buffer__querytools/lib/bpf/libbpf.h tools/lib/bpf/libbpf.map tools/lib/bpf/ringbuf.c+36 -04 replies
2/2selftests/bpf: add tests for ring_buffer__querytools/testing/selftests/bpf/prog_tests/ringbuf.c+22 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH bpf-next 0/2] add ring_buffer__query

Add a ring_buffer__query function mimicking the existing bpf_ringbuf_query helper but accessible from usermode. This can be useful for programs to query ringbuffer information at runtime, e.g. seeing how much free space the ringbuffers currently have.

Martin Kelly (2):
libbpf: add ring_buffer__query
selftests/bpf: add tests for ring_buffer__query

 tools/lib/bpf/libbpf.h                        |  2 ++
 tools/lib/bpf/libbpf.map                      |  1 +
 tools/lib/bpf/ringbuf.c                       | 33 +++++++++++++++++++
 .../selftests/bpf/prog_tests/ringbuf.c        | 22 +++++++++++++
 4 files changed, 58 insertions(+)
Signature · 1 line
2.34.1