ftrace.h 602 B

1234567891011121314151617181920212223242526
  1. #ifndef _ASM_MICROBLAZE_FTRACE
  2. #define _ASM_MICROBLAZE_FTRACE
  3. #ifdef CONFIG_FUNCTION_TRACER
  4. #define MCOUNT_ADDR ((unsigned long)(_mcount))
  5. #define MCOUNT_INSN_SIZE 8 /* sizeof mcount call */
  6. #ifndef __ASSEMBLY__
  7. extern void _mcount(void);
  8. extern void ftrace_call_graph(void);
  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 /* CONFIG_FUNCTION_TRACER */
  20. #endif /* _ASM_MICROBLAZE_FTRACE */