Hi Angelo,
great thanks. It's working a bit better now. I assume that ustackdepth handles functions with no return statements? These would otherwise be missed by using a variable to track depth with a return probe.

One thing is the flow indent still seems off. Do you know of any workaround for that?

Cheers,
Max


On 2 Nov 2009, at 12:54, Angelo Rajadurai wrote:

Hey Max:

There is a built in variable ustackdepth that should provide you stack depth in user land. See if this helps

-Angelo


On Nov 2, 2009, at 7:46 AM, Max wrote:

Hi Folks,
I'm trying to use DTrace to understand some complex code using the user process probe.

Things are basically not matching up. When I use a variable to track depth, sometimes it jumps. Similarly, the flow indent seems off.

I read another post saying that this is caused by missing return statements in functions.

http://mail.opensolaris.org/pipermail/dtrace-discuss/2005-June/000011.html

Problem is I'm a bit of a newbie with DTrace so although I get the general idea of the post, I'm still a bit confused about how to do a workaround.

Would anyone have any advice on how to resolve this?

Ideally I'm just after a way to reliably trace function entries and returns.

Any advice would be much appreciated.

Thanks,
Max
_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org


_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to