Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934111Ab3CHNRk (ORCPT ); Fri, 8 Mar 2013 08:17:40 -0500 Received: from seldrel01.sonyericsson.com ([212.209.106.2]:3151 "EHLO seldrel01.sonyericsson.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932987Ab3CHNRi (ORCPT ); Fri, 8 Mar 2013 08:17:38 -0500 From: Date: Fri, 8 Mar 2013 14:17:35 +0100 To: Ananth N Mavinakayanahalli CC: Masami Hiramatsu , "linux-kernel@vger.kernel.org" , "davem@davemloft.net" , "anil.s.keshavamurthy@intel.com" , "Lekanovic, Radovan" , "??? @thinktux.in.ibm.com" <=?utf-8?B?77+9IDxiam9ybi5kYXZpZHNzb25Ac29ueW1vYmlsZS5jb20+?=@thinktux.in.ibm.com> Subject: Re: [PATCH] Kprobes blacklist: Conditionally add x86-specific symbols Message-ID: <20130308131735.GJ26148@caracas.corpusers.net> References: <1362653070-24035-1-git-send-email-oskar.andero@sonymobile.com> <513967BD.9010602@hitachi.com> <20130308060341.GB4029@in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20130308060341.GB4029@in.ibm.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1176 Lines: 29 On 07:03 Fri 08 Mar , Ananth N Mavinakayanahalli wrote: > On Fri, Mar 08, 2013 at 01:23:25PM +0900, Masami Hiramatsu wrote: > > (2013/03/07 19:44), oskar.andero@sonymobile.com wrote: > > > From: Bjorn Davidsson > > > > > > The kprobes blacklist contains x86-specific symbols. > > > Looking for these in kallsyms takes unnecessary time > > > during startup on non-X86 platform. > > > Added #ifdef CONFIG_X86 around them. > > > > Right. however, it might be better break that into > > common and arch-specific lists, because there may be > > other arch-specific non-probe-able functions on each > > architecture... > > Agreed. CONFIG_ in kernel/* is not the right thing to do IMO. > > You are moving the blacklist initialization to later in the next patch, > so how much overhead will it then be? Well, it's not crucial for the boot time, but it is still a small optimization. -Oskar -- 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/