From: Andrew Morton Date: Wed, 1 Feb 2006 11:05:51 +0000 (-0800) Subject: [PATCH] dump_stack() in oom handler X-Git-Tag: v2.6.16-rc2~88 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b958f7d9f35bfb61625f201cd92a3fc39504af7a;p=linux-2.6-omap-h63xx.git [PATCH] dump_stack() in oom handler Sometimes it's nice to know who's calling. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 14bd4ec7959..b05ab8f2a56 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -271,6 +271,7 @@ void out_of_memory(gfp_t gfp_mask, int order) if (printk_ratelimit()) { printk("oom-killer: gfp_mask=0x%x, order=%d\n", gfp_mask, order); + dump_stack(); show_mem(); }