Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris...
[linux/fpc-iii.git] / arch / tile / include / asm / ftrace.h
blob13a9bb81a8ab4754ff93da4c8f17da8a134ce4ec
1 /*
2 * Copyright 2010 Tilera Corporation. All Rights Reserved.
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation, version 2.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
11 * NON INFRINGEMENT. See the GNU General Public License for
12 * more details.
15 #ifndef _ASM_TILE_FTRACE_H
16 #define _ASM_TILE_FTRACE_H
18 #ifdef CONFIG_FUNCTION_TRACER
20 #define MCOUNT_ADDR ((unsigned long)(__mcount))
21 #define MCOUNT_INSN_SIZE 8 /* sizeof mcount call */
23 #ifndef __ASSEMBLY__
24 extern void __mcount(void);
26 #ifdef CONFIG_DYNAMIC_FTRACE
27 static inline unsigned long ftrace_call_adjust(unsigned long addr)
29 return addr;
32 struct dyn_arch_ftrace {
34 #endif /* CONFIG_DYNAMIC_FTRACE */
36 #endif /* __ASSEMBLY__ */
38 #endif /* CONFIG_FUNCTION_TRACER */
40 #endif /* _ASM_TILE_FTRACE_H */