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

From: Nathan Chancellor

Date: Fri May 29 2026 - 20:53:14 EST


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?

--
Cheers,
Nathan