On Thu, Dec 17, 2009 at 04:18:21PM -0500, Hillel (Sabba) Markowitz wrote:
> On Wed, Dec 16, 2009 at 2:44 PM, Chad Mynhier <cmynh...@gmail.com> wrote:
> 
> > #define STACKDEPTHBASE 2
> 
> It appears that instead of doing this, I would have to set up
> 
> BEGIN
> {
>     self->startdepth = ustackdepth;
> }
> 
> This would allow the depth to be whatever the actual base depth is.
> The value used here is not the one that shows up in my tests.

This won't work;  the BEGIN probe isn't executed in the context of the
program.


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

Reply via email to