Where does systemtap look for debuginfo and sources ?
Frank Ch. Eigler
fche@redhat.com
Tue Apr 13 15:21:00 GMT 2010
"A, Satheeshpaul (EXT-Other - IN/Bangalore)" <satheeshpaul.a.ext@nsn.com> writes:
> I am having trouble in probing a module that did not come with the RHEL
> 5.4 distribution.
Systemtap does work with this configuration but only clumsily.
> I have installed the kernel-debuginfo & kernel-devel
> packages. The kernel-debuginfo packages puts the debug-build modules
> under "/usr/lib/debug/lib/modules/2.6.18-164.el5/kernel/" . I have
> copied my module (built with -g and no optimisation) in this location. I
> also copied the sources of this module under
> "/usr/src/debug/kernel-2.6.18/linux-2.6.18.x86_64/net". But systemtap is
> still not able to find the probe point.
If your .ko is not stripped, then you should need do nothing but copy
it under /lib/modules/`uname -r`/kernel somewhere. stap should find
it, and its embedded dwarf data.
You don't need to install the module sources anywhere, nor do you need
to put something under /usr/lib/debug/lib/modules/.... unless it's a
stripped .ko.debug file.
- FChE
More information about the Systemtap
mailing list