diff options
author | Daniel Thompson <daniel.thompson@linaro.org> | 2014-11-06 10:32:13 -0500 |
---|---|---|
committer | Jason Wessel <jason.wessel@windriver.com> | 2015-02-19 13:39:02 -0500 |
commit | 5454388113938d9592d6a6d5424469014da4ee86 (patch) | |
tree | 0765c2a49d358edb97bd170f29dc90904e990b5b /kernel | |
parent | f7d4ca8bbfda23b4f1eae9b6757ff64166b093d5 (diff) |
kdb: Remove stack dump when entering kgdb due to NMI
Issuing a stack dump feels ergonomically wrong when entering due to NMI.
Entering due to NMI is normally a reaction to a user request, either the
NMI button on a server or a "magic knock" on a UART. Therefore the
backtrace behaviour on entry due to NMI should be like SysRq-g (no stack
dump) rather than like oops.
Note also that the stack dump does not offer any information that
cannot be trivial retrieved using the 'bt' command.
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/debug/kdb/kdb_main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/debug/kdb/kdb_main.c b/kernel/debug/kdb/kdb_main.c index 60f6bb817f70..0a22f455060a 100644 --- a/kernel/debug/kdb/kdb_main.c +++ b/kernel/debug/kdb/kdb_main.c | |||
@@ -1247,7 +1247,6 @@ static int kdb_local(kdb_reason_t reason, int error, struct pt_regs *regs, | |||
1247 | kdb_printf("due to NonMaskable Interrupt @ " | 1247 | kdb_printf("due to NonMaskable Interrupt @ " |
1248 | kdb_machreg_fmt "\n", | 1248 | kdb_machreg_fmt "\n", |
1249 | instruction_pointer(regs)); | 1249 | instruction_pointer(regs)); |
1250 | kdb_dumpregs(regs); | ||
1251 | break; | 1250 | break; |
1252 | case KDB_REASON_SSTEP: | 1251 | case KDB_REASON_SSTEP: |
1253 | case KDB_REASON_BREAK: | 1252 | case KDB_REASON_BREAK: |