Re: [PATCH v3 00/19] Unify code coverage and add Clang source-based coverage with MC/DC
From: Chuck Wolber
Date: Tue Dec 01 2026 - 01:36:48 EST
On Wed, Nov 25, 2026, at 2:05 AM, Sasha Levin wrote:
> Testing
> =======
>
> On v7.4-rc4:
> - Clang 22 with GNU binutils, tinyconfig with source-based coverage and
> MC/DC: builds without warnings. The payload of the compressed kernel
> is 33 MB; with the coverage mapping left in, it would be 150 MB.
I have successfully built and tested v3 on x86_64 using LLVM 22.1.8
(including the integrated assembler and LLD) under QEMU 10.0.13,
starting with defconfig on v7.4-rc4 and enabling:
CONFIG_COVERAGE_KERNEL=y
CONFIG_COVERAGE_PROFILE_ALL=y
CONFIG_COVERAGE_MCDC=y
CONFIG_LLVM_COV_KERNEL=y
CONFIG_LLVM_COV_MCDC_MAX_CONDITIONS=44
CONFIG_KUNIT=y
CONFIG_KUNIT_ALL_TESTS=y
# CONFIG_KUNIT_FAULT_TEST is not set
I also enabled CONFIG_FORTIFY_SOURCE and CONFIG_AMD_MEM_ENCRYPT to
exercise the configuration associated with Nathan Chancellor's earlier
kernel hang [1]. I was unable to reproduce that hang.
I was able to execute KUnit tests and successfully extract and process
the resulting LLVM function, line, and MC/DC coverage data.
I encountered an unrelated hang in the drm_panic_helper KUnit suite,
which was resolved by applying the upstream DRM panic screen fix [2].
Testing was limited to the LLVM coverage backend. I have not tested the
GCC/gcov backend.
I will follow up with individual patch reviews.
..Ch:W..
[1] https://lore.kernel.org/all/20241003232938.GA1663252@thelio-3990X/
[2] https://lore.kernel.org/lkml/20261119191038.146963-1-lucid_duck@xxxxxxxxxxxxx/