ftrace.h 510 B

12345678910111213141516171819202122232425
  1. #ifndef _ASM_SPARC64_FTRACE
  2. #define _ASM_SPARC64_FTRACE
  3. #ifdef CONFIG_MCOUNT
  4. #define MCOUNT_ADDR ((long)(_mcount))
  5. #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */
  6. #ifndef __ASSEMBLY__
  7. extern 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. #endif /* _ASM_SPARC64_FTRACE */