Re: Can I take a snapshot of the current stack for every thread in some process from outside?

2012-03-03 Thread Yuri
On 03/02/2012 17:07, Gavin Mu wrote: ports/sysutils/pstack can do this if you use x86 machine. After fixing obvious compile issues on amd64, symbol _thread_list can't be found. Looks like hash algorithm is correct and finds other symbols, just not _thread_list. I don't know where to go

Can I take a snapshot of the current stack for every thread in some process from outside?

2012-03-02 Thread Yuri
I have the multithreaded process, each thread has some stack state at each point of time. For example during the timer tick when processes are switched? Is there a way to take a snapshot without disrupting a process? I was thinking gdb, but it requires the process to exit the system call to

Re: Can I take a snapshot of the current stack for every thread in some process from outside?

2012-03-02 Thread Daniel O'Connor
On 03/03/2012, at 11:19, Yuri wrote: I have the multithreaded process, each thread has some stack state at each point of time. For example during the timer tick when processes are switched? Is there a way to take a snapshot without disrupting a process? I was thinking gdb, but it requires

Re: Can I take a snapshot of the current stack for every thread in some process from outside?

2012-03-02 Thread maksim yevmenkin
Gdb. Thread apply all bt. Thanks, Max On Mar 2, 2012, at 4:49 PM, Yuri y...@rawbw.com wrote: I have the multithreaded process, each thread has some stack state at each point of time. For example during the timer tick when processes are switched? Is there a way to take a snapshot without

Re: Can I take a snapshot of the current stack for every thread in some process from outside?

2012-03-02 Thread Gavin Mu
ports/sysutils/pstack can do this if you use x86 machine. On Sat, Mar 3, 2012 at 8:49 AM, Yuri y...@rawbw.com wrote: I have the multithreaded process, each thread has some stack state at each point of time. For example during the timer tick when processes are switched? Is there a way to take