linux/arch/sh/kernel
Dmitry Safonov 539e786cc3 sh: add loglvl to show_trace()
Currently, the log-level of show_stack() depends on a platform
realization.  It creates situations where the headers are printed with
lower log level or higher than the stacktrace (depending on a platform or
user).

Furthermore, it forces the logic decision from user to an architecture
side.  In result, some users as sysrq/kdb/etc are doing tricks with
temporary rising console_loglevel while printing their messages.  And in
result it not only may print unwanted messages from other CPUs, but also
omit printing at all in the unlucky case where the printk() was deferred.

Introducing log-level parameter and KERN_UNSUPPRESSED [1] seems an easier
approach than introducing more printk buffers.  Also, it will consolidate
printings with headers.

Add log level parameter to show_trace() as a preparation to introduce
show_stack_loglvl().

[1]: https://lore.kernel.org/lkml/20190528002412.1625-1-dima@arista.com/T/#u

Signed-off-by: Dmitry Safonov <dima@arista.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Rich Felker <dalias@libc.org>
Link: http://lkml.kernel.org/r/20200418201944.482088-33-dima@arista.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-06-09 09:39:12 -07:00
..
cpu Fix for arch/sh build regression with newer binutils, removal of SH5, 2020-06-06 15:22:01 -07:00
syscalls vfs: add faccessat2 syscall 2020-05-14 16:44:25 +02:00
vsyscall .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
asm-offsets.c
crash_dump.c
debugtraps.S
disassemble.c
dma-coherent.c remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
dumpstack.c sh: add loglvl to show_trace() 2020-06-09 09:39:12 -07:00
dwarf.c
entry-common.S sched/rt, sh: Use CONFIG_PREEMPTION 2019-12-08 14:37:35 +01:00
ftrace.c
head_32.S
hw_breakpoint.c
idle.c
io.c
io_trapped.c sh: add support for folded p4d page tables 2020-06-04 19:06:21 -07:00
iomap.c
ioport.c
irq.c
irq_32.c
kdebugfs.c
kgdb.c sh: kgdb: Mark expected switch fall-throughs 2019-12-10 16:11:42 -06:00
kprobes.c
machine_kexec.c
machvec.c
Makefile sh: remove sh5 support 2020-06-01 14:48:52 -04:00
module.c sh: remove sh5 support 2020-06-01 14:48:52 -04:00
nmi_debug.c
perf_callchain.c
perf_event.c
process.c sh: remove sh5 support 2020-06-01 14:48:52 -04:00
process_32.c sh: add loglvl to show_trace() 2020-06-09 09:39:12 -07:00
ptrace.c
ptrace_32.c
reboot.c sh: remove sh5 support 2020-06-01 14:48:52 -04:00
relocate_kernel.S
return_address.c
setup.c arch/sh/setup: Drop dummy_con initialization 2020-01-14 15:29:18 +01:00
sh_bios.c
sh_ksyms_32.c sh: Add missing DECLARE_EXPORT() for __ashiftrt_r4_xx 2020-06-01 14:48:49 -04:00
signal_32.c
smp.c
stacktrace.c
swsusp.c
sys_sh.c
sys_sh32.c
syscalls_32.S
time.c
topology.c
traps.c sh: add loglvl to dump_mem() 2020-06-09 09:39:12 -07:00
traps_32.c
unwinder.c
vmlinux.lds.S sh: remove sh5 support 2020-06-01 14:48:52 -04:00