linux/arch
Dmitry Safonov 1ad87824f4 um: 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: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Richard Weinberger <richard@nod.at>
Link: http://lkml.kernel.org/r/20200418201944.482088-37-dima@arista.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-06-09 09:39:12 -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 m68k: add show_stack_loglvl() 2020-06-09 09:39:11 -07:00
microblaze microblaze: add show_stack_loglvl() 2020-06-09 09:39:11 -07:00
mips mips: add show_stack_loglvl() 2020-06-09 09:39:11 -07:00
nds32 nds32: add show_stack_loglvl() 2020-06-09 09:39:11 -07:00
nios2 nios2: add show_stack_loglvl() 2020-06-09 09:39:11 -07:00
openrisc openrisc: add show_stack_loglvl() 2020-06-09 09:39:11 -07:00
parisc parisc: add show_stack_loglvl() 2020-06-09 09:39:11 -07:00
powerpc powerpc: add show_stack_loglvl() 2020-06-09 09:39:11 -07:00
riscv riscv: add show_stack_loglvl() 2020-06-09 09:39:11 -07:00
s390 s390: add show_stack_loglvl() 2020-06-09 09:39:11 -07:00
sh sh: add show_stack_loglvl() 2020-06-09 09:39:12 -07:00
sparc sparc: add show_stack_loglvl() 2020-06-09 09:39:12 -07:00
um um: add show_stack_loglvl() 2020-06-09 09:39:12 -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 scs: Remove references to asm/scs.h from core code 2020-05-18 17:47:45 +01:00