dump_stack_lvl() allows passing the log level down to the architecture specific code. Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxxxxx> Cc: "H. Peter Anvin" <hpa@xxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxxxx> Cc: Greg Thelen <gthelen@xxxxxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Cc: David Rientjes <rientjes@xxxxxxxxxx> Signed-off-by: Aristeu Rozanski <aris@xxxxxxxxxx> --- include/linux/printk.h | 1 + lib/dump_stack.c | 11 +++++++++++ 2 files changed, 12 insertions(+) --- linux-2.6.orig/lib/dump_stack.c 2015-11-05 10:56:52.529526114 -0500 +++ linux-2.6/lib/dump_stack.c 2015-11-05 13:16:15.057078858 -0500 @@ -55,6 +55,11 @@ was_locked = 0; preempt_enable(); } +asmlinkage __visible void dump_stack_lvl(char *log_lvl) +{ + _dump_stack(log_lvl); +} + asmlinkage __visible void dump_stack(void) { _dump_stack(KERN_DEFAULT); @@ -65,5 +70,11 @@ asmlinkage __visible void dump_stack(voi { __dump_stack(KERN_DEFAULT); } + +asmlinkage __visible void dump_stack_lvl(char *log_lvl) +{ + __dump_stack(log_lvl); +} #endif EXPORT_SYMBOL(dump_stack); +EXPORT_SYMBOL(dump_stack_lvl); --- linux-2.6.orig/include/linux/printk.h 2015-11-05 10:56:13.163970713 -0500 +++ linux-2.6/include/linux/printk.h 2015-11-05 13:16:15.057078858 -0500 @@ -231,6 +231,7 @@ static inline void show_regs_print_info( #endif extern asmlinkage void dump_stack(void) __cold; +extern asmlinkage void dump_stack_lvl(char *log_lvl); #ifndef pr_fmt #define pr_fmt(fmt) fmt -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>