Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Mar 2012 09:07:46 +0800
From:      Gavin Mu <gavin.mu@gmail.com>
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:  <CAGEduP%2BfC_BPsiutV9CvNQoFZjnkP1o-3Yy0zEZe53pMgnc3yA@mail.gmail.com>
In-Reply-To: <4F516AA7.8060606@rawbw.com>
References:  <4F516AA7.8060606@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
ports/sysutils/pstack can do this if you use x86 machine.

On Sat, Mar 3, 2012 at 8:49 AM, Yuri <yuri@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 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?
>
> Yuri
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGEduP%2BfC_BPsiutV9CvNQoFZjnkP1o-3Yy0zEZe53pMgnc3yA>