2016-11-02 01:16:55 +01:00
|
|
|
# pstack - print stack trace of running processes
|
2011-08-18 17:18:01 +02:00
|
|
|
|
|
|
|
pstack dumps a stack trace for a process, given the pid of that
|
|
|
|
process. If the process named is part of a thread group, then all the threads
|
|
|
|
inthe group are traced. See the man page for more information.
|
|
|
|
|
|
|
|
This program was inspired by the 'pstack' program available on Solaris.
|
|
|
|
|
2016-11-02 01:16:55 +01:00
|
|
|
## Supported Platforms
|
|
|
|
|
|
|
|
This program runs on 32 bit x86 machines, using ELF binaries
|
2011-08-18 17:18:01 +02:00
|
|
|
generated from GNU compilers. If threads are being used, it depends
|
|
|
|
on a debuggable version of the pthreads library to find the threads in
|
|
|
|
the thread group. If anyone wants to port this to other
|
|
|
|
architectures, please let me know about questions you may have, or
|
|
|
|
achievements you have made. I'd like to incorporate such changes into
|
|
|
|
my version of the code.
|
|
|
|
|
2016-11-02 01:16:55 +01:00
|
|
|
## Features
|
2011-08-18 17:18:01 +02:00
|
|
|
|
2016-11-02 01:16:55 +01:00
|
|
|
* symbolic address dumping
|
|
|
|
* thread group support
|
2011-08-18 17:18:01 +02:00
|
|
|
|
2016-11-02 01:16:55 +01:00
|
|
|
## Build, install, uninstall
|
2011-08-18 17:18:01 +02:00
|
|
|
|
2016-11-02 01:16:55 +01:00
|
|
|
make
|
|
|
|
make install
|
|
|
|
make uninstall
|
2011-08-18 17:18:01 +02:00
|
|
|
|
2016-11-02 01:16:55 +01:00
|
|
|
**Note:** you must be root to [un]install. pstack will run fine from any
|
2011-08-18 17:18:01 +02:00
|
|
|
directory, install just puts the binary and man page in 'normal'
|
2016-11-02 01:16:55 +01:00
|
|
|
places (`/usr/local/...`)
|
2011-08-18 17:18:01 +02:00
|
|
|
|
|
|
|
USAGE:
|
|
|
|
pstack pid [...]
|
|
|
|
|
|
|
|
See the man page for more details.
|