[PATCH] PPC64: xmon: add process-display command

Linas Vepstas linas at austin.ibm.com
Sat Sep 25 04:09:23 EST 2004


On Fri, Sep 24, 2004 at 10:54:00AM +0200, Arnd Bergmann was heard to remark:
> On Donnerstag, 23. September 2004 23:19, Linas Vepstas wrote:
> 
> > +
> > +???????if (prt_stacks)
> > +???????????????show_stack(p, NULL);
> 
> Can this give any useful data for running tasks? IIRC, you can only call
> this for sleeping tasks or for current.

Not sure i understand the question.  All of the other cpu's are stopped
while the system is in the debugger; and nothing is running except the 
debugger itself.   Thus even the stack of a "running" process is frozen
in time.   

Its useful to look at the stacks on other cpu's since they sometimes
deadlock against each other.

--linas





More information about the Linuxppc64-dev mailing list