Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Mar 2012 11:26:33 +1030
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        Yuri <yuri@rawbw.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Can I take a snapshot of the current stack for every thread in some process from outside?
Message-ID:  <48E3F3E0-6DE1-46F7-A732-A44DE2C9D147@gsoft.com.au>
In-Reply-To: <4F516AA7.8060606@rawbw.com>
References:  <4F516AA7.8060606@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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?
>=20
> I was thinking gdb, but it requires the process to exit the system =
call to attach (?).
> DTrace is only activated particular sensors are crossed.
>=20
> 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









Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48E3F3E0-6DE1-46F7-A732-A44DE2C9D147>