2008-12-25 20:38:56 +08:00
|
|
|
#ifndef _ASM_S390_FTRACE_H
|
|
|
|
#define _ASM_S390_FTRACE_H
|
|
|
|
|
|
|
|
#ifndef __ASSEMBLY__
|
2009-06-12 16:26:44 +08:00
|
|
|
|
2008-12-25 20:38:56 +08:00
|
|
|
extern void _mcount(void);
|
2014-08-15 18:33:46 +08:00
|
|
|
extern char ftrace_graph_caller_end;
|
2009-06-12 16:26:44 +08:00
|
|
|
|
|
|
|
struct dyn_arch_ftrace { };
|
|
|
|
|
|
|
|
#define MCOUNT_ADDR ((long)_mcount)
|
|
|
|
|
2008-12-25 20:38:56 +08:00
|
|
|
|
2009-06-12 16:26:44 +08:00
|
|
|
static inline unsigned long ftrace_call_adjust(unsigned long addr)
|
|
|
|
{
|
2011-05-10 16:10:43 +08:00
|
|
|
return addr;
|
2009-06-12 16:26:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* __ASSEMBLY__ */
|
2013-05-13 20:48:52 +08:00
|
|
|
|
2014-09-03 19:26:23 +08:00
|
|
|
#define MCOUNT_INSN_SIZE 18
|
2013-05-13 20:48:52 +08:00
|
|
|
|
2014-08-15 19:01:46 +08:00
|
|
|
#define ARCH_SUPPORTS_FTRACE_OPS 1
|
|
|
|
|
2008-12-25 20:38:56 +08:00
|
|
|
#endif /* _ASM_S390_FTRACE_H */
|