On Thu, Dec 17, 2009 at 3:08 PM, Hillel (Sabba) Markowitz
<sabbahil...@gmail.com> wrote:
> On Wed, Dec 16, 2009 at 2:44 PM, Chad Mynhier <cmynh...@gmail.com> wrote:
>
>
>> #define STACKDEPTHBASE 2
>
> I don't follow why this is set to 2. I included a syscall count to
> also see how many times a function is entered and the initialization
> function did not show up in the time. Shouldn't the index be 0 based
> so that the value should be 1?

This was just an observation that ustackdepth showed up as 2 on entry
to main().  What I really should have done would be to set the base as
a thread-local variable in the pid$target::main:entry probe.

And this would only work for a single-threaded process.  For a
multi-threaded process, you'd want to set it for each thread based on
the initial function for that thread.

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

Reply via email to