Right, dtrace does not have an if-then-else construct. Try this:

fbt:mydriver:curiousfunction:entry{
        self->follow = timestamp;
        self->spec = speculation();
}

fbt:mydriver:curiousfunction:return
/self->spec && self->follow && (timestamp - self->follow) > 80/
{
        speculate(self->spec);
        stack(10);
}

Siegfried Schmidt wrote:
> Thanks for your idea,
> 
> the "if" statement in the dtrace code causes a syntax error on 
> my machine? 
> 
> Sigi
> 
> 
> --
> This message posted from opensolaris.org
> _______________________________________________
> dtrace-discuss mailing list
> [email protected]

-- 
blu

There are two rules in life:
Rule 1- Don't tell people everything you know
----------------------------------------------------------------------
Brian Utterback - Solaris RPE, Sun Microsystems, Inc.
Ph:877-259-7345, Em:brian.utterback-at-ess-you-enn-dot-kom
_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to