Re: [PATCH v3 1/2] kconfig: Remove the architecture specific config for AutoFDO

From: Rong Xu

Date: Mon Jun 01 2026 - 12:59:36 EST


On Fri, May 29, 2026 at 5:47 PM Nathan Chancellor <nathan@xxxxxxxxxx> wrote:
>
> On Wed, 27 May 2026 14:45:07 -0700, xur@xxxxxxxxxx <xur@xxxxxxxxxx> 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
>