On Wed, 2008-06-04 at 10:12 -0400, James Carlson wrote: > Christophe Kalt writes: > > No, see http://docs.sun.com/app/docs/doc/817-6223/chp-typeopexpr-10?a=view > > The lack of for/while/goto is an intentional omission in the interest > of safety. > > If/else, though, is another matter. You can easily translate any > if/else combination into a series of probes. For example, the > following is invalid: > > fbt:foo:bar:entry > /arg0 == 1234/ > { > trace(arg1); > if (arg2 == 5678) > trace(arg2); > else > trace(arg3); > } > > But you can do something like this, and it's equivalent: > > fbt:foo:bar:entry > /arg0 == 1234/ > { > trace(arg1); > self->test = arg2;
Am I missing something or would this->test be more appropriate in this case? Thanks, Roman. _______________________________________________ dtrace-discuss mailing list dtrace-discuss@opensolaris.org