This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: problem in running systemtap
On 03/01/2012 06:38 PM, ch huang wrote:
> i compile and install the systemtap on CentOS5.7
> # uname -r
> 2.6.18-274.17.1.el5
>
> # yum list kernel-devel
> kernel-devel.x86_64 2.6.18-274.18.1.el5 installed
>
> and make soft link on kernel-devel
>
> # ls /usr/src/kernels/ -l
> total 4
> lrwxrwxrwx 1 root root 26 Mar 1 14:23 2.6.18-274.17.1.el5-x86_64
> -> 2.6.18-274.18.1.el5-x86_64
> drwxr-xr-x 19 root root 4096 Mar 1 11:23 2.6.18-274.18.1.el5-x86_64
>
> here is debuginfo package i installed
>
> # rpm -qa|grep debuginfo
> kernel-debuginfo-2.6.18-274.el5
> kernel-debuginfo-common-2.6.18-274.el5
>
> and i modified the file translate.cxx to avoid the problem of release test
[...]
The "problem of release test" is serving a useful function. For the
simple case of a begin probe, it may not matter that your running kernel
is slightly different than the -devel and -debuginfo versions. It will
matter much more for probes that actually parse debuginfo, as you saw
with a syscall probe.
The best solution is to install the exact same versions of kernel,
kernel-devel, and kernel-debuginfo. Is there a reason why you cannot do
this?
Josh