Skip to content

Commit

Permalink
[PATCH] dump_stack() in oom handler
Browse files Browse the repository at this point in the history
Sometimes it's nice to know who's calling.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Feb 1, 2006
1 parent 343e0d7 commit b958f7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mm/oom_kill.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit b958f7d

Please sign in to comment.