]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/bpf: Fix ringbuf/ringbuf_write test failure with arm64 64KB page size
authorYonghong Song <yonghong.song@linux.dev>
Sat, 7 Jun 2025 01:36:21 +0000 (18:36 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 7 Jun 2025 02:21:43 +0000 (19:21 -0700)
commit8c8c5e3c854a2593ec90dacd868f3066b67de1c4
treeae0b404b024f20fbf44a123d821c61de839b2353
parent377d3715900c1f465a5ea8a6a11bcbdc42b18668
selftests/bpf: Fix ringbuf/ringbuf_write test failure with arm64 64KB page size

The ringbuf max_entries must be PAGE_ALIGNED. See kernel function
ringbuf_map_alloc(). So for arm64 64KB page size, adjust max_entries
and other related metrics properly.

Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20250607013621.1552332-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/ringbuf.c
tools/testing/selftests/bpf/progs/test_ringbuf_write.c