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: "wenji dot huang at oracle dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 27 May 2008 09:23:45 -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 wenji dot huang at oracle dot com 2008-05-27 09:23 -------
Subject: Re: New: $SYSTEMTAP_DEBUGINFO_PATH does not work
prasad at linux dot vnet dot ibm dot com wrote:
[...]
> [root@prasadkr_t60p systemtap]# env | grep DEBUG
> SYSTEMTAP_DEBUGINFO_PATH=/home/prasadkr/tryvmlinux/
> [root@prasadkr_t60p systemtap]# ls -lh /home/prasadkr/tryvmlinux/
> total 72M
The debuginfo_path is a little weird. If we specify it begins with "/",
such as "/home/prasadkr/tryvmlinux/", the real searching path will be
"/home/prasadkr/tryvmlinux/lib/modules/xxx/vmlinux".
And the relative path will begin with /lib/modules/xxx/, like "build"
So you can make some addition under "tyrvmlinux" and take another test.
I suggest that debugpath.exp should be strengthened to cover the
self-built kernel case.
diff --git a/testsuite/systemtap.base/debugpath.exp
b/testsuite/systemtap.base/debugpath.exp
index b0b1220..b6e5674 100644
--- a/testsuite/systemtap.base/debugpath.exp
+++ b/testsuite/systemtap.base/debugpath.exp
@@ -10,7 +10,7 @@ expect {
wait
set test "debugpath-good"
-spawn env SYSTEMTAP_DEBUGINFO_PATH=:/usr/lib/debug stap -e "probe
kernel.function(\"sys_open\") {}" -p2
+spawn env SYSTEMTAP_DEBUGINFO_PATH=:/usr/lib/debug:build stap -e "probe
kernel.function(\"sys_open\") {}" -p2
expect {
-re {kernel.function.*pc=} { pass $test }
timeout { fail "$test (timeout2)" }
--
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.