diff options
Diffstat (limited to 'patches/boot_time_opt/0124-print-CPU-that-faults.patch')
-rw-r--r-- | patches/boot_time_opt/0124-print-CPU-that-faults.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/patches/boot_time_opt/0124-print-CPU-that-faults.patch b/patches/boot_time_opt/0124-print-CPU-that-faults.patch new file mode 100644 index 0000000..0bbe9c1 --- /dev/null +++ b/patches/boot_time_opt/0124-print-CPU-that-faults.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
2 | From: Arjan van de Ven <arjan@linux.intel.com> | ||
3 | Date: Sat, 10 Aug 2019 03:19:04 +0000 | ||
4 | Subject: [PATCH] print CPU that faults | ||
5 | |||
6 | print cpu number when we print a crash | ||
7 | --- | ||
8 | arch/x86/mm/fault.c | 4 ++-- | ||
9 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
10 | |||
11 | diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c | ||
12 | index 9c1545c376e9..b55a36614dad 100644 | ||
13 | --- a/arch/x86/mm/fault.c | ||
14 | +++ b/arch/x86/mm/fault.c | ||
15 | @@ -770,9 +770,9 @@ show_signal_msg(struct pt_regs *regs, unsigned long error_code, | ||
16 | if (!printk_ratelimit()) | ||
17 | return; | ||
18 | |||
19 | - printk("%s%s[%d]: segfault at %lx ip %px sp %px error %lx", | ||
20 | + printk("%s%s[%d]: segfault at %lx ip %px sp %px error %lx cpu %i", | ||
21 | loglvl, tsk->comm, task_pid_nr(tsk), address, | ||
22 | - (void *)regs->ip, (void *)regs->sp, error_code); | ||
23 | + (void *)regs->ip, (void *)regs->sp, error_code, raw_smp_processor_id()); | ||
24 | |||
25 | print_vma_addr(KERN_CONT " in ", regs->ip); | ||
26 | |||
27 | -- | ||
28 | https://clearlinux.org | ||
29 | |||