On Fri, Dec 18, 2009 at 1:12 PM, Chad Mynhier <cmynh...@gmail.com> wrote:
> 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
>

When I tried to set up with a probe at

pid$target::main:entry with a printf inside it, I got no output.
However, I did get a main:return from

pid:target:hello::return

I do not understand why that is happening. As I said in my last post,
I do get a _start:entry at ustackdepth =1, but to main:entry at
ustackdepth =2.


-- 
       Sabba     -          סבא הלל        -     Hillel
Hillel (Sabba) Markowitz | Said the fox to the fish, "Join me ashore"
 sabbahil...@gmail.com | The fish are the Jews, Torah is our water
http://photos1.blogger.com/blogger/7637/544/640/SabbaHillel.jpg
_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to