ftrace.h 409 字节
Newer Older
1 2 3 4
#ifndef _ASM_S390_FTRACE_H
#define _ASM_S390_FTRACE_H

#ifndef __ASSEMBLY__
5

6
extern void _mcount(void);
7 8 9 10 11

struct dyn_arch_ftrace { };

#define MCOUNT_ADDR ((long)_mcount)

12

13 14
static inline unsigned long ftrace_call_adjust(unsigned long addr)
{
15
	return addr;
16 17 18
}

#endif /* __ASSEMBLY__ */
19 20 21 22 23 24 25

#ifdef CONFIG_64BIT
#define MCOUNT_INSN_SIZE  12
#else
#define MCOUNT_INSN_SIZE  22
#endif

26
#endif /* _ASM_S390_FTRACE_H */