WSL2-Linux-Kernel/arch/h8300/kernel
Dmitry Safonov 0b2ad0c7ae h8300: add show_stack_loglvl()
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.

Introduce show_stack_loglvl(), that eventually will substitute
show_stack().

[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: Yoshinori Sato <ysato@users.sourceforge.jp>
Link: http://lkml.kernel.org/r/20200418201944.482088-14-dima@arista.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-06-09 09:39:11 -07:00
..
.gitignore h8300: ignore vmlinux.lds 2020-04-23 16:41:26 +09:00
Makefile h8300: use dma-direct 2018-01-15 09:35:17 +01:00
asm-offsets.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
entry.S sched/rt, h8300: Use CONFIG_PREEMPTION 2019-12-08 14:37:33 +01:00
h8300_ksyms.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
head_ram.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
head_rom.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
irq.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
kgdb.c kgdb/treewide: constify struct kgdb_arch arch_kgdb_ops 2018-12-30 08:33:06 +00:00
module.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
process.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ptrace.c h8300/ptrace: Fix incorrect register transfer count 2017-03-29 08:54:17 -07:00
ptrace_h.c signal: Remove task parameter from force_sig 2019-05-27 09:36:28 -05:00
ptrace_s.c signal: Remove task parameter from force_sig 2019-05-27 09:36:28 -05:00
setup.c clk: Remove io.h from clk-provider.h 2019-05-15 13:21:37 -07:00
signal.c signal: Remove task parameter from force_sig 2019-05-27 09:36:28 -05:00
sim-console.c h8300: gcc-8.1 fix 2018-08-22 19:14:18 +09:00
syscalls.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
traps.c h8300: add show_stack_loglvl() 2020-06-09 09:39:11 -07:00
vmlinux.lds.S h8300: Move EXCEPTION_TABLE to RO_DATA segment 2019-11-04 18:12:55 +01:00