Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752999AbbB0MLU (ORCPT ); Fri, 27 Feb 2015 07:11:20 -0500 Received: from ozlabs.org ([103.22.144.67]:34255 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752069AbbB0MLS (ORCPT ); Fri, 27 Feb 2015 07:11:18 -0500 From: Rusty Russell To: Peter Zijlstra , Andi Kleen Cc: 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 In-Reply-To: <20150226114309.GR21418@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> User-Agent: Notmuch/0.17 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu) Date: Fri, 27 Feb 2015 22:32:39 +1030 Message-ID: <87k2z3lfz4.fsf@rustcorp.com.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 781 Lines: 20 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? To keep that optimization, we add 220 non-trivial lines to module.c? 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 :) Cheers, Rusty. -- 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/