Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753746AbbB0Oac (ORCPT ); Fri, 27 Feb 2015 09:30:32 -0500 Received: from bombadil.infradead.org ([198.137.202.9]:56086 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752158AbbB0Oaa (ORCPT ); Fri, 27 Feb 2015 09:30:30 -0500 Date: Fri, 27 Feb 2015 15:30:08 +0100 From: Peter Zijlstra To: Rusty Russell Cc: Andi Kleen , Andi Kleen , x86@kernel.org, linux-kernel@vger.kernel.org, mathieu.desnoyers@efficios.com, oleg@redhat.com, paulmck@linux.vnet.ibm.com, mingo@kernel.org Subject: Re: [RFC][PATCH] module: Optimize __module_address() using a latched RB-tree Message-ID: <20150227143008.GQ5029@twins.programming.kicks-ass.net> References: <1424482737-958-1-git-send-email-andi@firstfloor.org> <20150223170436.GC5029@twins.programming.kicks-ass.net> <20150223174340.GD27767@tassilo.jf.intel.com> <20150226114309.GR21418@twins.programming.kicks-ass.net> <87k2z3lfz4.fsf@rustcorp.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87k2z3lfz4.fsf@rustcorp.com.au> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1170 Lines: 26 On Fri, Feb 27, 2015 at 10:32:39PM +1030, Rusty Russell wrote: > Peter Zijlstra writes: > > One of the users of this is __kernel_text_address() which is employed in > > many stack unwinders; which in turn are used by perf-callchain (possibly > > from NMI context). > > Um, so the stack unwinders use "does this look like a kernel address" > because we omit the frame pointer? Not only because of that I think; also as a general robustness check. I'm not sure people want their stack unwinder to go off into the woods. > To keep that optimization, we add 220 non-trivial lines to module.c? Can I make you feel better by writing more comments? I'm not sure we can convince the arch people to take this test out. Its all over the place. > Don't get me wrong, it's cute code, but I do wonder if at some point a > grown up is going to come along and tell us to stop :) Now where's the fun in that ;-) -- 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/