This is the mail archive of the
systemtap@sources.redhat.com
mailing list for the systemtap project.
Re: Experiences with kprobes
Just to wrap up the thread...
Baruch Even wrote:
I'm now looking to evaluate AspectC++ to do this at the source code
level, though they only claim to only work with gcc 2.95.
This approach didn't work either (though I didn't try too hard as well),
as they produce c++ code and compile with g++, I preferred not to pursue
this, though it looks like a very useful system for user-mode programs.
I ended up doing a non-C parsing aspectizer in a very simply Python
script that modifies the code according to my needs, which are pretty
simple, just wrap a function in another function and log the rdtsc timer
at entry and exit. The Python script "parses" by the known signatures
that I give it which means it's not very robust but "works for me".
Baruch