Dave Nomura <dcnltc@us.ibm.com> writes:
2. is there any way to pass options to the compilation of the
SystemTap generated module code? I was thinking that this would allow
me to pass a library of kernel driver support routines that might
otherwise live in SystemTaps runtimes/ directory. Another use might
be to pass -D define options.
You can already pass -D options. If you want to include libraries of
embedded-C code, you can put it into a private tapset file, and cause
it to be pulled into the script compilation somehow. Chances are you
will want to make some functions that are callable from script. See
the tutorial <http://sourceware.org/systemtap/tutorial/node18.html>,
and realize that the embedded-C code can go into a separate file that
systemtap would search (see the -I option).
- FChE