blob: fae72b0b1374dfc279dea8ca23f2eee1611105a3 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0 */
2// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
3
4#ifndef __ASM_CSKY_FTRACE_H
5#define __ASM_CSKY_FTRACE_H
6
7#define MCOUNT_INSN_SIZE 14
8
9#define HAVE_FUNCTION_GRAPH_FP_TEST
10
11#define HAVE_FUNCTION_GRAPH_RET_ADDR_PTR
12
Olivier Deprez157378f2022-04-04 15:47:50 +020013#define ARCH_SUPPORTS_FTRACE_OPS 1
14
David Brazdil0f672f62019-12-10 10:32:29 +000015#define MCOUNT_ADDR ((unsigned long)_mcount)
16
17#ifndef __ASSEMBLY__
18
19extern void _mcount(unsigned long);
20
21extern void ftrace_graph_call(void);
22
23static inline unsigned long ftrace_call_adjust(unsigned long addr)
24{
25 return addr;
26}
27
28struct dyn_arch_ftrace {
29};
30#endif /* !__ASSEMBLY__ */
31#endif /* __ASM_CSKY_FTRACE_H */