Skip to contentSkip to conversation

tools headers: Skip arm64 cputype.h check

PATCH Applied Leo Yan 2 participants 2 messages Mar 16 – Mar 17 perf events

lore
Share & tools
lore

Leo Yan

author
#0 lore raw

PATCH v2 1/1 tools headers: Skip arm64 cputype.h check

Some definitions in the arm64 kernel's cputype.h are kernel specific and cause perf build failures when the header is synced into tools.

Stop checking arm64's cputype.h. In the future, the header in tools will be updated manually when teaching tools about new CPUs.

---
Changes in v2:
- Explicitly states that update cputype.h for new CPUs (Mark).
- Link to v1: https://lore.kernel.org/r/[email protected]

---
 tools/perf/check-headers.sh | 1 -
 1 file changed, 1 deletion(-)
tools/perf/check-headers.sh +0 -1
index da3aca87457fdc56c96d4184f2dee88dab026d98..31826621eebdb003d0fd681ae89822225dda966f 100755
@@ -187,7 +187,6 @@ done
 check arch/x86/lib/memcpy_64.S        '-I "^EXPORT_SYMBOL" -I "^#include <asm/export.h>" -I"^SYM_FUNC_START\(_LOCAL\)*(memcpy_\(erms\|orig\))" -I"^#include <linux/cfi_types.h>"'
 check arch/x86/lib/memset_64.S        '-I "^EXPORT_SYMBOL" -I "^#include <asm/export.h>" -I"^SYM_FUNC_START\(_LOCAL\)*(memset_\(erms\|orig\))"'
 check arch/x86/include/asm/amd/ibs.h  '-I "^#include .*/msr-index.h"'
-check arch/arm64/include/asm/cputype.h '-I "^#include [<\"]\(asm/\)*sysreg.h"'
 check include/linux/unaligned.h '-I "^#include <linux/unaligned/packed_struct.h>" -I "^#include <asm/byteorder.h>" -I "^#pragma GCC diagnostic"'
 check include/uapi/asm-generic/mman.h '-I "^#include <\(uapi/\)*asm-generic/mman-common\(-tools\)*.h>"'
 check include/uapi/linux/mman.h       '-I "^#include <\(uapi/\)*asm/mman.h>"'

---
base-commit: bb551508e78c886e6d3bcca6c744d3bc3fd8ad59
change-id: 20260316-tools_remove_sync_cputype-h-2b0de59d5de5

Best regards,

Signature · 1 line
Leo Yan <[email protected]>
maintainer Applied
#1 lore raw
Quoted 8 lines · Leo Yan

Some definitions in the arm64 kernel's cputype.h are kernel specific and cause perf build failures when the header is synced into tools.

Stop checking arm64's cputype.h. In the future, the header in tools will be updated manually when teaching tools about new CPUs.

Thanks, applied yesterday to perf-tools, for v7.0.

- Arnaldo

Quoted 4 lines

---
Changes in v2:
- Explicitly states that update cputype.h for new CPUs (Mark).
- Link to v1: https://lore.kernel.org/r/[email protected]