Merge tag 'for-5.8/dm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device...
[linux/fpc-iii.git] / arch / parisc / include / asm / ftrace.h
bloba7cf0d05ccf467449759cb69d56a36d3c2a08b62
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_PARISC_FTRACE_H
3 #define _ASM_PARISC_FTRACE_H
5 #ifndef __ASSEMBLY__
6 extern void mcount(void);
8 #define MCOUNT_ADDR ((unsigned long)mcount)
9 #define MCOUNT_INSN_SIZE 4
10 #define CC_USING_NOP_MCOUNT
11 #define ARCH_SUPPORTS_FTRACE_OPS 1
12 extern unsigned long sys_call_table[];
14 extern unsigned long return_address(unsigned int);
16 #ifdef CONFIG_DYNAMIC_FTRACE
17 extern void ftrace_caller(void);
19 struct dyn_arch_ftrace {
22 unsigned long ftrace_call_adjust(unsigned long addr);
24 #endif
26 #define ftrace_return_address(n) return_address(n)
28 #endif /* __ASSEMBLY__ */
30 #endif /* _ASM_PARISC_FTRACE_H */