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
syscalls
vsyscall
.gitignore
asm-offsets.c
crash_dump.c
debugtraps.S
disassemble.c
dma-coherent.c
dumpstack.c sh: add loglvl to show_trace() 2020-06-09 09:39:12 -07:00
dwarf.c
entry-common.S
ftrace.c
head_32.S
hw_breakpoint.c
idle.c
io.c
io_trapped.c
iomap.c
ioport.c
irq.c
irq_32.c
kdebugfs.c
kgdb.c
kprobes.c
machine_kexec.c
machvec.c
Makefile
module.c
nmi_debug.c
perf_callchain.c
perf_event.c
process.c
process_32.c sh: add loglvl to show_trace() 2020-06-09 09:39:12 -07:00
ptrace.c
ptrace_32.c
reboot.c
relocate_kernel.S
return_address.c
setup.c
sh_bios.c
sh_ksyms_32.c
signal_32.c
smp.c
stacktrace.c
swsusp.c
sys_sh.c
sys_sh32.c
syscalls_32.S
time.c
topology.c
traps.c
traps_32.c
unwinder.c
vmlinux.lds.S