Closed Fin-chan closed 6 months ago
This is expected for a 5.4 kernel unfortunately. The cause here is that BPF ring buffer support isn't present in 5.4 (unless the kernel in question has backported BPF ring buffer support from 5.6). The README mentions this in the "Getting started" section:
"From the kernel side, the kernel needs to support BPF ring buffer (around the 5.6 kernel, though 5.4 is supported on Oracle Linux as ring buffer support was backported), and kernel BTF is required (CONFIG_DEBUG_INFO_BTF=y). Verify /sys/kernel/btf/vmlinux is present."
That's what we see above:
"bpftune: libbpf: map 'ring_buffer_map': failed to create: Invalid argument(-22)"
So I'd recommend using a 5.6 or later kernel if possible.
Closing this one as 5.4 support without ringbuf isn't possible
i'm trying to run bpftune on kernel(Linux VM-216-74-centos 5.4.119-1)with the following configuration:
and after building from commit 22926812a555eac910eac0699100bac0f8776f1b I get the error:
with:
What is the cause of the problem and how do I fix it?