[dtrace-discuss] self-> in BEGIN probe

Dan Mick dan.mick at sun.com
Wed Feb 14 02:21:38 PST 2007


Robert Milkowski wrote:

Seems pointless and meaningless to me.  The BEGIN-time thread surely is 
not relevant for most of the rest of the script, and of course the 
variable has default value 0 anyway...

> What's the point setting self->in_metaslab in a BEGIN probe?
> I'm not talking about setting it to 0 as this is not necessary but
> rather about self-> variables in BEGIN probe. I guess it has no
> rather about self-> predictable meaning, right?
> 
> 
> #!/usr/sbin/dtrace -s
> 
> #pragma D option quiet
> 
> BEGIN
> {
>          self->in_metaslab = 0;
> }




More information about the dtrace-discuss mailing list