init.c 445 B

123456789101112131415161718192021222324252627
  1. /**
  2. * @file init.c
  3. *
  4. * @remark Copyright 2008 Tensilica Inc.
  5. * @remark Read the file COPYING
  6. *
  7. */
  8. #include <linux/kernel.h>
  9. #include <linux/oprofile.h>
  10. #include <linux/errno.h>
  11. #include <linux/init.h>
  12. extern void xtensa_backtrace(struct pt_regs *const regs, unsigned int depth);
  13. int __init oprofile_arch_init(struct oprofile_operations *ops)
  14. {
  15. ops->backtrace = xtensa_backtrace;
  16. return -ENODEV;
  17. }
  18. void oprofile_arch_exit(void)
  19. {
  20. }