xref: /openbmc/linux/arch/s390/include/asm/ftrace.h (revision 62e7ca52)
1 #ifndef _ASM_S390_FTRACE_H
2 #define _ASM_S390_FTRACE_H
3 
4 #ifndef __ASSEMBLY__
5 
6 extern void _mcount(void);
7 
8 struct dyn_arch_ftrace { };
9 
10 #define MCOUNT_ADDR ((long)_mcount)
11 
12 
13 static inline unsigned long ftrace_call_adjust(unsigned long addr)
14 {
15 	return addr;
16 }
17 
18 #endif /* __ASSEMBLY__ */
19 
20 #ifdef CONFIG_64BIT
21 #define MCOUNT_INSN_SIZE  12
22 #else
23 #define MCOUNT_INSN_SIZE  22
24 #endif
25 
26 #endif /* _ASM_S390_FTRACE_H */
27