Re: [RFC PATCH v7 2/7] selftests/bpf: Add test cases for btf__permute functionality
From: Eduard Zingerman
Date: Thu Nov 20 2025 - 19:20:39 EST
On Wed, 2025-11-19 at 11:15 +0800, Donglin Peng wrote:
> From: Donglin Peng <pengdonglin@xxxxxxxxxx>
>
> 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
> - test_permute_drop_base: Validates type dropping on base BTF
> - test_permute_drop_split: Tests type dropping on split BTF
> - test_permute_drop_dedup: Tests type dropping and deduping
>
> Cc: Eduard Zingerman <eddyz87@xxxxxxxxx>
> Cc: Alexei Starovoitov <ast@xxxxxxxxxx>
> Cc: Andrii Nakryiko <andrii.nakryiko@xxxxxxxxx>
> Cc: Alan Maguire <alan.maguire@xxxxxxxxxx>
> Cc: Song Liu <song@xxxxxxxxxx>
> Cc: Xiaoqin Zhang <zhangxiaoqin@xxxxxxxxxx>
> Signed-off-by: Donglin Peng <pengdonglin@xxxxxxxxxx>
> ---
Do we have an infrastructure for .btf_ext tests?
[...]