Chris Metcalf | 867e359 | 2010-05-28 23:09:12 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2010 Tilera Corporation. All Rights Reserved. |
| 3 | * |
| 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. |
| 7 | * |
| 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. |
| 13 | */ |
| 14 | |
| 15 | #ifndef _ASM_TILE_FTRACE_H |
| 16 | #define _ASM_TILE_FTRACE_H |
| 17 | |
Tony Lu | a61fd5e | 2013-08-09 13:26:09 -0400 | [diff] [blame] | 18 | #ifdef CONFIG_FUNCTION_TRACER |
| 19 | |
| 20 | #define MCOUNT_ADDR ((unsigned long)(__mcount)) |
| 21 | #define MCOUNT_INSN_SIZE 8 /* sizeof mcount call */ |
| 22 | |
| 23 | #ifndef __ASSEMBLY__ |
| 24 | extern void __mcount(void); |
| 25 | |
Tony Lu | 437d3e1 | 2015-03-27 14:46:38 -0400 | [diff] [blame] | 26 | #define ARCH_SUPPORTS_FTRACE_OPS 1 |
| 27 | |
Tony Lu | a61fd5e | 2013-08-09 13:26:09 -0400 | [diff] [blame] | 28 | #ifdef CONFIG_DYNAMIC_FTRACE |
| 29 | static inline unsigned long ftrace_call_adjust(unsigned long addr) |
| 30 | { |
| 31 | return addr; |
| 32 | } |
| 33 | |
| 34 | struct dyn_arch_ftrace { |
| 35 | }; |
| 36 | #endif /* CONFIG_DYNAMIC_FTRACE */ |
| 37 | |
| 38 | #endif /* __ASSEMBLY__ */ |
| 39 | |
| 40 | #endif /* CONFIG_FUNCTION_TRACER */ |
Chris Metcalf | 867e359 | 2010-05-28 23:09:12 -0400 | [diff] [blame] | 41 | |
| 42 | #endif /* _ASM_TILE_FTRACE_H */ |