Linux Perf Users
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: john.song <john.song@ucloud.cn>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: [PATCH] perf: arm64: Replace symlink with actual file for syscall_64.tbl
Date: Wed, 10 Jun 2026 06:15:15 +0000	[thread overview]
Message-ID: <20260610061516.0F7CC1F00893@smtp.kernel.org> (raw)
In-Reply-To: <AHMAuwBaMCb7DmUcFDGOhqrg.1.1781071552750.Hmail.john.song@ucloud.cn>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The patch replaces a symlink with a static copy of the arm64 syscall table, but the provided file is already outdated and disconnected from future updates. It stops at syscall 469, whereas the kernel's master table (`scripts/syscall.tbl`) already contains syscalls 470 (`listns`) and 471 (`rseq_slice_yield`). This breaks syscall resolution in `perf trace` for arm64. Additionally, this drift will never be reported by `tools/perf/check-headers.sh` because the script incorrectly targets `arch/arm64/entry/syscalls/syscall_64.tbl` for the comparison (a file that does not exist in the upstream kernel). Because the script skips missing files silently, the static table is completely unmonitored for drift.
--

commit 69ef3e76744219b93b8388736329d8ad87757a55
Author: john.song <john.song@ucloud.cn>

perf: arm64: Replace symlink with actual file for syscall_64.tbl

This patch replaces the symlink to scripts/syscall.tbl with a static copy
of the file for the arm64 architecture. This is intended to fix build
failures in environments where relative symlinks become invalid due to
copying.

> diff --git a/tools/perf/arch/arm64/entry/syscalls/syscall_64.tbl b/tools/perf/arch/arm64/entry/syscalls/syscall_64.tbl
> deleted file mode 120000
> index 4fdd58f10c155..0000000000000
> --- a/tools/perf/arch/arm64/entry/syscalls/syscall_64.tbl
> +++ /dev/null
> @@ -1 +0,0 @@
> -../../../../../scripts/syscall.tbl
> \ No newline at end of file
> diff --git a/tools/perf/arch/arm64/entry/syscalls/syscall_64.tbl b/tools/perf/arch/arm64/entry/syscalls/syscall_64.tbl
> new file mode 100644
> index 0000000000000..d1ae5e92c615b
> --- /dev/null
> +++ b/tools/perf/arch/arm64/entry/syscalls/syscall_64.tbl
> @@ -0,0 +1,412 @@
[ ... ]
> +466	common	removexattrat			sys_removexattrat
> +467	common	open_tree_attr			sys_open_tree_attr
> +468	common	file_getattr			sys_file_getattr
> +469	common	file_setattr			sys_file_setattr

[Severity: High]
Does replacing the symlink with this static file cause us to silently drop
support for newer syscalls in perf trace?

The static file provided here stops at syscall 469, but the kernel's
master table (scripts/syscall.tbl) already contains syscalls 470 and 471.

Will this drift also go undetected by tools/perf/check-headers.sh? It
appears the sync check currently targets
arch/arm64/entry/syscalls/syscall_64.tbl, which is a nonexistent kernel
path. Since the script silently bypasses missing files, this static table
will remain unmonitored for future drift.

To avoid symlinks without introducing unmonitored drift, should we instead
configure tools/perf/trace/beauty/syscalltbl.sh to read
scripts/syscall.tbl directly for arm64, similar to what is done for
RISC-V?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/AHMAuwBaMCb7DmUcFDGOhqrg.1.1781071552750.Hmail.john.song@ucloud.cn?part=1

  reply	other threads:[~2026-06-10  6:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-10  6:05 [PATCH] perf: arm64: Replace symlink with actual file for syscall_64.tbl john.song
2026-06-10  6:15 ` sashiko-bot [this message]
2026-06-10 10:59 ` Leo Yan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260610061516.0F7CC1F00893@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=john.song@ucloud.cn \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox