blob: a7cf0d05ccf467449759cb69d56a36d3c2a08b62 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_PARISC_FTRACE_H
3#define _ASM_PARISC_FTRACE_H
4
5#ifndef __ASSEMBLY__
6extern void mcount(void);
7
David Brazdil0f672f62019-12-10 10:32:29 +00008#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
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000012extern unsigned long sys_call_table[];
13
14extern unsigned long return_address(unsigned int);
15
David Brazdil0f672f62019-12-10 10:32:29 +000016#ifdef CONFIG_DYNAMIC_FTRACE
17extern void ftrace_caller(void);
18
19struct dyn_arch_ftrace {
20};
21
22unsigned long ftrace_call_adjust(unsigned long addr);
23
24#endif
25
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000026#define ftrace_return_address(n) return_address(n)
27
28#endif /* __ASSEMBLY__ */
29
30#endif /* _ASM_PARISC_FTRACE_H */