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