[dtrace-discuss] Re: Detect stack size
Trond Norbye
trond at norbye.org
Tue Dec 5 01:35:14 PST 2006
>> Casper wrote:
>> In order to get stack use you can use "pmap -x" or
>> just measure the difference between the deepest stack frame and
>> the top of the stack. (Which requires identifying that point)
It was something like the last part there I was hoping to do with DTrace. Since the pid-provider can fire a probe on function calls, I was hoping there was some kind of magic that I could do to get the stack pointer ;-)
Deepti wrote:
> above is manual. I guess user asked how to do it in
> application. although I don't know how question is relevant to
> dtrace-discuss alias unless he wanted to trace it thru dtrace script, but
> email wanting to do it thru dtrace.
See above.. I will of course appreciate all hints and tips ;)
Casper wrote:
> > You might be able to entise all the zero-fill-on-demand page faults on
> > the thread stacks and get a stack trace at those points.
How do I do such a thing? any pointers?
> > If you needed to grow the thread stacks to 4MB, then there already
> > is some issue.
I know :-( The problem is that this is a big and complex daemon process so I don't know where to start to look ;-)
Trond
This message posted from opensolaris.org
More information about the dtrace-discuss
mailing list