[PATCH v3 1/2] kconfig: Remove the architecture specific config for AutoFDO
Rong Xu
xur at google.com
Mon Jun 1 09:52:56 PDT 2026
On Fri, May 29, 2026 at 5:47 PM Nathan Chancellor <nathan at kernel.org> wrote:
>
> On Wed, 27 May 2026 14:45:07 -0700, xur at google.com <xur at google.com> wrote:
> > The CONFIG_AUTOFDO_CLANG option currently depends on
> > ARCH_SUPPORTS_AUTOFDO_CLANG, but this dependency seems unnecessary.
> >
> > Remove ARCH_SUPPORTS_AUTOFDO_CLANG and allow users to control AutoFDO
> > builds solely through CONFIG_AUTOFDO_CLANG. This simplifies the kconfig
> > and avoids potential confusion.
>
> It is worth noting that not all architectures support
> '-fsplit-machine-functions' but I guess that does not matter too much
> because it will only be used if a profile is provided, which would
> require an architecture that is supported by the AutoFDO tooling? The
> documentation is x86_64 focused but aarch64 works as well, any others
> that the kernel supports?
Current support extends to x86_64 and arm64 architectures only.
We initially considered making arm64 to opt-in, Will suggests that users should
be expected to verify AutoFDO/Propeller compatibility independently
before using it.
This approach allows for the removal of ARCH_SUPPORTS_..., which prevents
potential confusion.
Thanks!
-Rong
>
> --
> Cheers,
> Nathan
>
More information about the linux-arm-kernel
mailing list