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