2009-11-20 20:34:29 +08:00
|
|
|
/*
|
|
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
|
|
* License. See the file "COPYING" in the main directory of this archive for
|
|
|
|
* more details.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2009 DSLab, Lanzhou University, China
|
|
|
|
* Author: Wu Zhangjin <wuzj@lemote.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ASM_MIPS_FTRACE_H
|
|
|
|
#define _ASM_MIPS_FTRACE_H
|
|
|
|
|
|
|
|
#ifdef CONFIG_FUNCTION_TRACER
|
|
|
|
|
|
|
|
#define MCOUNT_ADDR ((unsigned long)(_mcount))
|
|
|
|
#define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */
|
|
|
|
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
extern void _mcount(void);
|
|
|
|
#define mcount _mcount
|
|
|
|
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
#endif /* CONFIG_FUNCTION_TRACER */
|
|
|
|
#endif /* _ASM_MIPS_FTRACE_H */
|