Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _ASM_SPARC64_FTRACE
0003 #define _ASM_SPARC64_FTRACE
0004 
0005 #ifdef CONFIG_MCOUNT
0006 #define MCOUNT_ADDR     ((unsigned long)(_mcount))
0007 #define MCOUNT_INSN_SIZE    4 /* sizeof mcount call */
0008 
0009 #ifndef __ASSEMBLY__
0010 void _mcount(void);
0011 #endif
0012 
0013 #endif /* CONFIG_MCOUNT */
0014 
0015 #if defined(CONFIG_SPARC64) && !defined(CC_USE_FENTRY)
0016 #define HAVE_FUNCTION_GRAPH_FP_TEST
0017 #endif
0018 
0019 #ifdef CONFIG_DYNAMIC_FTRACE
0020 /* relocation of mcount call site is the same as the address */
0021 static inline unsigned long ftrace_call_adjust(unsigned long addr)
0022 {
0023     return addr;
0024 }
0025 
0026 struct dyn_arch_ftrace {
0027 };
0028 #endif /*  CONFIG_DYNAMIC_FTRACE */
0029 
0030 unsigned long prepare_ftrace_return(unsigned long parent,
0031                     unsigned long self_addr,
0032                     unsigned long frame_pointer);
0033 
0034 #endif /* _ASM_SPARC64_FTRACE */