init.c 700 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * arch/s390/oprofile/init.c
  3. *
  4. * S390 Version
  5. * Copyright (C) 2003 IBM Deutschland Entwicklung GmbH, IBM Corporation
  6. * Author(s): Thomas Spatzier (tspat@de.ibm.com)
  7. *
  8. * @remark Copyright 2002 OProfile authors
  9. */
  10. #include <linux/oprofile.h>
  11. #include <linux/init.h>
  12. #include <linux/errno.h>
  13. extern int oprofile_hwsampler_init(struct oprofile_operations* ops);
  14. extern void oprofile_hwsampler_exit(void);
  15. extern void s390_backtrace(struct pt_regs * const regs, unsigned int depth);
  16. int __init oprofile_arch_init(struct oprofile_operations* ops)
  17. {
  18. ops->backtrace = s390_backtrace;
  19. return oprofile_hwsampler_init(ops);
  20. }
  21. void oprofile_arch_exit(void)
  22. {
  23. oprofile_hwsampler_exit();
  24. }