ftrace.h 617 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef _ASM_PARISC_FTRACE_H
  2. #define _ASM_PARISC_FTRACE_H
  3. #ifndef __ASSEMBLY__
  4. extern void mcount(void);
  5. /*
  6. * Stack of return addresses for functions of a thread.
  7. * Used in struct thread_info
  8. */
  9. struct ftrace_ret_stack {
  10. unsigned long ret;
  11. unsigned long func;
  12. unsigned long long calltime;
  13. };
  14. /*
  15. * Primary handler of a function return.
  16. * It relays on ftrace_return_to_handler.
  17. * Defined in entry.S
  18. */
  19. extern void return_to_handler(void);
  20. extern unsigned long return_address(unsigned int);
  21. #define ftrace_return_address(n) return_address(n)
  22. #endif /* __ASSEMBLY__ */
  23. #endif /* _ASM_PARISC_FTRACE_H */