ftrace.h 801 B

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_SPARC64_FTRACE
  3. #define _ASM_SPARC64_FTRACE
  4. #ifdef CONFIG_MCOUNT
  5. #define MCOUNT_ADDR ((unsigned long)(_mcount))
  6. #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */
  7. #ifndef __ASSEMBLY__
  8. void _mcount(void);
  9. #endif
  10. #endif /* CONFIG_MCOUNT */
  11. #if defined(CONFIG_SPARC64) && !defined(CC_USE_FENTRY)
  12. #define HAVE_FUNCTION_GRAPH_FP_TEST
  13. #endif
  14. #ifdef CONFIG_DYNAMIC_FTRACE
  15. /* relocation of mcount call site is the same as the address */
  16. static inline unsigned long ftrace_call_adjust(unsigned long addr)
  17. {
  18. return addr;
  19. }
  20. struct dyn_arch_ftrace {
  21. };
  22. #endif /* CONFIG_DYNAMIC_FTRACE */
  23. unsigned long prepare_ftrace_return(unsigned long parent,
  24. unsigned long self_addr,
  25. unsigned long frame_pointer);
  26. #endif /* _ASM_SPARC64_FTRACE */