Re: [PATCH 04/24] alpha: select ARCH_HAS_GCOV_PROFILE_ALL
From: Magnus Lindholm
Date: Thu Sep 03 2026 - 18:35:55 EST
Hi Matt,
On Tue, Sep 1, 2026 at 5:50 PM Matt Turner <mattst88@xxxxxxxxx> wrote:
>
> GCC's gcov instrumentation (-fprofile-arcs -ftest-coverage) has no
> architecture-specific runtime requirements. Enable GCOV_PROFILE_ALL
> support for Alpha to allow whole-kernel code coverage analysis.
>
> Assisted-by: Claude:claude-opus-4-6
> Signed-off-by: Matt Turner <mattst88@xxxxxxxxx>
> ---
> arch/alpha/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git ./arch/alpha/Kconfig ./arch/alpha/Kconfig
> index 1aa76a2d9750..a6024590ea6e 100644
> --- ./arch/alpha/Kconfig
> +++ ./arch/alpha/Kconfig
> @@ -5,6 +5,7 @@ config ALPHA
> select ARCH_32BIT_USTAT_F_TINODE
> select ARCH_HAS_CURRENT_STACK_POINTER
> select ARCH_HAS_DMA_OPS if PCI
> + select ARCH_HAS_GCOV_PROFILE_ALL
> select ARCH_HAS_UBSAN
> select ARCH_MIGHT_HAVE_PC_PARPORT
> select ARCH_MIGHT_HAVE_PC_SERIO
> --
> 2.54.0
>
I built and booted this on a two-CPU UP2000 with GCOV_KERNEL and
GCOV_PROFILE_ALL enabled. Debugfs exposed 1226 .gcda files, including
the expected arch/alpha objects. I observed no GCOV-related errors or
kernel warnings.
This also appears to warrant changing Alpha from "TODO" to "ok" in
Documentation/features/debug/gcov-profile-all/arch-support.txt.
Tested-by: Magnus Lindholm <linmag7@xxxxxxxxx>
Reviewed-by: Magnus Lindholm <linmag7@xxxxxxxxx>
Regards,
Magnus