1st draft - Tapset Writer's Guide

Sébastien Dugué sebastien.dugue@bull.net
Thu Apr 5 06:47:00 GMT 2007


  Hi Mike, thanks for sharing this.

  Just a few typos at a first glance:

[snip]
> 
> EMBEDDED C & SAFETY
> 
> As mentioned previously, you can use embedded C (raw C code) to do things 
> not supported by the SystemTap language.  Please so this carefully and 
                                                   ^
                                                   do ?

> sparingly.  Embedded C bypasses all the safety features built into 
> SystemTap.  Be especially careful when dereferencing pointers.  Use the 
> kread() macro to dereference any pointers that could potentially be 
> invalid.  If you're not sure, error on the side of caution.  The cost of 
                                ^
                                err ?

> using kread() is small compared to the cost of your tapset inadvertently 
> crashing a system!
> 
> 


  Sébastien.



More information about the Systemtap mailing list