]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: Add a BTF verification test for kflagged type_tag
authorIhor Solodrai <ihor.solodrai@linux.dev>
Thu, 30 Jan 2025 20:12:39 +0000 (12:12 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 6 Feb 2025 00:18:00 +0000 (16:18 -0800)
commit770cdcf4a59e58c94116f1da9eb7f46b4b4823cd
treecd6f40e746f9fa59469b6a0723115c3be305d711
parent53ee0d66d7a6c00358eaffd003cb2c11f6b26e98
selftests/bpf: Add a BTF verification test for kflagged type_tag

Add a BTF verification test case for a type_tag with a kflag set.
Type tags with a kflag are now valid.

Add BTF_DECL_ATTR_ENC and BTF_TYPE_ATTR_ENC test helper macros,
corresponding to *_TAG_ENC.

Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250130201239.1429648-7-ihor.solodrai@linux.dev
tools/testing/selftests/bpf/prog_tests/btf.c
tools/testing/selftests/bpf/test_btf.h