From patchwork Fri Feb 12 16:06:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102790 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp912686lbl; Fri, 12 Feb 2016 08:07:50 -0800 (PST) X-Received: by 10.98.0.84 with SMTP id 81mr3276295pfa.67.1455293269887; Fri, 12 Feb 2016 08:07:49 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r79si20768576pfb.75.2016.02.12.08.07.49; Fri, 12 Feb 2016 08:07:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751649AbcBLQHk (ORCPT + 30 others); Fri, 12 Feb 2016 11:07:40 -0500 Received: from mout.kundenserver.de ([212.227.126.134]:56720 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750771AbcBLQHh (ORCPT ); Fri, 12 Feb 2016 11:07:37 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue001) with ESMTPA (Nemesis) id 0MEOE4-1aEvEQ0mMa-00FReW; Fri, 12 Feb 2016 17:07:06 +0100 From: Arnd Bergmann To: Michal Marek , Peter Oberparleiter Cc: linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann Subject: [PATCH 3/5] gcov: disable for COMPILE_TEST Date: Fri, 12 Feb 2016 17:06:20 +0100 Message-Id: <1455293187-179811-4-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1455293187-179811-1-git-send-email-arnd@arndb.de> References: <1455293187-179811-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:yYoFLmsDdCnpQaQSN6A1M2cbe0cRRwg2nvUn2/AyCMNIYk2ZDf5 XEpqjQfvvoKpzW0Lzuc+bUKPz0E+4w9Ot0nSHANMEYpATNsUYCUSnuIC8MnB6Lam6HpXKYV UQjoqFdUo7rJCAQ1JQkqgz7hWQSW6AXLeF0qinmo8qsEA3co5WpMQFHWgsvc0dz7mcjcltR dgzYBB0cNJ9Gn1GIAWEtw== X-UI-Out-Filterresults: notjunk:1; V01:K0:UAwaYcaznec=:8vL2VyPeJiVoFkx/2mdE9s sb8OGvZnycz8oodb6GdtFchXGyb2fBQrl8NEI0t7SJzCE+tQb8k2Y6qjDNSQwmtPBgA/2SOHT yBvDpVVMrkgfq7FZ9FAlyO6vXwAvZAerFEFG95JVT4CRLjVctNUX9is0CMOYQs2WW57YOox8C 7J5NqdyK0TlWPkDINMKUsZGogQdN8Hkso7uXCV4KNE6YRGvK6SRgD6OM3rrXU+rnnBtLIr4dA EWpYC/UkPP1m20OYRCds1tJ7UC+Fh6HKcAoHQ1YCaT9DA629veRi8CtP+eQRZvDLe+JRquZFH D9mwKu0T86NETfsgx5Po3U9bSfkHEbuDzDjJB+s63WBo354SghewUDusBNmvlOkToP5cjLrao 9zM1vHYp4O0a5yLyzMaB9Ez+lqQJ7kFJsxbMIZ24q1EYZ41cAb58iYZHCMTAehKF+8+uAodi6 5wFmYoEOZ1qzHBYaUOtDLeCRy7vVLkj8oT458bcIfPwsKdcPHaMbtySkalEy4rZnxIfgYTEnd UUtonGva1WP5I4V4McVAoN+ncYrezQDxWIia5znmOyw2KxyiEoDYfjng2e5NIoXU95eV3Otvn b2nxMWmoWqh2G7Dq6Hr+sxEl9cRRkNLCiDkq2kA/8xlhiHwlQSseVfaAM7mzeFxMeVzV2lM1v Jpk1hfQSTYxoR696TBs+459y3IvlSgJeIFhOLlm1H3f3naCkVPMN2heRxZjrqulEft0w= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- kernel/gcov/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.7.0 diff --git a/kernel/gcov/Kconfig b/kernel/gcov/Kconfig index c92e44855ddd..1276aabaab55 100644 --- a/kernel/gcov/Kconfig +++ b/kernel/gcov/Kconfig @@ -37,6 +37,7 @@ config ARCH_HAS_GCOV_PROFILE_ALL config GCOV_PROFILE_ALL bool "Profile entire Kernel" + depends on !COMPILE_TEST depends on GCOV_KERNEL depends on ARCH_HAS_GCOV_PROFILE_ALL default n