summaryrefslogtreecommitdiff
path: root/arch/sparc/include/asm/ftrace.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-06-13 12:03:24 +0400
committerDavid S. Miller <davem@davemloft.net>2009-06-16 15:56:53 +0400
commit9be12f9b1c4fd5f18cc82c170a32bfe1713ba76d (patch)
treed59b601e655160be8caaeb3ba755b0ad50199cc0 /arch/sparc/include/asm/ftrace.h
parent949e82744b31b555dd6dba40758e05338f305233 (diff)
downloadlinux-9be12f9b1c4fd5f18cc82c170a32bfe1713ba76d.tar.xz
sparc64: Add proper dynamic ftrace support.
Signed-off-by: David S. Miller <davem@davemloft.net> Acked-by: Steven Rostedt <rostedt@goodmis.org> Acked-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/sparc/include/asm/ftrace.h')
-rw-r--r--arch/sparc/include/asm/ftrace.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/ftrace.h b/arch/sparc/include/asm/ftrace.h
index d27716cd38c1..b0f18e9893db 100644
--- a/arch/sparc/include/asm/ftrace.h
+++ b/arch/sparc/include/asm/ftrace.h
@@ -11,4 +11,15 @@ extern void _mcount(void);
#endif
+#ifdef CONFIG_DYNAMIC_FTRACE
+/* reloction of mcount call site is the same as the address */
+static inline unsigned long ftrace_call_adjust(unsigned long addr)
+{
+ return addr;
+}
+
+struct dyn_arch_ftrace {
+};
+#endif /* CONFIG_DYNAMIC_FTRACE */
+
#endif /* _ASM_SPARC64_FTRACE */