init.c 445 B

1234567891011121314151617181920212223242526
  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. }