Re: [PATCH v2 01/20] coverage: move gcov and kcov under kernel/coverage/

From: Peter Oberparleiter

Date: Thu Nov 05 2026 - 12:44:02 EST


On 03.11.2026 02:52, Sasha Levin wrote:
> The kernel carries more than one code coverage implementation, each
> with its own directory, Kconfig menu, build plumbing and debugfs
> interface. Start consolidating them by moving the existing
> implementations next to each other:
>
> kernel/gcov/ -> kernel/coverage/gcov/
> kernel/kcov.c -> kernel/coverage/kcov.c
>
> Both are configured from a new "Code coverage" menu in
> kernel/coverage/Kconfig, which is sourced from "Kernel Testing and
> Coverage" where the KCOV options used to live. The gcov options move
> there from "General architecture-dependent options".
>
> No functional change: the Kconfig symbols and their dependencies are
> unchanged, and so are the per-object compiler flags of kcov.o, which
> move to kernel/coverage/Makefile.
>
> Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

For the gcov portion:

Reviewed-by: Peter Oberparleiter <oberpar@xxxxxxxxxxxxx>


--
Peter Oberparleiter
Linux on IBM Z Development - IBM Germany R&D