public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
* [RESEND][PATCH]Ftrace - fix function_graph tracer OOPS
@ 2009-10-09 12:13 Sachin Sant
  0 siblings, 0 replies; only message in thread
From: Sachin Sant @ 2009-10-09 12:13 UTC (permalink / raw)
  To: Benjamin Herrenschmidt; +Cc: linuxppc-dev, rostedt

This time sending the patch as inline and not as an attachment.

Enabling function graph causes oops due to usage of LOAD_REG_IMMEDIATE().
As explained by Ben the usage of LOAD_REG_IMMEDIATE generates relocs that are
not supported when CONFIG_RELOCATABLE is set. 

Switch to LOAD_REG_ADDR().

Signed-off-by : Sachin Sant <sachinp@in•ibm.com>
---

diff -Naurp old/arch/powerpc/kernel/entry_64.S new/arch/powerpc/kernel/entry_64.S
--- old/arch/powerpc/kernel/entry_64.S	2009-10-08 18:37:44.000000000 +0530
+++ new/arch/powerpc/kernel/entry_64.S	2009-10-08 18:34:33.000000000 +0530
@@ -1038,8 +1038,8 @@ _GLOBAL(mod_return_to_handler)
 	 * We are in a module using the module's TOC.
 	 * Switch to our TOC to run inside the core kernel.
 	 */
-	LOAD_REG_IMMEDIATE(r4,ftrace_return_to_handler)
-	ld	r2, 8(r4)
+	ld	r2, PACATOC(r13)
+	LOAD_REG_ADDR(r4,ftrace_return_to_handler)
 
 	bl	.ftrace_return_to_handler
 	nop

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-10-09 12:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-09 12:13 [RESEND][PATCH]Ftrace - fix function_graph tracer OOPS Sachin Sant

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox