You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update btf_new_empty() to copy the pointer size from a provided base BTF.
This ensures split BTF works properly and fixes test failures seen on
32-bit targets:
root@qemu-armhf:/usr/libexec/kselftests-bpf# ./test_progs -a btf_split
__test_btf_split:PASS:empty_main_btf 0 nsec
__test_btf_split:PASS:main_ptr_sz 0 nsec
__test_btf_split:PASS:empty_split_btf 0 nsec
__test_btf_split:FAIL:inherit_ptr_sz unexpected inherit_ptr_sz: actual 4 != expected 8
[...]
#41/1 btf_split/single_split:FAIL
Fixes: ba45136 ("libbpf: Implement basic split BTF support")
Signed-off-by: Tony Ambardar <[email protected]>
Reviewed-by: Alan Maguire <[email protected]>
0 commit comments