]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: Add test cases for btf__permute functionality
authorDonglin Peng <pengdonglin@xiaomi.com>
Fri, 9 Jan 2026 12:59:54 +0000 (20:59 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 14 Jan 2026 00:10:39 +0000 (16:10 -0800)
commita3acd7d43462a7f7429301afad3c0059276f427e
tree9815d3d982eb8446b1431caa71921c61b7b58fb0
parent6fbf129c49905e9e34801b362c9c30ae383d7a90
selftests/bpf: Add test cases for btf__permute functionality

This patch introduces test cases for the btf__permute function to ensure
it works correctly with both base BTF and split BTF scenarios.

The test suite includes:
- test_permute_base: Validates permutation on base BTF
- test_permute_split: Tests permutation on split BTF

Signed-off-by: Donglin Peng <pengdonglin@xiaomi.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/bpf/20260109130003.3313716-3-dolinux.peng@gmail.com
tools/testing/selftests/bpf/prog_tests/btf_permute.c [new file with mode: 0644]