1 #ifndef _ASM_X86_FTRACE_H
2 #define _ASM_X86_FTRACE_H
6 .macro MCOUNT_SAVE_FRAME
18 .macro MCOUNT_RESTORE_FRAME
31 #ifdef CONFIG_FUNCTION_TRACER
32 #define MCOUNT_ADDR ((long)(mcount))
33 #define MCOUNT_INSN_SIZE 5 /* sizeof mcount call */
36 extern void mcount(void);
37 extern atomic_t modifying_ftrace_code;
39 static inline unsigned long ftrace_call_adjust(unsigned long addr)
42 * addr is the address of the mcount call instruction.
43 * recordmcount does the necessary offset calculation.
48 #ifdef CONFIG_DYNAMIC_FTRACE
50 struct dyn_arch_ftrace {
51 /* No extra data needed for x86 */
54 int ftrace_int3_handler(struct pt_regs *regs);
56 #endif /* CONFIG_DYNAMIC_FTRACE */
57 #endif /* __ASSEMBLY__ */
58 #endif /* CONFIG_FUNCTION_TRACER */
60 #endif /* _ASM_X86_FTRACE_H */