blob: 7094a40b96d8cea1184cf617894f67bee9a9e1f6 [file] [log] [blame]
Wu Zhangjind2bb07622009-11-20 20:34:29 +08001/*
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__
19extern void _mcount(void);
20#define mcount _mcount
21
Wu Zhangjin538f1952009-11-20 20:34:32 +080022#ifdef CONFIG_DYNAMIC_FTRACE
23static inline unsigned long ftrace_call_adjust(unsigned long addr)
24{
25 return addr;
26}
27
28struct dyn_arch_ftrace {
29};
30#endif /* CONFIG_DYNAMIC_FTRACE */
Wu Zhangjind2bb07622009-11-20 20:34:29 +080031#endif /* __ASSEMBLY__ */
32#endif /* CONFIG_FUNCTION_TRACER */
33#endif /* _ASM_MIPS_FTRACE_H */