Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Christoph Hellwig | 1eeb66a | 2007-05-08 00:27:03 -0700 | [diff] [blame] | 2 | #ifndef _LINUX_KDEBUG_H |
| 3 | #define _LINUX_KDEBUG_H |
| 4 | |
| 5 | #include <asm/kdebug.h> |
| 6 | |
Andrew Morton | fe9844d | 2007-07-31 00:38:45 -0700 | [diff] [blame] | 7 | struct notifier_block; |
| 8 | |
Christoph Hellwig | 1eeb66a | 2007-05-08 00:27:03 -0700 | [diff] [blame] | 9 | struct die_args { |
| 10 | struct pt_regs *regs; |
| 11 | const char *str; |
| 12 | long err; |
| 13 | int trapnr; |
| 14 | int signr; |
| 15 | }; |
| 16 | |
| 17 | int register_die_notifier(struct notifier_block *nb); |
| 18 | int unregister_die_notifier(struct notifier_block *nb); |
| 19 | |
| 20 | int notify_die(enum die_val val, const char *str, |
| 21 | struct pt_regs *regs, long err, int trap, int sig); |
| 22 | |
| 23 | #endif /* _LINUX_KDEBUG_H */ |