Wu Zhangjin | d2bb0762 | 2009-11-20 20:34:29 +0800 | [diff] [blame] | 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 | |
Wu Zhangjin | 538f195 | 2009-11-20 20:34:32 +0800 | [diff] [blame] | 22 | #ifdef CONFIG_DYNAMIC_FTRACE |
| 23 | static inline unsigned long ftrace_call_adjust(unsigned long addr) |
| 24 | { |
| 25 | return addr; |
| 26 | } |
| 27 | |
| 28 | struct dyn_arch_ftrace { |
| 29 | }; |
| 30 | #endif /* CONFIG_DYNAMIC_FTRACE */ |
Wu Zhangjin | d2bb0762 | 2009-11-20 20:34:29 +0800 | [diff] [blame] | 31 | #endif /* __ASSEMBLY__ */ |
| 32 | #endif /* CONFIG_FUNCTION_TRACER */ |
| 33 | #endif /* _ASM_MIPS_FTRACE_H */ |