[PATCH v9 9/9] perf test: Add Arm CoreSight callchain test

Leo Yan leo.yan at arm.com
Wed Jun 17 04:11:49 PDT 2026


On Wed, Jun 17, 2026 at 09:38:42AM +0100, James Clark wrote:

[...]

> > +noinline void callchain_do_syscall(void)
> > +{
> > +	syscall(SYS_getpid);
> 
> I get this error when compiling for x86, but it works on Arm:
> 
> tests/workloads/callchain.c:17:10: error: use of undeclared identifier
> 'SYS_getpid'; did you mean '__getpgid'?
>         syscall(SYS_getpid);
>                 ^~~~~~~~~~
>                 __getpgid
> /usr/include/unistd.h:659:16: note: '__getpgid' declared here
> extern __pid_t __getpgid (__pid_t __pid) __THROW;

Thanks for finding this.

This is not the issue for program itself actually, it contains
tools/arch/x86/include/uapi/asm/unistd_64.h rather than uAPI headers
provided in toolchain or kernel.

At current stage, we can simply change to syscall(SYS_gettid) to
workaround the issue.



More information about the linux-arm-kernel mailing list