[PATCH bpf-next 0/2] add ring_buffer__query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(+)

-- 
2.34.1





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux