30 lines
976 B
Diff
30 lines
976 B
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: Arjan van de Ven <arjan@linux.intel.com>
|
||
|
Date: Sat, 10 Aug 2019 03:19:04 +0000
|
||
|
Subject: [PATCH] print CPU that faults
|
||
|
|
||
|
print cpu number when we print a crash
|
||
|
---
|
||
|
arch/x86/mm/fault.c | 4 ++--
|
||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c
|
||
|
index 9ceacd1156db..5ffc44b5decb 100644
|
||
|
--- a/arch/x86/mm/fault.c
|
||
|
+++ b/arch/x86/mm/fault.c
|
||
|
@@ -842,9 +842,9 @@ show_signal_msg(struct pt_regs *regs, unsigned long error_code,
|
||
|
if (!printk_ratelimit())
|
||
|
return;
|
||
|
|
||
|
- printk("%s%s[%d]: segfault at %lx ip %px sp %px error %lx",
|
||
|
+ printk("%s%s[%d]: segfault at %lx ip %px sp %px error %lx cpu %i",
|
||
|
loglvl, tsk->comm, task_pid_nr(tsk), address,
|
||
|
- (void *)regs->ip, (void *)regs->sp, error_code);
|
||
|
+ (void *)regs->ip, (void *)regs->sp, error_code, raw_smp_processor_id());
|
||
|
|
||
|
print_vma_addr(KERN_CONT " in ", regs->ip);
|
||
|
|
||
|
--
|
||
|
https://clearlinux.org
|
||
|
|