Merge tag 'trace-v5.15-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt...
[linux-2.6-microblaze.git] / include / linux / kdebug.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_KDEBUG_H
3 #define _LINUX_KDEBUG_H
4
5 #include <asm/kdebug.h>
6
7 struct notifier_block;
8
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 */