diff options
author | Oleg Nesterov <[email protected]> | 2013-08-01 18:59:41 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2013-08-02 11:02:42 +0200 |
commit | 41e85ce8220c6e5fdef706fda6696cd291115b63 (patch) | |
tree | 73ed47c499f36d3f846abbb1868e0e1fe4b7b2bc /lib/memory-notifier-error-inject.c | |
parent | 2b4883972271f8d61de67aa365ade89dfff69db1 (diff) |
hung_task debugging: Print more info when reporting the problem
printk(KERN_ERR) from check_hung_task() likely means we have a bug,
but unlike BUG_ON()/WARN_ON ()it doesn't show the kernel version,
this complicates the bug-reports investigation.
Add the additional pr_err() to print tainted/release/version
like dump_stack_print_info() does, the output becomes:
INFO: task perl:504 blocked for more than 2 seconds.
Not tainted 3.11.0-rc1-10367-g136bb46-dirty #1763
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
...
While at it, turn the old printk's into pr_err().
Signed-off-by: Oleg Nesterov <[email protected]>
Cc: [email protected]
Cc: Christopher Williams <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: Mandeep Singh Baines <[email protected]>
Cc: [email protected]
Cc: Linus Torvalds <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions