diff options
author | Pu Lehui <pulehui@huawei.com> | 2025-01-15 13:02:41 +0300 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2025-01-17 02:34:18 +0300 |
commit | 556a399406635566413f9c71b134d5d287b25b29 (patch) | |
tree | 93ad3111ab82ceca06974b35ed96c9c94a723598 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 5ca681a86ef93369685cb63f71994f4cf7303e7c (diff) | |
download | linux-556a399406635566413f9c71b134d5d287b25b29.tar.xz |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions