diff options
author | Ken Chen <kenchen@google.com> | 2008-11-06 16:30:23 -0800 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-07 09:24:27 +0100 |
commit | 078e9901c02d4899db5b24f708b8dfbca8935891 (patch) | |
tree | 7fbd79180b4487ab88ef03d15135095867ce2d7e /Documentation | |
parent | 4bab0ea1d42dd1927af9df6fbf0003fc00617c50 (diff) |
stacktrace: add /proc/<pid>/stack to dump task's stack trace
Impact: add the new (root-only) /proc/<pid>/stack debug facility
This patch adds the ability to query a task's current stack trace via
/proc/<pid>/stack.
It is considered to be more useful than /proc/pid/wchan as it provides
full stack trace instead of single depth.
It is also more useful than sysrq-t because it does not overflow the
dmesg like sysrq-t often does, can be read in a finegrained per-task
way and can be read programmatically as well.
It works on sleeping and running tasks as well.
Also, move up PROC_BLOCK_SIZE a bit so that proc_pid_stack() can use it.
[ mingo@elte.hu: small cleanups, comments ]
Signed-off-by: Ken Chen <kenchen@google.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/filesystems/proc.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt index bcceb99b81dd..11f5b75f620b 100644 --- a/Documentation/filesystems/proc.txt +++ b/Documentation/filesystems/proc.txt @@ -139,6 +139,7 @@ Table 1-1: Process specific entries in /proc statm Process memory status information status Process status in human readable form wchan If CONFIG_KALLSYMS is set, a pre-decoded wchan + stack Report full stack trace, enable via CONFIG_STACKTRACE smaps Extension based on maps, the rss size for each mapped file .............................................................................. |