blob: fd311565fabfbf1a8fc752bb1c4d6b2d4f8b9f7c [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Christoph Hellwig1eeb66a2007-05-08 00:27:03 -07002#ifndef _LINUX_KDEBUG_H
3#define _LINUX_KDEBUG_H
4
5#include <asm/kdebug.h>
6
Andrew Mortonfe9844d2007-07-31 00:38:45 -07007struct notifier_block;
8
Christoph Hellwig1eeb66a2007-05-08 00:27:03 -07009struct die_args {
10 struct pt_regs *regs;
11 const char *str;
12 long err;
13 int trapnr;
14 int signr;
15};
16
17int register_die_notifier(struct notifier_block *nb);
18int unregister_die_notifier(struct notifier_block *nb);
19
20int 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 */