blob: b7931faaef6d76add44dd3bcb5c461cec5237a94 [file] [log] [blame]
Heiko Carstens5d360a72008-12-25 13:38:56 +01001#ifndef _ASM_S390_FTRACE_H
2#define _ASM_S390_FTRACE_H
3
4#ifndef __ASSEMBLY__
Heiko Carstensdfd9f7a2009-06-12 10:26:44 +02005
Heiko Carstens5d360a72008-12-25 13:38:56 +01006extern void _mcount(void);
Heiko Carstensdfd9f7a2009-06-12 10:26:44 +02007
8struct dyn_arch_ftrace { };
9
10#define MCOUNT_ADDR ((long)_mcount)
11
12#ifdef CONFIG_64BIT
Martin Schwidefsky4cc9bed2011-01-05 12:48:11 +010013#define MCOUNT_INSN_SIZE 12
Martin Schwidefsky4cc9bed2011-01-05 12:48:11 +010014#else
15#define MCOUNT_INSN_SIZE 20
Heiko Carstens5d360a72008-12-25 13:38:56 +010016#endif
17
Heiko Carstensdfd9f7a2009-06-12 10:26:44 +020018static inline unsigned long ftrace_call_adjust(unsigned long addr)
19{
Martin Schwidefskyf2963882011-05-10 10:10:43 +020020 return addr;
Heiko Carstensdfd9f7a2009-06-12 10:26:44 +020021}
22
23#endif /* __ASSEMBLY__ */
Heiko Carstens5d360a72008-12-25 13:38:56 +010024#endif /* _ASM_S390_FTRACE_H */