]> Gentwo Git Trees - linux/.git/commit
perf tools: Fix arm64 libjvmti build by generating unistd_64.h
authorVincent Minet <v.minet@criteo.com>
Mon, 22 Sep 2025 05:37:02 +0000 (07:37 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 6 Oct 2025 20:16:52 +0000 (17:16 -0300)
commitf3b601f900902ab80902c44f820a8985384ac021
tree4acdd73fa8a68eefa307d576454c5f392527dc0f
parent5205c3d002662093150fdcfd2a236ab897ffb5a5
perf tools: Fix arm64 libjvmti build by generating unistd_64.h

Since commit 22f72088ffe6 ("tools headers: Update the syscall table with
the kernel sources") the arm64 syscall header is generated at build
time. Later, commit bfb713ea53c7 ("perf tools: Fix arm64 build by
generating unistd_64.h") added a dependency to libperf to guarantee that
this header was created before building libperf or perf itself.

However, libjvmti also requires this header but does not depend on
libperf, leading to build failures such as:

  In file included from /usr/include/sys/syscall.h:24,
                   from /usr/include/syscall.h:1,
                   from jvmti/jvmti_agent.c:36:
  tools/arch/arm64/include/uapi/asm/unistd.h:2:10: fatal error: asm/unistd_64.h: No such file or directory
      2 | #include <asm/unistd_64.h>

Fix this by ensuring that libperf is built before libjvmti, so that
unistd_64.h is always available.

Fixes: 22f72088ffe69a37 ("tools headers: Update the syscall table with the kernel sources")
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Vincent Minet <v.minet@criteo.com>
Link: https://lore.kernel.org/r/20250922053702.2688374-1-v.minet@criteo.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile.perf