]> git.karo-electronics.de Git - karo-tx-linux.git/commit
stack usage: add pid to warning printk in check_stack_usage
authorTim Bird <tim.bird@am.sony.com>
Thu, 3 May 2012 05:44:38 +0000 (15:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:46:54 +0000 (15:46 +1000)
commitaad427b7b4e9834afbc7eb2b995b8edde3c14e8f
treef7a5eda22ef95572595068f72331ca306239cbad
parent01e93d0c8ba09decb8f05404dfe63d2fa7487cd3
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>
kernel/exit.c