aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/sh/include/asm/ftrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/include/asm/ftrace.h')
-rw-r--r--arch/sh/include/asm/ftrace.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/arch/sh/include/asm/ftrace.h b/arch/sh/include/asm/ftrace.h
index b1c1dc0cc261..d35781ab716e 100644
--- a/arch/sh/include/asm/ftrace.h
+++ b/arch/sh/include/asm/ftrace.h
@@ -7,7 +7,7 @@
#define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */
#define FTRACE_SYSCALL_MAX NR_syscalls
-#ifndef __ASSEMBLY__
+#ifndef __ASSEMBLER__
extern void mcount(void);
#define MCOUNT_ADDR ((unsigned long)(mcount))
@@ -33,16 +33,26 @@ static inline unsigned long ftrace_call_adjust(unsigned long addr)
return addr;
}
-#endif /* __ASSEMBLY__ */
+void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr);
+
+#endif /* __ASSEMBLER__ */
#endif /* CONFIG_FUNCTION_TRACER */
-#ifndef __ASSEMBLY__
+#ifndef __ASSEMBLER__
/* arch/sh/kernel/return_address.c */
extern void *return_address(unsigned int);
#define ftrace_return_address(n) return_address(n)
-#endif /* __ASSEMBLY__ */
+#ifdef CONFIG_DYNAMIC_FTRACE
+extern void arch_ftrace_nmi_enter(void);
+extern void arch_ftrace_nmi_exit(void);
+#else
+static inline void arch_ftrace_nmi_enter(void) { }
+static inline void arch_ftrace_nmi_exit(void) { }
+#endif
+
+#endif /* __ASSEMBLER__ */
#endif /* __ASM_SH_FTRACE_H */