]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
gcov: disable for COMPILE_TEST
authorArnd Bergmann <arnd@arndb.de>
Mon, 25 Apr 2016 15:35:29 +0000 (17:35 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 13 Mar 2018 10:48:07 +0000 (11:48 +0100)
commitf773bd7142e7ad4ff74319987555e7e07b528d3f
tree649244b25e3731785717e4ce07c36cf94ea10843
parent470f3136f356a46eb94939829e27c447bd82e905
gcov: disable for COMPILE_TEST

BugLink: http://bugs.launchpad.net/bugs/1754375
commit cc622420798c4bcf093785d872525087a7798db9 upstream.

Enabling gcov is counterproductive to compile testing: it significantly
increases the kernel image size, compile time, and it produces lots
of false positive "may be used uninitialized" warnings as the result
of missed optimizations.

This is in line with how UBSAN_SANITIZE_ALL and PROFILE_ALL_BRANCHES
work, both of which have similar problems.

With an ARM allmodconfig kernel, I see the build time drop from
283 minutes CPU time to 225 minutes, and the vmlinux size drops
from 43MB to 26MB.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Signed-off-by: Michal Marek <mmarek@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
kernel/gcov/Kconfig