Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755347Ab1FFK5Q (ORCPT ); Mon, 6 Jun 2011 06:57:16 -0400 Received: from mtagate3.uk.ibm.com ([194.196.100.163]:39714 "EHLO mtagate3.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752513Ab1FFK5N (ORCPT ); Mon, 6 Jun 2011 06:57:13 -0400 Message-ID: <4DECB261.5090109@linux.vnet.ibm.com> Date: Mon, 06 Jun 2011 12:56:33 +0200 From: Peter Oberparleiter MIME-Version: 1.0 To: Josh Triplett CC: Rusty Russell , WANG Cong , Sam Ravnborg , Jeff Dike , Andi Kleen , Huang Ying , Li Wei , Michael Ellerman , Ingo Molnar , Heiko Carstens , Martin Schwidefsky , Al Viro , Andrew Morton , Linus Torvalds , linux-kernel@vger.kernel.org Subject: Re: [PATCH] Disable CONFIG_CONSTRUCTORS when not needed by CONFIG_GCOV_KERNEL References: <20110605082100.GA18151@leaf> In-Reply-To: <20110605082100.GA18151@leaf> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1185 Lines: 31 On 05.06.2011 10:21, Josh Triplett wrote: > CONFIG_CONSTRUCTORS controls support for running constructor functions > at kernel init time. According to commit > b99b87f70c7785ab1e253c6220f4b0b57ce3a7f7, gcov (CONFIG_GCOV_KERNEL) > needs this. However, CONFIG_CONSTRUCTORS currently defaults to y, with > no option to disable it, and CONFIG_GCOV_KERNEL depends on it. Instead, > default it to n and have CONFIG_GCOV_KERNEL select it, so that the > normal case of CONFIG_GCOV_KERNEL=n will result in > CONFIG_CONSTRUCTORS=n. > > Observed in the short list of =y values in a minimal kernel > configuration. > > Signed-off-by: Josh Triplett > --- I tested this patch and GCOV profiling still works with it applied. To my knowledge, GCOV profiling is the only kernel mechanism using GCC's constructors and this may save some bytes. Acked-by: Peter Oberparleiter Regards, Peter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/