Re: [PROPOSAL] Replace gcov and kcov with llvm-cov

From: Google

Date: Tue Oct 06 2026 - 22:31:16 EST


On Tue, 06 Oct 2026 16:27:11 +0000, Chuck Wolber <chuck@xxxxxxxxxx> wrote:
> On Tue, Oct 6, 2026, at 4:10 PM, Marco Elver wrote:
> > On Tue, 6 Oct 2026 at 17:14, Chuck Wolber <chuck@xxxxxxxxxx> wrote:

> >> If there is a desire to take this in pieces or implement other
> >> intermediate steps, let me know. Otherwise I can generate a
> >> monolithic set all at once.
> >>
> >> [1] https://lore.kernel.org/lkml/20240905043245.1389509-1-wentaoz5@xxxxxxxxxxxx/
> >
> > llvm-cov is generally useful to have; llvm-cov is closest to gcov, so
> > that might make sense to replace.
>
> Swapping llvm-cov for gcov to start with is pretty straightforward, so I
> can aim my initial patch set there.

Hmm, is it necessary to remove gcov? Would it be difficult to simply add
support for llvm-cov and enable (make kconfig selectable) one or the other
depending on the compiler?

Thanks,

--
Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>