From 0d51ff8b45b8175bbbee904ffc8aeae019072be8 Mon Sep 17 00:00:00 2001 From: Trilok Soni Date: Tue, 20 Sep 2016 14:55:35 -0700 Subject: [PATCH] arm64: process: Reduce the no. of bytes of data around registers As a part of __show_regs we print the 512 bytes of data around key registers like SP, PC and LR. This data is not always useful and can cause issue while we have more cores in the system and need to print them per core during the stack traces triggered through WARN(..) like APIs. It can also cause latency issues due to heavy printing on the serial console. Reduce the logging to 128 bytes (nbytes * 2) around these registers from 512 bytes. Change-Id: Ie19fececd9d2bc6cd3328a6c63c956bcc9eed9a6 Signed-off-by: Trilok Soni --- arch/arm64/kernel/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c index 129fb3f8c322..7c4563cbccf3 100644 --- a/arch/arm64/kernel/process.c +++ b/arch/arm64/kernel/process.c @@ -259,7 +259,7 @@ void __show_regs(struct pt_regs *regs) printk("\n"); } if (!user_mode(regs)) - show_extra_register_data(regs, 256); + show_extra_register_data(regs, 64); printk("\n"); }