This is the mail archive of the
systemtap@sources.redhat.com
mailing list for the systemtap project.
Re: instrumenting kernel functions by name
- From: Badari Pulavarty <pbadari at us dot ibm dot com>
- To: William Cohen <wcohen at redhat dot com>
- Cc: SystemTAP <systemtap at sources dot redhat dot com>
- Date: 14 Mar 2005 13:36:03 -0800
- Subject: Re: instrumenting kernel functions by name
- Organization:
- References: <42360273.2040809@redhat.com>
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).
Thanks,
Badari