This is in preparation for dump_stack_lvl() which will allow the log level to be passed. 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> --- lib/dump_stack.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) --- linux-2.6.orig/lib/dump_stack.c 2015-11-05 13:56:08.387048346 -0500 +++ linux-2.6/lib/dump_stack.c 2015-11-05 13:56:34.900748897 -0500 @@ -9,9 +9,9 @@ #include <linux/smp.h> #include <linux/atomic.h> -static void __dump_stack(void) +static void __dump_stack(char *log_lvl) { - dump_stack_print_info(KERN_DEFAULT); + dump_stack_print_info(log_lvl); show_stack(NULL, NULL); } @@ -23,7 +23,7 @@ static void __dump_stack(void) #ifdef CONFIG_SMP static atomic_t dump_lock = ATOMIC_INIT(-1); -asmlinkage __visible void dump_stack(void) +static void _dump_stack(char *log_lvl) { int was_locked; int old; @@ -47,17 +47,23 @@ was_locked = 0; goto retry; } - __dump_stack(); + __dump_stack(log_lvl); if (!was_locked) atomic_set(&dump_lock, -1); preempt_enable(); } + +asmlinkage __visible void dump_stack(void) +{ + _dump_stack(KERN_DEFAULT); +} + #else asmlinkage __visible void dump_stack(void) { - __dump_stack(); + __dump_stack(KERN_DEFAULT); } #endif EXPORT_SYMBOL(dump_stack); -- 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>