Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / arch / microblaze / include / asm / ftrace.h
blob4ca38b92a3a20992165bb1069e6217aa520b6c2c
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_MICROBLAZE_FTRACE
3 #define _ASM_MICROBLAZE_FTRACE
5 #ifdef CONFIG_FUNCTION_TRACER
7 #define MCOUNT_ADDR ((unsigned long)(_mcount))
8 #define MCOUNT_INSN_SIZE 8 /* sizeof mcount call */
10 #ifndef __ASSEMBLY__
11 extern void _mcount(void);
12 extern void ftrace_call_graph(void);
13 void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr);
14 #endif
16 #ifdef CONFIG_DYNAMIC_FTRACE
17 /* relocation of mcount call site is the same as the address */
18 static inline unsigned long ftrace_call_adjust(unsigned long addr)
20 return addr;
23 struct dyn_arch_ftrace {
25 #endif /* CONFIG_DYNAMIC_FTRACE */
27 #endif /* CONFIG_FUNCTION_TRACER */
28 #endif /* _ASM_MICROBLAZE_FTRACE */