[Techtalk] how to get current IP of processes via "ps" command?

Nguyen Nguyen ndnguyen3 at comcast.net
Wed Apr 27 07:33:33 EST 2005


Hello,
 
With kernel 2.6.10 how do I get the EIP of a running process via the "ps"
command?  In kernel 2.4.x  I was able to do
 
ps -C commandname -o pid,eip,esp
 
and get the expected results.  With 2.6.10 I always get 0xFFFFE410 for EIP.
It doesn't matter which process.  In fact if the below command is executed,
the returned EIPs are all the same 0xFFFFE410.
 
ps -e  -o eip
 
Many thanks!
 
- Nguyen


More information about the Techtalk mailing list