]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: bpf: Add a test for mmapable vmlinux BTF
authorLorenz Bauer <lmb@isovalent.com>
Tue, 20 May 2025 13:01:18 +0000 (14:01 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 23 May 2025 17:06:28 +0000 (10:06 -0700)
commit828226b69ff54d57afd7b3cb56095ef8186ba290
tree3dec743245739c498a32c3f5944a07438d0ec3ff
parenta539e2a6d51d1c12d89eec149ccc72ec561639bc
selftests: bpf: Add a test for mmapable vmlinux BTF

Add a basic test for the ability to mmap /sys/kernel/btf/vmlinux.
Ensure that the data is valid BTF and that it is padded with zero.

Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Tested-by: Alan Maguire <alan.maguire@oracle.com>
Link: https://lore.kernel.org/bpf/20250520-vmlinux-mmap-v5-2-e8c941acc414@isovalent.com
tools/testing/selftests/bpf/prog_tests/btf_sysfs.c [new file with mode: 0644]