]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: fix backtrace
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 15 Nov 2016 13:55:59 +0000 (13:55 +0000)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 15 Nov 2016 15:25:39 +0000 (15:25 +0000)
commitaa90694aa112a20f670db07805aa6e3ed018041c
treeaafbb0d392b4384411c0027773890cbd7ec77cb8
parent6d8ee42d416a91e04cfc42bdd65ac566f706c342
ARM: fix backtrace

Recent kernels have changed their behaviour to be more inconsistent
when handling printk continuations.  With todays kernels, the output
looks sane on the console, but dmesg splits individual printk()s which
do not have the KERN_CONT prefix into separate lines.

Since the assembly code is not trivial to add the KERN_CONT, and we
ideally want to avoid using KERN_CONT (as multiple printk()s can race
between different threads), convert the assembly dumping the register
values to C code, and have the C code build the output a line at a
time before dumping to the console.

This avoids the KERN_CONT issue, and also avoids situations where the
output is intermixed with other console activity.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/kernel/traps.c
arch/arm/lib/backtrace.S