ftrace.h 641 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_PARISC_FTRACE_H
  3. #define _ASM_PARISC_FTRACE_H
  4. #ifndef __ASSEMBLY__
  5. extern void mcount(void);
  6. #define MCOUNT_ADDR ((unsigned long)mcount)
  7. #define MCOUNT_INSN_SIZE 4
  8. #define CC_USING_NOP_MCOUNT
  9. #define ARCH_SUPPORTS_FTRACE_OPS 1
  10. extern unsigned long sys_call_table[];
  11. extern unsigned long return_address(unsigned int);
  12. #ifdef CONFIG_DYNAMIC_FTRACE
  13. extern void ftrace_caller(void);
  14. struct dyn_arch_ftrace {
  15. };
  16. unsigned long ftrace_call_adjust(unsigned long addr);
  17. #endif
  18. #define ftrace_return_address(n) return_address(n)
  19. #endif /* __ASSEMBLY__ */
  20. #endif /* _ASM_PARISC_FTRACE_H */