summaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorPu Lehui <pulehui@huawei.com>2025-01-15 10:02:40 +0000
committerAndrii Nakryiko <andrii@kernel.org>2025-01-16 15:34:18 -0800
commit5ca681a86ef93369685cb63f71994f4cf7303e7c (patch)
treeaac02d452804941dfb0e6856c741b033b5d6ca2b /scripts/generate_rust_analyzer.py
parent5436a54332c19df0acbef2b87cbf9f7cba56f2dd (diff)
downloadlinux-5ca681a86ef93369685cb63f71994f4cf7303e7c.tar.gz
linux-5ca681a86ef93369685cb63f71994f4cf7303e7c.tar.bz2
linux-5ca681a86ef93369685cb63f71994f4cf7303e7c.zip
libbpf: Fix incorrect traversal end type ID when 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. Therefore, we need to traverse the entire split BTF, which involves traversing type IDs from nr_dist_base_types to nr_types. However, the current implementation uses an incorrect traversal end type ID, so let's correct it. Fixes: 19e00c897d50 ("libbpf: Split BTF relocation") Signed-off-by: Pu Lehui <pulehui@huawei.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20250115100241.4171581-3-pulehui@huaweicloud.com
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions