blob: 5db7f4489f057e117e58102cfb437e9850fad27c [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Michal Simek2fd7c762009-11-16 09:40:14 +01002#ifndef _ASM_MICROBLAZE_FTRACE
3#define _ASM_MICROBLAZE_FTRACE
Michal Simek6c149fd2009-04-14 08:37:30 +02004
Michal Simek2fd7c762009-11-16 09:40:14 +01005#ifdef CONFIG_FUNCTION_TRACER
6
Minfei Huangc93bf922015-07-12 17:52:24 +08007#define MCOUNT_ADDR ((unsigned long)(_mcount))
Michal Simek2fd7c762009-11-16 09:40:14 +01008#define MCOUNT_INSN_SIZE 8 /* sizeof mcount call */
9
10#ifndef __ASSEMBLY__
11extern void _mcount(void);
12extern void ftrace_call_graph(void);
13#endif
14
Michal Simek7d241ff2009-12-10 14:15:44 +010015#ifdef CONFIG_DYNAMIC_FTRACE
16/* reloction of mcount call site is the same as the address */
17static inline unsigned long ftrace_call_adjust(unsigned long addr)
18{
19 return addr;
20}
21
22struct dyn_arch_ftrace {
23};
24#endif /* CONFIG_DYNAMIC_FTRACE */
25
Michal Simek2fd7c762009-11-16 09:40:14 +010026#endif /* CONFIG_FUNCTION_TRACER */
27#endif /* _ASM_MICROBLAZE_FTRACE */