ftrace.h 761 B

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