ftrace.h 642 B

1234567891011121314151617181920212223242526272829
  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
  10. #ifdef CONFIG_DYNAMIC_FTRACE
  11. /* reloction of mcount call site is the same as the address */
  12. static inline unsigned long ftrace_call_adjust(unsigned long addr)
  13. {
  14. return addr;
  15. }
  16. struct dyn_arch_ftrace {
  17. };
  18. #endif /* CONFIG_DYNAMIC_FTRACE */
  19. unsigned long prepare_ftrace_return(unsigned long parent,
  20. unsigned long self_addr,
  21. unsigned long frame_pointer);
  22. #endif /* _ASM_SPARC64_FTRACE */