WSL2-Linux-Kernel/arch
Dmitry Safonov ffdac29e40 ia64: 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: Fenghua Yu <fenghua.yu@intel.com>
Cc: Tony Luck <tony.luck@intel.com>
Link: http://lkml.kernel.org/r/20200418201944.482088-17-dima@arista.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-06-09 09:39:11 -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 arm64: add show_stack_loglvl() 2020-06-09 09:39:11 -07:00
c6x c6x: add show_stack_loglvl() 2020-06-09 09:39:11 -07:00
csky csky: add show_stack_loglvl() 2020-06-09 09:39:11 -07:00
h8300 h8300: add show_stack_loglvl() 2020-06-09 09:39:11 -07:00
hexagon hexagon: add show_stack_loglvl() 2020-06-09 09:39:11 -07:00
ia64 ia64: add show_stack_loglvl() 2020-06-09 09:39:11 -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 .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Kconfig scs: Remove references to asm/scs.h from core code 2020-05-18 17:47:45 +01:00