| #ifndef _ASM_X86_FTRACE_H |
| #define _ASM_X86_FTRACE_H |
| .macro MCOUNT_RESTORE_FRAME |
| #ifdef CONFIG_FUNCTION_TRACER |
| #define MCOUNT_ADDR ((long)(mcount)) |
| #define MCOUNT_INSN_SIZE 5 /* sizeof mcount call */ |
| extern void mcount(void); |
| static inline unsigned long ftrace_call_adjust(unsigned long addr) |
| * addr is the address of the mcount call instruction. |
| * recordmcount does the necessary offset calculation. |
| #ifdef CONFIG_DYNAMIC_FTRACE |
| /* No extra data needed for x86 */ |
| #endif /* CONFIG_DYNAMIC_FTRACE */ |
| #endif /* __ASSEMBLY__ */ |
| #endif /* CONFIG_FUNCTION_TRACER */ |
| #endif /* _ASM_X86_FTRACE_H */ |