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

From: Will Deacon
Date: Thu Dec 19 2024 - 10:55:35 EST


On Wed, Dec 11, 2024 at 02:29:42PM -0800, Rong Xu 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.
>
> Signed-off-by: Rong Xu <xur@xxxxxxxxxx>
> Suggested-by: Will Deacon <will@xxxxxxxxxx>
> ---
> arch/Kconfig | 4 ----
> arch/x86/Kconfig | 1 -
> 2 files changed, 5 deletions(-)

Acked-by: Will Deacon <will@xxxxxxxxxx>

However, you've dropped the previous hunk you had to
Documentation/dev-tools/autofdo.rst which had some text about using ETM
to collect fdo data on arm64. It seems like that might still be useful
to have?

Will