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

Daniel O'Connor doconnor at gsoft.com.au
Sat Mar 3 01:16:25 UTC 2012


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 the process to exit the system call to attach (?).
> DTrace is only activated particular sensors are crossed.
> 
> So is there such a tool/command?


Will gcore do what you want?

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








More information about the freebsd-hackers mailing list