]> git.baikalelectronics.ru Git - kernel.git/commit
stack usage: add pid to warning printk in check_stack_usage
authorTim Bird <tim.bird@am.sony.com>
Thu, 31 May 2012 23:26:16 +0000 (16:26 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 1 Jun 2012 00:49:28 +0000 (17:49 -0700)
commitf7ab4e49c637f89ad06802b3723be402a1aacdb9
tree6fb95d3080fadd96ea37b0e8c1bd747a183f8f60
parent3ec1844b8d13428381634bbee570b2c920286af7
stack usage: add pid to warning printk in check_stack_usage

In embedded systems, sometimes the same program (busybox) is the cause of
multiple warnings.  Outputting the pid with the program name in the
warning printk helps distinguish which instances of a program are using
the stack most.

This is a small patch, but useful.

Signed-off-by: Tim Bird <tim.bird@am.sony.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/exit.c