ftrace.h 764 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * arch/xtensa/include/asm/ftrace.h
  3. *
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. *
  8. * Copyright (C) 2013 Tensilica Inc.
  9. */
  10. #ifndef _XTENSA_FTRACE_H
  11. #define _XTENSA_FTRACE_H
  12. #include <asm/processor.h>
  13. #ifndef __ASSEMBLER__
  14. extern unsigned long return_address(unsigned level);
  15. #define ftrace_return_address(n) return_address(n)
  16. #endif /* __ASSEMBLER__ */
  17. #ifdef CONFIG_FUNCTION_TRACER
  18. #define MCOUNT_ADDR ((unsigned long)(_mcount))
  19. #define MCOUNT_INSN_SIZE 3
  20. #ifndef __ASSEMBLER__
  21. extern void _mcount(void);
  22. #define mcount _mcount
  23. #endif /* __ASSEMBLER__ */
  24. #endif /* CONFIG_FUNCTION_TRACER */
  25. #endif /* _XTENSA_FTRACE_H */