2026-09-21 16:35 UTC+0900 ~ Tianyi Chen <[email protected]> > map event_pipe only accepts perf event arrays, leaving no built-in way > to inspect records produced through the BPF ring buffer API. Extend it > to consume queued and live BPF_MAP_TYPE_RINGBUF records in plain or > JSON output, retaining the existing perf event array path. > > Ring buffers have a shared consumer position and no implicit CPU or > timestamp. Document that this command consumes records rather than > observing them passively, and reject perf-only CPU/index selectors. > > A producer can keep ring_buffer__poll() busy after a stop signal, so > return -EINTR from the record callback when stopping. Keep stdio out of > the shared signal handler and preserve callback output errors. > > Link: https://github.com/libbpf/bpftool/issues/54 > > Assisted-by: LLM > Signed-off-by: Tianyi Chen <[email protected]>
Tested-by: Quentin Monnet <[email protected]>
