ftrace.h 718 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_MICROBLAZE_FTRACE
  3. #define _ASM_MICROBLAZE_FTRACE
  4. #ifdef CONFIG_FUNCTION_TRACER
  5. #define MCOUNT_ADDR ((unsigned long)(_mcount))
  6. #define MCOUNT_INSN_SIZE 8 /* sizeof mcount call */
  7. #ifndef __ASSEMBLY__
  8. extern void _mcount(void);
  9. extern void ftrace_call_graph(void);
  10. void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr);
  11. #endif
  12. #ifdef CONFIG_DYNAMIC_FTRACE
  13. /* relocation of mcount call site is the same as the address */
  14. static inline unsigned long ftrace_call_adjust(unsigned long addr)
  15. {
  16. return addr;
  17. }
  18. struct dyn_arch_ftrace {
  19. };
  20. #endif /* CONFIG_DYNAMIC_FTRACE */
  21. #endif /* CONFIG_FUNCTION_TRACER */
  22. #endif /* _ASM_MICROBLAZE_FTRACE */