WSL2-Linux-Kernel/arch
Dmitry Safonov a4502d04c7 arm: 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: Russell King <linux@armlinux.org.uk>
Cc: Will Deacon <will@kernel.org>
Link: http://lkml.kernel.org/r/20200418201944.482088-9-dima@arista.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-06-09 09:39:10 -07:00
..
alpha alpha: add show_stack_loglvl() 2020-06-09 09:39:10 -07:00
arc arc: add show_stack_loglvl() 2020-06-09 09:39:10 -07:00
arm arm: add show_stack_loglvl() 2020-06-09 09:39:10 -07:00
arm64 IOMMU Updates for Linux v5.8 2020-06-08 11:42:23 -07:00
c6x c6x: use asm-generic/cacheflush.h 2020-06-08 11:05:57 -07:00
csky kmap: consolidate kmap_prot definitions 2020-06-04 19:06:22 -07:00
h8300 Kbuild updates for v5.8 2020-06-06 12:00:25 -07:00
hexagon hexagon: use asm-generic/cacheflush.h 2020-06-08 11:05:57 -07:00
ia64 mm: rename flush_icache_user_range to flush_icache_user_page 2020-06-08 11:05:58 -07:00
m68k module: move the set_fs hack for flush_icache_range to m68k 2020-06-08 11:05:58 -07:00
microblaze kallsyms/printk: add loglvl to print_ip_sym() 2020-06-09 09:39:10 -07:00
mips kallsyms/printk: add loglvl to print_ip_sym() 2020-06-09 09:39:10 -07:00
nds32 kallsyms/printk: add loglvl to print_ip_sym() 2020-06-09 09:39:10 -07:00
nios2 nios2: add support for folded p4d page tables 2020-06-04 19:06:21 -07:00
openrisc mm: rename flush_icache_user_range to flush_icache_user_page 2020-06-08 11:05:58 -07:00
parisc Kbuild updates for v5.8 2020-06-06 12:00:25 -07:00
powerpc mm: rename flush_icache_user_range to flush_icache_user_page 2020-06-08 11:05:58 -07:00
riscv kallsyms/printk: add loglvl to print_ip_sym() 2020-06-09 09:39:10 -07:00
s390 s390 updates for the 5.8 merge window 2020-06-08 12:05:31 -07:00
sh sh: implement flush_icache_user_range 2020-06-08 11:05:58 -07:00
sparc Merge branch 'akpm' (patches from Andrew) 2020-06-08 11:11:38 -07:00
um asm-generic: don't include <linux/mm.h> in cacheflush.h 2020-06-08 11:05:57 -07:00
unicore32 arm,sparc,unicore32: remove flush_icache_user_range 2020-06-08 11:05:57 -07:00
x86 asm-generic: don't include <linux/mm.h> in cacheflush.h 2020-06-08 11:05:57 -07:00
xtensa xtensa: implement flush_icache_user_range 2020-06-08 11:05:58 -07:00
.gitignore
Kconfig