ftrace.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright 2010 Tilera Corporation. All Rights Reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation, version 2.
  7. *
  8. * This program is distributed in the hope that it will be useful, but
  9. * WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
  11. * NON INFRINGEMENT. See the GNU General Public License for
  12. * more details.
  13. */
  14. #ifndef _ASM_TILE_FTRACE_H
  15. #define _ASM_TILE_FTRACE_H
  16. #ifdef CONFIG_FUNCTION_TRACER
  17. #define MCOUNT_ADDR ((unsigned long)(__mcount))
  18. #define MCOUNT_INSN_SIZE 8 /* sizeof mcount call */
  19. #ifndef __ASSEMBLY__
  20. extern void __mcount(void);
  21. #define ARCH_SUPPORTS_FTRACE_OPS 1
  22. #ifdef CONFIG_DYNAMIC_FTRACE
  23. static inline unsigned long ftrace_call_adjust(unsigned long addr)
  24. {
  25. return addr;
  26. }
  27. struct dyn_arch_ftrace {
  28. };
  29. #endif /* CONFIG_DYNAMIC_FTRACE */
  30. #endif /* __ASSEMBLY__ */
  31. #endif /* CONFIG_FUNCTION_TRACER */
  32. #endif /* _ASM_TILE_FTRACE_H */