From: Nick Piggin Date: Tue, 26 Sep 2006 06:31:32 +0000 (-0700) Subject: [PATCH] oom: more printk X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b72f160443cb78b2f8addae6e331d2adaa70f869;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [PATCH] oom: more printk Print the name of the task invoking the OOM killer. Could make debugging easier. Signed-off-by: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 12cd4735dc2..c5e38400058 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -381,8 +381,9 @@ void out_of_memory(struct zonelist *zonelist, gfp_t gfp_mask, int order) return; if (printk_ratelimit()) { - printk("oom-killer: gfp_mask=0x%x, order=%d\n", - gfp_mask, order); + printk(KERN_WARNING "%s invoked oom-killer: " + "gfp_mask=0x%x, order=%d, oomkilladj=%d\n", + current->comm, gfp_mask, order, current->oomkilladj); dump_stack(); show_mem(); }