variables in scopes

Roland McGrath roland@redhat.com
Thu Apr 21 22:02:00 GMT 2005


> > >    $var[idx]     - to index an array; idx being any systemtap expression
> >
> > Is this meant for explicit, sized array types only?  
> 
> Probably not.
> 
> > Otherwise there are no known bounds to check, and this is tantamount
> > to a (type *)idx facility.
> 
> Yes, but without typecasting or changing the base address, one can
> only just run off the end of the array.

Unless you plan to do overflow detection in the arithmetic, this still
means "compute any address you like".  



More information about the Systemtap mailing list