2018-12-09 01:29:59 -05:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
|
|
|
|
|
|
|
|
#ifndef __ASM_CSKY_FTRACE_H
|
|
|
|
#define __ASM_CSKY_FTRACE_H
|
|
|
|
|
2019-02-28 19:50:36 -05:00
|
|
|
#define MCOUNT_INSN_SIZE 14
|
2018-12-15 08:04:27 -05:00
|
|
|
|
|
|
|
#define HAVE_FUNCTION_GRAPH_FP_TEST
|
|
|
|
|
|
|
|
#define HAVE_FUNCTION_GRAPH_RET_ADDR_PTR
|
2018-12-09 01:29:59 -05:00
|
|
|
|
2019-02-28 19:50:36 -05:00
|
|
|
#define MCOUNT_ADDR ((unsigned long)_mcount)
|
|
|
|
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
|
|
|
|
extern void _mcount(unsigned long);
|
|
|
|
|
|
|
|
extern void ftrace_graph_call(void);
|
|
|
|
|
|
|
|
static inline unsigned long ftrace_call_adjust(unsigned long addr)
|
|
|
|
{
|
|
|
|
return addr;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct dyn_arch_ftrace {
|
|
|
|
};
|
|
|
|
#endif /* !__ASSEMBLY__ */
|
2018-12-09 01:29:59 -05:00
|
|
|
#endif /* __ASM_CSKY_FTRACE_H */
|