summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorAlan Maguire <alan.maguire@oracle.com>2025-04-29 17:10:42 +0100
committerAndrii Nakryiko <andrii@kernel.org>2025-04-29 10:16:23 -0700
commit8e64c387c942229c551d0f23de4d9993d3a2acb6 (patch)
treee03d6fc163a6006e727164f0ba98101ddec9008c /tools/perf/scripts/python/export-to-sqlite.py
parent224ee86639f57818cf4e05bd86eb7d9f31baac8d (diff)
libbpf: Add identical pointer detection to btf_dedup_is_equiv()
Recently as a side-effect of commit ac053946f5c4 ("compiler.h: introduce TYPEOF_UNQUAL() macro") issues were observed in deduplication between modules and kernel BTF such that a large number of kernel types were not deduplicated so were found in module BTF (task_struct, bpf_prog etc). The root cause appeared to be a failure to dedup struct types, specifically those with members that were pointers with __percpu annotations. The issue in dedup is at the point that we are deduplicating structures, we have not yet deduplicated reference types like pointers. If multiple copies of a pointer point at the same (deduplicated) integer as in this case, we do not see them as identical. Special handling already exists to deal with structures and arrays, so add pointer handling here too. Reported-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Alan Maguire <alan.maguire@oracle.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20250429161042.2069678-1-alan.maguire@oracle.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions