Re: [PATCH v2] kernel: add kcov code coverage

From: Dmitry Vyukov
Date: Thu Jan 14 2016 - 04:11:15 EST


On Thu, Jan 14, 2016 at 10:03 AM, Kirill A. Shutemov
<kirill@xxxxxxxxxxxxx> wrote:
> Hi,
>
> I've tried to build current -next with the patch. It has few reject, but
> nothing major.
>
> Booting the kernel in qemu with CONFIG_KCOV=y has failed. It hangs on
> "smpboot: Total of 3 processors activated (9178.27 BogoMIPS)"
>
> The interesting part is that I have only 2 cpu in this setup!
>
> Huh?
>
> CONFIG_KCOV=n works fine.


Hi Kirill,

Thanks for testing.

I will try to reproduce this if you provide:
- location of the -next tree
- gcc revision
- .config
- qemu command line

Alternatively, you can try to bulk disable instrumentation of
everything related to boot process (by adding KCOV_INSTRUMENT := n to
the Makefile). Most likely it is due to instrumentation. If it helps,
try to bisect the the guilty files.