2008-12-25 15:38:56 +03:00
|
|
|
#ifndef _ASM_S390_FTRACE_H
|
|
|
|
#define _ASM_S390_FTRACE_H
|
|
|
|
|
|
|
|
#ifndef __ASSEMBLY__
|
2009-06-12 12:26:44 +04:00
|
|
|
|
2008-12-25 15:38:56 +03:00
|
|
|
extern void _mcount(void);
|
2009-06-12 12:26:44 +04:00
|
|
|
|
|
|
|
struct dyn_arch_ftrace { };
|
|
|
|
|
|
|
|
#define MCOUNT_ADDR ((long)_mcount)
|
|
|
|
|
|
|
|
#ifdef CONFIG_64BIT
|
2011-01-05 14:48:11 +03:00
|
|
|
#define MCOUNT_INSN_SIZE 12
|
|
|
|
#else
|
|
|
|
#define MCOUNT_INSN_SIZE 20
|
2008-12-25 15:38:56 +03:00
|
|
|
#endif
|
|
|
|
|
2009-06-12 12:26:44 +04:00
|
|
|
static inline unsigned long ftrace_call_adjust(unsigned long addr)
|
|
|
|
{
|
2011-05-10 12:10:43 +04:00
|
|
|
return addr;
|
2009-06-12 12:26:44 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* __ASSEMBLY__ */
|
2008-12-25 15:38:56 +03:00
|
|
|
#endif /* _ASM_S390_FTRACE_H */
|