aboutsummaryrefslogtreecommitdiff
path: root/include/asm-powerpc/ftrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc/ftrace.h')
-rw-r--r--include/asm-powerpc/ftrace.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-powerpc/ftrace.h b/include/asm-powerpc/ftrace.h
index b1bfa704b6e..de921326cca 100644
--- a/include/asm-powerpc/ftrace.h
+++ b/include/asm-powerpc/ftrace.h
@@ -1,6 +1,14 @@
#ifndef _ASM_POWERPC_FTRACE
#define _ASM_POWERPC_FTRACE
+#ifdef CONFIG_FTRACE
+#define MCOUNT_ADDR ((long)(_mcount))
+#define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */
+
+#ifndef __ASSEMBLY__
extern void _mcount(void);
+#endif
#endif
+
+#endif /* _ASM_POWERPC_FTRACE */