5f8ebcf9fa614a930ae04c51ab625ef49b4a46c0
[deliverable/linux.git] / arch / mips / include / asm / ftrace.h
1 /*
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
4 * more details.
5 *
6 * Copyright (C) 2009 DSLab, Lanzhou University, China
7 * Author: Wu Zhangjin <wuzj@lemote.com>
8 */
9
10 #ifndef _ASM_MIPS_FTRACE_H
11 #define _ASM_MIPS_FTRACE_H
12
13 #ifdef CONFIG_FUNCTION_TRACER
14
15 #define MCOUNT_ADDR ((unsigned long)(_mcount))
16 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */
17
18 #ifndef __ASSEMBLY__
19 extern void _mcount(void);
20 #define mcount _mcount
21
22 #endif /* __ASSEMBLY__ */
23 #endif /* CONFIG_FUNCTION_TRACER */
24 #endif /* _ASM_MIPS_FTRACE_H */
This page took 0.029875 seconds and 4 git commands to generate.