This is the mail archive of the systemtap@sourceware.org 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: vmlinux search path


> > 
> > The directory containing vmlinux can also specified by using 
> > SYSTEMTAP_DEBUGINFO_PATH environmental variable.
> >
> 
> I tried the environment trick but that does not help. I think the 
> DEBUGINFO_PATH is for the kernel modules.


Okay I after setting SYSTEMTAP_DEBUGINFO_PATH=/tmp/
systemtap looked at these files

/boot/vmlinux-2.6.34-rc4"
/tmp//boot/vmlinux-2.6.34-rc4"                  <-----------
/tmp//boot/vmlinux-2.6.34-rc4.debug"            <----------
/lib/modules/2.6.34-rc4/vmlinux"
/tmp//lib/modules/2.6.34-rc4/vmlinux" 		<---------
/tmp//lib/modules/2.6.34-rc4/vmlinux.debug"     <----------


See the <--- markers above that indicates that SYSTEMTAP_DEBUGINFO_PATH
was indeed looked at.

Without SYSTEMTAP_DEBUGINFO_PATH set 
stap looked at these files.

/boot/vmlinux-2.6.34-rc4"
/boot/vmlinux-2.6.34-rc4"
/boot/.debug/vmlinux-2.6.34-rc4"
/usr/lib/debug/boot/vmlinux-2.6.34-rc4"
/var/cache/abrt-di/usr/lib/debug/boot/vmlinux-2.6.34-rc4"
/boot/build/vmlinux-2.6.34-rc4"
/boot/vmlinux-2.6.34-rc4.debug"
/boot/.debug/vmlinux-2.6.34-rc4.debug"
/usr/lib/debug/boot/vmlinux-2.6.34-rc4.debug"
/var/cache/abrt-di/usr/lib/debug/boot/vmlinux-2.6.34-rc4.debug"
/boot/build/vmlinux-2.6.34-rc4.debug"
/lib/modules/2.6.34-rc4/vmlinux"
/lib/modules/2.6.34-rc4/vmlinux"
/lib/modules/2.6.34-rc4/.debug/vmlinux"
/usr/lib/debug/lib/modules/2.6.34-rc4/vmlinux"
/var/cache/abrt-di/usr/lib/debug/lib/modules/2.6.34-rc4/vmlinux"
/lib/modules/2.6.34-rc4/build/vmlinux"
/lib/modules/2.6.34-rc4/vmlinux.debug"
/lib/modules/2.6.34-rc4/.debug/vmlinux.debug"
/usr/lib/debug/lib/modules/2.6.34-rc4/vmlinux.debug"
/var/cache/abrt-di/usr/lib/debug/lib/modules/2.6.34-rc4/vmlinux.debug"
/lib/modules/2.6.34-rc4/build/vmlinux.debug"

I got this information by running "strace -e open" on stap and filtering
the output for vmlinux. Obviously I removed the vmlinux debug files so
that it can search all possible paths.


> > /boot/vmlinux-`uname
> > -r`                                                                       
> >                                    /boot/.debug/vmlinux-`uname -r`
> > /usr/lib/debug/boot/vmlinux-`uname -r` /boot/vmlinux-`uname -r`.debug
> > /boot/.debug/vmlinux-`uname -r`.debug /usr/lib/debug/boot/`uname
> > -r`5.1snap2.debug /lib/modules/`uname -r`/vmlinux /lib/modules/`uname
> > -r`/vmlinux.debug /lib/modules/`uname -r`/.debug/vmlinux.debug
> > /usr/lib/debug/lib/modules/`uname -r`/vmlinux.debug
> 
> Debian is shipping the vmlinux file as /usr/lib/debug/vmlinux-`uname -r`
> which unfortunately does not match the list you have mentioned.
> (See Debian BTS: #582810)
> 
> Is this something that can be patched (upstream) to include 
> /usr/lib/debug/`uname -r` also in the list?


I guess Frank or Roland might have a better opinion/suggestion on this.


--

Thanks and Regards
Srikar


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