summaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/ringbuf.c
diff options
context:
space:
mode:
authorHou Tao <houtao1@huawei.com>2022-11-16 15:23:48 +0800
committerAndrii Nakryiko <andrii@kernel.org>2022-11-17 15:46:05 -0800
commit689eb2f1ba46b4b02195ac2a71c55b96d619ebf8 (patch)
tree8aba35574e6ce78c84fe6c49f300478d0fe4834d /tools/lib/bpf/ringbuf.c
parent47df8a2f78bc34ff170d147d05b121f84e252b85 (diff)
downloadlinux-689eb2f1ba46b4b02195ac2a71c55b96d619ebf8.tar.gz
linux-689eb2f1ba46b4b02195ac2a71c55b96d619ebf8.tar.bz2
linux-689eb2f1ba46b4b02195ac2a71c55b96d619ebf8.zip
libbpf: Use page size as max_entries when probing ring buffer map
Using page size as max_entries when probing ring buffer map, else the probe may fail on host with 64KB page size (e.g., an ARM64 host). After the fix, the output of "bpftool feature" on above host will be correct. Before : eBPF map_type ringbuf is NOT available eBPF map_type user_ringbuf is NOT available After : eBPF map_type ringbuf is available eBPF map_type user_ringbuf is available Signed-off-by: Hou Tao <houtao1@huawei.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20221116072351.1168938-2-houtao@huaweicloud.com
Diffstat (limited to 'tools/lib/bpf/ringbuf.c')
0 files changed, 0 insertions, 0 deletions