Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757669Ab1FGSNA (ORCPT ); Tue, 7 Jun 2011 14:13:00 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.122]:34804 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754481Ab1FGSM7 (ORCPT ); Tue, 7 Jun 2011 14:12:59 -0400 X-Authority-Analysis: v=1.1 cv=rr9DlE2fnT1UeYFJeFag6ks/js+bHNfqVlaSByoS2d4= c=1 sm=0 a=z-YF9ztHd7oA:10 a=5SG0PmZfjMsA:10 a=Q9fys5e9bTEA:10 a=OPBmh+XkhLl+Enan7BmTLg==:17 a=AKTDAVoVk6W6lcZpQfgA:9 a=PUjeQqilurYA:10 a=OPBmh+XkhLl+Enan7BmTLg==:117 X-Cloudmark-Score: 0 X-Originating-IP: 67.242.120.143 Subject: Re: [PATCH 2/3] kprobes/trace: Fix kprobe selftest for gcc 4.6 From: Steven Rostedt To: David Daney Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Andrew Morton , Frederic Weisbecker , Masami Hiramatsu In-Reply-To: <4DEE6903.9010501@gmail.com> References: <20110607170740.235441001@goodmis.org> <20110607170827.295368694@goodmis.org> <4DEE6903.9010501@gmail.com> Content-Type: text/plain; charset="ISO-8859-15" Date: Tue, 07 Jun 2011 14:12:57 -0400 Message-ID: <1307470377.9218.3.camel@gandalf.stny.rr.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 776 Lines: 24 On Tue, 2011-06-07 at 11:08 -0700, David Daney wrote: > > -static int kprobe_trace_selftest_target(int a1, int a2, int a3, > > - int a4, int a5, int a6) > > +/* > > + * Can't be static, otherwise gcc might optimize this to > > + * not be in the kallsyms table. > > + */ > > Could you make it '__used' instead? > I can try, but the problem is not that the function itself is being optimized out. It looks like its being turned into anonymous text. That is, it optimized out the symbol name, not the code itself. -- Steve -- 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/