ftrace.h 572 B

1234567891011121314151617181920212223242526
  1. #ifndef _ASM_POWERPC_FTRACE
  2. #define _ASM_POWERPC_FTRACE
  3. #ifdef CONFIG_FUNCTION_TRACER
  4. #define MCOUNT_ADDR ((long)(_mcount))
  5. #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */
  6. #ifndef __ASSEMBLY__
  7. extern void _mcount(void);
  8. #ifdef CONFIG_DYNAMIC_FTRACE
  9. static inline unsigned long ftrace_call_adjust(unsigned long addr)
  10. {
  11. /* reloction of mcount call site is the same as the address */
  12. return addr;
  13. }
  14. struct dyn_arch_ftrace {
  15. struct module *mod;
  16. };
  17. #endif /* CONFIG_DYNAMIC_FTRACE */
  18. #endif /* __ASSEMBLY__ */
  19. #endif
  20. #endif /* _ASM_POWERPC_FTRACE */