Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754017AbZAISl2 (ORCPT ); Fri, 9 Jan 2009 13:41:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754625AbZAISk7 (ORCPT ); Fri, 9 Jan 2009 13:40:59 -0500 Received: from one.firstfloor.org ([213.235.205.2]:54400 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754392AbZAISk6 (ORCPT ); Fri, 9 Jan 2009 13:40:58 -0500 Date: Fri, 9 Jan 2009 19:55:09 +0100 From: Andi Kleen To: Linus Torvalds Cc: Andi Kleen , Dirk Hohndel , Matthew Wilcox , "H. Peter Anvin" , Ingo Molnar , jim owens , Chris Mason , Peter Zijlstra , Steven Rostedt , paulmck@linux.vnet.ibm.com, Gregory Haskins , Andrew Morton , Linux Kernel Mailing List , linux-fsdevel , linux-btrfs , Thomas Gleixner , Nick Piggin , Peter Morreale , Sven Dietrich , jh@suse.cz Subject: Re: [patch] measurements, numbers about CONFIG_OPTIMIZE_INLINING=y impact Message-ID: <20090109185509.GJ26290@one.firstfloor.org> References: <49675920.4050205@hp.com> <20090109153508.GA4671@elte.hu> <49677CB1.3030701@zytor.com> <20090109084620.3c711aad@infradead.org> <20090109172011.GD26290@one.firstfloor.org> <20090109172801.GC6936@parisc-linux.org> <20090109174719.GG26290@one.firstfloor.org> <20090109094142.367012b6@infradead.org> <20090109180213.GH26290@one.firstfloor.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2004 Lines: 58 > But _users_ just get their oopses sent automatically. So it's not about If they send it from distro kernels the automated oops sender could just fetch the debuginfo rpm and decode it down to a line. My old automatic user segfault uploader I did originally for the core pipe code did that too. > "debugging kernels", it's about _normal_ kernels. They are the ones that > need to be debuggable, and the ones that care most about things like the > symbolic EIP being as helpful as possible. Ok you're saying we should pay the 4.1% by default for this? If you want that you can apply the appended patch. Not sure if it's really a good idea though. 4.1% is a lot. -Andi --- Disable inlining of functions called once by default This makes oopses easier to read because it's clearer in which function the problem is. Disadvantage: costs ~4.1% of text size (measured with allyesconfig on gcc 4.1 on x86-64) Signed-off-by: Andi Kleen --- Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) Index: linux-2.6.28-git12/Makefile =================================================================== --- linux-2.6.28-git12.orig/Makefile 2009-01-09 07:06:44.000000000 +0100 +++ linux-2.6.28-git12/Makefile 2009-01-09 07:16:21.000000000 +0100 @@ -546,10 +546,8 @@ KBUILD_CFLAGS += -pg endif -# We trigger additional mismatches with less inlining -ifdef CONFIG_DEBUG_SECTION_MISMATCH +# Disable too aggressive inlining because it makes oopses harder to read KBUILD_CFLAGS += $(call cc-option, -fno-inline-functions-called-once) -endif # arch Makefile may override CC so keep this after arch Makefile is included NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include) -- ak@linux.intel.com -- 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/