Thread (37 messages) 37 messages, 8 authors, 2026-03-15

Re: [RFC PATCH 0/4] Enable Clang's Source-based Code Coverage and MC/DC for x86-64

From: Sasha Levin <sashal@kernel.org>
Date: 2026-03-15 14:15:59
Also in: linux-arch, linux-efi, linux-kbuild, linux-um, lkml, llvm

On Wed, Oct 15, 2025 at 11:21:45AM +0200, Peter Zijlstra wrote:
On Wed, Oct 15, 2025 at 08:26:50AM +0000, Chuck Wolber wrote:
quoted
Optimization makes it nearly impossible to correlate GCov results back to
actual lines of source. llvm-cov instruments at the AST level which enables
precise mapping back to source code regardless of optimization level.


A detailed rundown on this issue can be found here[1], with the most relevant
excerpt reproduced here:
Yes read and understand this, but that doesn't mean you have to have 3
different kernel interfaces for all of this, right?
To clarify, are you suggesting that we'll have something like a single
/sys/kernel/debug/coverage interface that is producing the same structured
output whether we use gcov or llvm?

-- 
Thanks,
Sasha
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help