This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/6562] $SYSTEMTAP_DEBUGINFO_PATH does not work
- From: "srinivasa at in dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 29 May 2008 05:57:47 -0000
- Subject: [Bug runtime/6562] $SYSTEMTAP_DEBUGINFO_PATH does not work
- References: <20080526073449.6562.prasad@linux.vnet.ibm.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From srinivasa at in dot ibm dot com 2008-05-29 05:57 -------
(In reply to comment #5)
> Srini,
> Will your patch work for modules? Do we still look under /lib/modules/`uname -r`/?
> If so, great!
Elfutils doesn't allow us to specify different paths for vmlinux and modules(
except in one case where vmlinux is searched in /boot and modules in
/lib/modules/uname -r, this because these paths are hardcoded).
So when we specify path in SYSTEMTAP_DEBUGINFO_PATH, elfutils searches modules
in that path,
for eg:- [root@llm27lp1 src]# export
SYSTEMTAP_DEBUGINFO_PATH=/home/srini/systemtap/linux-2.6.26-rc3
Then elfutils searches modules in subdirs of /home/srini/systemtap/linux-2.6.26-rc3
[root@llm27lp1 src]# ./stap -vvv -e 'probe
module("ext3").function("ext3_group_extend") { printf("hi\n")}'
........................................
.......................................
focused on module 'ext3 = [0x4f0200-0x518100, bias 0x0] file
/home/srini/systemtap/linux-2.6.26-rc3/fs/ext3/ext3.ko ELF machine ppc64 (code 21)
...........................
====================================
>
> Another option for helping folks who'd want to use SystemTap with their self
> built kernels, but without sufficient /boot/ space is to make elfutils
> intelligent to look for /lib/modules/`uname -r`/build/vmlinux
This can be solved by above patch, just set
export SYSTEMTAP_DEBUGINFO_PATH=/lib/modules/`uname -r`/build/, elfutils
searches vmlinux and modules in same dir.
>
> Ananth
--
http://sourceware.org/bugzilla/show_bug.cgi?id=6562
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.