[PATCH v1 04/26] perf build: Don't check difference of perf and libbpf hashmap

From: Ian Rogers

Date: Fri Nov 13 2026 - 16:49:55 EST


We want to explore diverging the perf hashmap from libbpf's to fix a
few subtle bugs around strict aliasing (casting void ** to long *) and
use of ERR_PTR which is non-standard in the perf codebase and a source
of bugs such as:
commit d05073adda0f ("perf trace: Avoid an ERR_PTR in syscall_stats")
commit 96f202eab813 ("perf trace: Fix IS_ERR() vs NULL check bug")
commit 9f3c16a430e8 ("perf expr: Fix return value of ids__new()")

Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx>
---
tools/perf/check-headers.sh | 4 ----
1 file changed, 4 deletions(-)

diff --git a/tools/perf/check-headers.sh b/tools/perf/check-headers.sh
index 531c0e0e84df..846a1b2fa5d8 100755
--- a/tools/perf/check-headers.sh
+++ b/tools/perf/check-headers.sh
@@ -214,10 +214,6 @@ do
beauty_check "$i" -B
done

-# check duplicated library files
-check_2 tools/perf/util/hashmap.h tools/lib/bpf/hashmap.h
-check_2 tools/perf/util/hashmap.c tools/lib/bpf/hashmap.c
-
# Files with larger differences

check_ignore_some_hunks lib/list_sort.c
--
2.56.1.703.gf848ed807c-goog