]> 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>
Wed, 25 Apr 2012 01:04:42 +0000 (11:04 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 30 Apr 2012 05:17:38 +0000 (15:17 +1000)
commit587209da955c42966ffe9ab45fe5852343dd9b26
tree5391832c7fb64a754032e9b47927ac06154b7843
parente77b226b84e5d62f5c0eb3095dc9da8746a68697
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