From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id 8157BB6F1E for ; Sun, 13 Sep 2009 23:21:04 +1000 (EST) Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com [71.74.56.123]) by ozlabs.org (Postfix) with ESMTP id D734EDDD04 for ; Sun, 13 Sep 2009 23:21:03 +1000 (EST) Subject: Re: [FTRACE] Enabling function_graph causes OOPS From: Steven Rostedt To: Benjamin Herrenschmidt In-Reply-To: <1252816650.8375.70.camel@pasglop> References: <4A5C5D65.3030906@in.ibm.com> <4A76BE81.4080707@in.ibm.com> <1252458303.20985.10.camel@gandalf.stny.rr.com> <4AA74AE2.5090001@in.ibm.com> <1252814877.26049.93.camel@gandalf.stny.rr.com> <1252816650.8375.70.camel@pasglop> Content-Type: text/plain Date: Sun, 13 Sep 2009 09:21:00 -0400 Message-Id: <1252848060.26049.647.camel@gandalf.stny.rr.com> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org Reply-To: rostedt@goodmis.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sun, 2009-09-13 at 14:37 +1000, Benjamin Herrenschmidt wrote: > On Sun, 2009-09-13 at 00:07 -0400, Steven Rostedt wrote: > > 982: R_PPC64_ADDR16_HIGHEST > > ftrace_return_to_handler > > 984: 60 84 00 00 ori r4,r4,0 > > 986: R_PPC64_ADDR16_HIGHER > > ftrace_return_to_handler > > 988: 78 84 07 c6 rldicr r4,r4,32,31 > > 98c: 64 84 00 00 oris r4,r4,0 > > 98e: R_PPC64_ADDR16_HI > > ftrace_return_to_handler > > 990: 60 84 00 00 ori r4,r4,0 > > 992: R_PPC64_ADDR16_LO > > ftrace_return_to_handler > > 994: e8 44 00 08 ld r2,8(r4) > > 998: 48 00 00 01 bl 998 <.mod_return_to_handler+0x30> > > 998: > > R_PPC64_REL24 .ftrace_return_to_handler > > 99c: 60 00 00 00 nop > > 9a0: 7c 68 03 a6 mtlr r3 > > .../... > > > Something is totally messed up here. > > Could it be that we don't handle R_PPC64_ADDR16_* relocs in > arch/powerpc/kernel/modules/module_64.c ? > > Sachin, do you see a bunch of "Unknown ADD relocation" in your dmesg ? Ben, The thing is, this is kernel proper. This code is in entry_64.S not in the module code. -- Steve