Skip to content
Commit bfb713ea authored by james-c-linaro's avatar james-c-linaro Committed by Namhyung Kim
Browse files

perf tools: Fix arm64 build by generating unistd_64.h



Since pulling in the kernel changes in commit 22f72088 ("tools
headers: Update the syscall table with the kernel sources"), arm64 is
no longer using a generic syscall header and generates one from the
syscall table. Therefore we must also generate the syscall header for
arm64 before building Perf.

Add it as a dependency to libperf which uses one syscall number. Perf
uses more, but as libperf is a dependency of Perf it will be generated
for both.

Future platforms that need this will have to add their own syscall-y
targets in libperf manually. Unfortunately the arch specific files that
do this (e.g. arch/arm64/include/asm/Kbuild) can't easily be imported
into the Perf build. But Perf only needs a subset of the generated files
anyway, so redefining them is probably the correct thing to do.

Fixes: 22f72088 ("tools headers: Update the syscall table with the kernel sources")
Signed-off-by: james-c-linaro's avatarJames Clark <james.clark@linaro.org>
Tested-by: default avatarHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Link: https://lore.kernel.org/r/20250417-james-perf-fix-gen-syscall-v1-1-1d268c923901@linaro.org


Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
parent 9c32cda4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment