kdebug.h 734 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef _S390_KDEBUG_H
  2. #define _S390_KDEBUG_H
  3. /*
  4. * Feb 2006 Ported to s390 <grundym@us.ibm.com>
  5. */
  6. #include <linux/notifier.h>
  7. struct pt_regs;
  8. /*
  9. * These are only here because kprobes.c wants them to implement a
  10. * blatant layering violation. Will hopefully go away soon once all
  11. * architectures are updated.
  12. */
  13. static inline int register_page_fault_notifier(struct notifier_block *nb)
  14. {
  15. return 0;
  16. }
  17. static inline int unregister_page_fault_notifier(struct notifier_block *nb)
  18. {
  19. return 0;
  20. }
  21. enum die_val {
  22. DIE_OOPS = 1,
  23. DIE_BPT,
  24. DIE_SSTEP,
  25. DIE_PANIC,
  26. DIE_NMI,
  27. DIE_DIE,
  28. DIE_NMIWATCHDOG,
  29. DIE_KERNELDEBUG,
  30. DIE_TRAP,
  31. DIE_GPF,
  32. DIE_CALL,
  33. DIE_NMI_IPI,
  34. };
  35. extern void die(const char *, struct pt_regs *, long);
  36. #endif