summaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorPu Lehui <pulehui@huawei.com>2025-01-15 10:02:41 +0000
committerAndrii Nakryiko <andrii@kernel.org>2025-01-16 15:34:18 -0800
commit556a399406635566413f9c71b134d5d287b25b29 (patch)
tree93ad3111ab82ceca06974b35ed96c9c94a723598 /scripts/generate_rust_analyzer.py
parent5ca681a86ef93369685cb63f71994f4cf7303e7c (diff)
downloadlinux-556a399406635566413f9c71b134d5d287b25b29.tar.gz
linux-556a399406635566413f9c71b134d5d287b25b29.tar.bz2
linux-556a399406635566413f9c71b134d5d287b25b29.zip
selftests/bpf: Add distilled BTF test about marking BTF_IS_EMBEDDED
When redirecting the split BTF to the vmlinux base BTF, we need to mark the distilled base struct/union members of split BTF structs/unions in id_map with BTF_IS_EMBEDDED. This indicates that these types must match both name and size later. So if a needed composite type, which is the member of composite type in the split BTF, has a different size in the base BTF we wish to relocate with, btf__relocate() should error out. Signed-off-by: Pu Lehui <pulehui@huawei.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20250115100241.4171581-4-pulehui@huaweicloud.com
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions