How to create a system tap module from a system tap script ?

Yes, simple , Isn’t it ? but it may not be simple for someone who just started with it, so the post

You could try something like below to generate a module

# stap -k -p4 script.stp

  -k     Keep  the  temporary directory after all processing.  This may be useful in order to examine the generated C code, or to reuse the
compiled kernel object.

The temp directory will be called some thing like below in “tmp” fileststem


-p4 , does “4th level” of pasrsing which end up in module creation..

Also check “-m” option of stap.

Leave a Reply

Your email address will not be published. Required fields are marked *