This is the mail archive of the systemtap@sources.redhat.com mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: instrumenting kernel functions by name


Badari Pulavarty wrote:
On Mon, 2005-03-14 at 13:30, William Cohen wrote:

During my quest to look for insteresting points to instrument it seems like I was rewriting it for each function I was trying out and recompiling the my test instrumentation quite a bit. I was looking at functions that were being called from a number of different places, so I am using the hash functions in the SystemTap Runtime library to keep statistics on a per caller basis. The attached kprobes_where_funct.tar.gz has the source code. You will need to point the build script in the executable to the appropriate place for the SystemTap runtime libraries. The build script is a cheat; is used to find out the address of the kallsym_lookup_name() even though it is not exported.


BTW, kallsym_lookup_name() is now exported. You don't need to cheat
any more.

http://linus.bkbits.net:8080/linux-2.5/cset@1.1994.10.132?nav=index.html|ChangeSet@-7d

I pushed the patch few weeks ago (now its in mainline).

Great. The red hat kernels are a bit behind, so I had to work around it for the time being.


-Will


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]