From: "Arnd Bergmann" <arnd@arndb.de>
To: "Linus Torvalds" <torvalds@linux-foundation.org>,
"Masahiro Yamada" <masahiroy@kernel.org>
Cc: linux-kernel@vger.kernel.org,
Linux-Arch <linux-arch@vger.kernel.org>,
linux-arm-kernel@lists.infradead.org,
"linux-csky@vger.kernel.org" <linux-csky@vger.kernel.org>,
linux-hexagon@vger.kernel.org, loongarch@lists.linux.dev,
"linux-openrisc@vger.kernel.org" <linux-openrisc@vger.kernel.org>,
linux-snps-arc@lists.infradead.org
Subject: Re: [GIT PULL] asm-generic updates for 6.11
Date: Wed, 17 Jul 2024 06:43:50 +0200 [thread overview]
Message-ID: <d7d6854b-e10d-473f-90c8-5e67cc5d540a@app.fastmail.com> (raw)
In-Reply-To: <CAHk-=wibB7SvXnUftBgAt+4-3vEKRpvEgBeDEH=i=j2GvDitoA@mail.gmail.com>
On Wed, Jul 17, 2024, at 06:02, Linus Torvalds wrote:
> On Mon, 15 Jul 2024 at 14:07, Arnd Bergmann <arnd@arndb.de> wrote:
>
> But that's not at all what I see. It rebuilds pretty much the whole
> tree (not quite everything, but at an estimate it rebuilds the
> majority of files).
>
> And the first things I see in the build log is
>
> SYSHDR arch/arm64/include/generated/uapi/asm/unistd_64.h
> SYSTBL arch/arm64/include/generated/asm/syscall_table_32.h
> SYSTBL arch/arm64/include/generated/asm/syscall_table_64.h
> SYSHDR arch/arm64/include/generated/asm/unistd_32.h
> SYSHDR arch/arm64/include/generated/asm/unistd_compat_32.h
> HDRINST usr/include/asm/unistd_64.h
> CC arch/arm64/kernel/asm-offsets.s
> CALL scripts/checksyscalls.sh
> ...
>
> which is why I'm suspecting your changes without having actually
> bisected the build time regression at all.
Right, I can confirm that this is not supposed to happen, and
it didn't do that for me during my testing. It should only
recreate asm/unistd_64.h if scripts/syscall.tbl changed,
as it does on the architectures that are using the
"archheaders:" rule to get into the architecture specific
arch/*/*/syscalls/Makefile/.
> This needs fixing, urgently. Because it turns a "small pull" into
> always taking 5+ minutes for me. I didn't notice immediately, because
> many of my core pulls I _expect_ to rebuild everything, but...
>
> Btw, I don't see the same effect on x86-64, so this is purely an arm64
> issue (well, and presumably any other architecture that uses
> 'syscall-y').
>
> You might want to do a build like this:
>
> make allmodconfig
> make
>
> twice, and then do
>
> find . -newer .config -name '*.h'
>
> to find things where the build has generated header files with new
> timestamps despite no changes.
I tried now both with my branch and with your latest commit
51835949dda3 ("Merge tag 'net-next-6.11' of
git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next")
but can't reproduce it yet. My first guess was that this
might be related to building inside the source tree rather
than a separate object tree (which I used for my own testing),
but that did not make a difference either.
> I'm adding Masahiro to the participants, because of some of the other
> files that *do* show up for me when I do the above thing:
>
> On x86:
> arch/x86/boot/voffset.h
> arch/x86/boot/zoffset.h
> security/apparmor/net_names.h
>
> On arm64 (ignoring the above and the syscall ones):
> include/generated/vdso-offsets.h
>
> That 'find' also shows that the install headers thing does the same to
> the ./usr/include/ directories, but the kernel build doesn't care
> about those.
I don't see those either (this is an x86 defconfig example):
$ find . -newer .config -name '*.h'
./include/generated/autoconf.h
So whatever caused the regression is probably a result of my
changes, but so far I haven't been able to explain or
reproduce it. I'll keep looking.
Arnd
next prev parent reply other threads:[~2024-07-17 4:44 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-15 21:14 [GIT PULL] asm-generic updates for 6.11 Arnd Bergmann
2024-07-16 19:25 ` pr-tracker-bot
2024-07-17 4:02 ` Linus Torvalds
2024-07-17 4:43 ` Arnd Bergmann [this message]
2024-07-17 4:57 ` Linus Torvalds
2024-07-17 5:08 ` Linus Torvalds
2024-07-17 6:01 ` Arnd Bergmann
2024-07-17 6:41 ` Johan Hovold
2024-07-17 8:01 ` Arnd Bergmann
2024-07-17 8:17 ` Johan Hovold
2024-07-17 9:36 ` Arnd Bergmann
2024-07-17 10:54 ` Arnd Bergmann
2024-07-17 12:45 ` Arnd Bergmann
2024-07-17 7:18 ` Arnd Bergmann
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=d7d6854b-e10d-473f-90c8-5e67cc5d540a@app.fastmail.com \
--to=arnd@arndb.de \
--cc=linux-arch@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-csky@vger.kernel.org \
--cc=linux-hexagon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-openrisc@vger.kernel.org \
--cc=linux-snps-arc@lists.infradead.org \
--cc=loongarch@lists.linux.dev \
--cc=masahiroy@kernel.org \
--cc=torvalds@linux-foundation.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