From: Leo Yan <leo.yan@arm.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: James Clark <james.clark@linaro.org>,
Joel May <joel-linux@jmay.us>, Ian Rogers <irogers@google.com>,
linux-arm-kernel@lists.infradead.org,
Linux perf Profiling <linux-perf-users@vger.kernel.org>,
Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will@kernel.org>,
Arnaldo Carvalho de Melo <acme@kernel.org>,
Namhyung Kim <namhyung@kernel.org>
Subject: Re: [PATCH] arm64: perf: fix syscalltbl path base
Date: Tue, 16 Dec 2025 12:04:52 +0000 [thread overview]
Message-ID: <20251216120452.GA912180@e132581.arm.com> (raw)
In-Reply-To: <67bafe7d-6761-4b1c-8742-628513e7e8bd@app.fastmail.com>
On Tue, Dec 16, 2025 at 08:17:51AM +0100, Arnd Bergmann wrote:
[...]
> I didn't find the reference to breaking, do you just mean it
> would break when falling back to a header provided by the
> toolchain's own asm/unistd.h, or a problem with the modern
> generated version that is solved by using the old asm-generic
> file?
Sorry for confusion. I mean build breakage caused by using
toolchain's own asm/unistd.h.
> I would also point out that s390 no longer needs a custom script
> as of 6.19, since the last incompatibility between the s390 format
> and the x86 format of the tbl files got resolved with the removal
> of the s390 compat mode.
Thanks for the info. I saw 4ac286c4a8d9 ("s390/syscalls: Switch to
generic system call table generation") for the s390 consolidation.
To be clear, Perf makefile now only uses
tools/perf/arch/*/entry/syscalls/syscall*.tbl to create syscall arrays
for tracing (e.g., print beauty string for syscall trace).
The dilemma is that the *.tbl files are in ./tools/perf, if we generate
unistd_64/32.h headers are not visible to other programs under ./tools.
> >> or we just stick with
> >> the old asm-generic/unistd.h copy and use that on arm64 as well.
> >
> > I will proceed this way for now. From a maintenance view, it is a
> > pragmatic solution that only requires reverting a few patches and does
> > not introduce any new code.
>
> Note that if we ever need to update the
> tools/include/uapi/asm-generic/unistd.h file for new syscalls,
> that will get harder in the future once we remove the
> kernel's own include/uapi/asm-generic/unistd.h. I'm sorry
> I never sent that fix after the previous cleanup that introduced
> the common script.
I agree this is a potential risk if we stick to static headers.
Thanks,
Leo
prev parent reply other threads:[~2025-12-16 12:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <b2651f20-6f3a-49f5-9cd8-3fb028b2cab5@app.fastmail.com>
2025-12-15 8:47 ` [PATCH] arm64: perf: fix syscalltbl path base James Clark
2025-12-15 9:33 ` Arnd Bergmann
2025-12-15 10:52 ` James Clark
2025-12-15 11:28 ` Leo Yan
2025-12-15 12:22 ` Arnd Bergmann
2025-12-15 16:49 ` Leo Yan
2025-12-16 7:17 ` Arnd Bergmann
2025-12-16 12:04 ` Leo Yan [this message]
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=20251216120452.GA912180@e132581.arm.com \
--to=leo.yan@arm.com \
--cc=acme@kernel.org \
--cc=arnd@arndb.de \
--cc=catalin.marinas@arm.com \
--cc=irogers@google.com \
--cc=james.clark@linaro.org \
--cc=joel-linux@jmay.us \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=namhyung@kernel.org \
--cc=will@kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).