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