ftrace.h 629 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ASM_CSKY_FTRACE_H
  3. #define __ASM_CSKY_FTRACE_H
  4. #define MCOUNT_INSN_SIZE 14
  5. #define HAVE_FUNCTION_GRAPH_FP_TEST
  6. #define ARCH_SUPPORTS_FTRACE_OPS 1
  7. #define MCOUNT_ADDR ((unsigned long)_mcount)
  8. #ifndef __ASSEMBLY__
  9. extern void _mcount(unsigned long);
  10. extern void ftrace_graph_call(void);
  11. static inline unsigned long ftrace_call_adjust(unsigned long addr)
  12. {
  13. return addr;
  14. }
  15. struct dyn_arch_ftrace {
  16. };
  17. void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr,
  18. unsigned long frame_pointer);
  19. #endif /* !__ASSEMBLY__ */
  20. #endif /* __ASM_CSKY_FTRACE_H */