2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive for
6 * Copyright (C) 2009 DSLab, Lanzhou University, China
7 * Author: Wu Zhangjin <wuzj@lemote.com>
10 #ifndef _ASM_MIPS_FTRACE_H
11 #define _ASM_MIPS_FTRACE_H
13 #ifdef CONFIG_FUNCTION_TRACER
15 #define MCOUNT_ADDR ((unsigned long)(_mcount))
16 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */
19 extern void _mcount(void);
20 #define mcount _mcount
22 #ifdef CONFIG_DYNAMIC_FTRACE
23 static inline unsigned long ftrace_call_adjust(unsigned long addr)
28 struct dyn_arch_ftrace {
30 #endif /* CONFIG_DYNAMIC_FTRACE */
31 #endif /* __ASSEMBLY__ */
32 #endif /* CONFIG_FUNCTION_TRACER */
33 #endif /* _ASM_MIPS_FTRACE_H */