Re: perf usage of arch/arm64/include/asm/cputype.h

From: Doug Anderson
Date: Fri Jun 13 2025 - 16:53:57 EST


Hi,

On Fri, Jun 13, 2025 at 1:14 PM Arnaldo Carvalho de Melo
<acme@xxxxxxxxxx> wrote:
>
> Hi,
>
> tools/perf (and other tools/ living code) uses a file from the kernel, a
> copy, so that we don't break its build when something changes in the
> kernel that tooling uses.
>
> There is this tools/perf/check-headers.sh that does the "copy coherency
> check", while trying to act on such a warning I stumbled on the report
> below.
>
> More details at:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/include/uapi/README
>
>
> If you could please take a look at this that would be great, the initial
> copy was made at:

I'm not sure exactly what you're asking folks to do, but my guess is
that you got broken by:

e3121298c7fc ("arm64: Modify _midr_range() functions to read
MIDR/REVIDR internally")