From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29901 invoked by alias); 27 May 2008 09:23:22 -0000 Received: (qmail 29892 invoked by uid 22791); 27 May 2008 09:23:21 -0000 X-Spam-Status: No, hits=-0.2 required=5.0 tests=AWL,BAYES_40,J_CHICKENPOX_93 X-Spam-Check-By: sourceware.org Received: from agminet01.oracle.com (HELO agminet01.oracle.com) (141.146.126.228) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 27 May 2008 09:23:00 +0000 Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m4R9Mvbi006609; Tue, 27 May 2008 04:22:57 -0500 Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m4QI1LJC032057; Tue, 27 May 2008 03:22:56 -0600 Received: from dhcp-beijing-cdc-10-182-121-19.cn.oracle.com by acsmt358.oracle.com with ESMTP id 9862504711211879787; Tue, 27 May 2008 04:16:27 -0500 Message-ID: <483BD0F1.20608@oracle.com> Date: Tue, 27 May 2008 19:26:00 -0000 From: Wenji Huang User-Agent: Thunderbird 2.0.0.12 (X11/20080213) MIME-Version: 1.0 To: sourceware-bugzilla@sourceware.org CC: systemtap@sources.redhat.com Subject: Re: [Bug runtime/6562] New: $SYSTEMTAP_DEBUGINFO_PATH does not work References: <20080526073449.6562.prasad@linux.vnet.ibm.com> In-Reply-To: <20080526073449.6562.prasad@linux.vnet.ibm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-IsSubscribed: yes Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2008-q2/txt/msg00439.txt.bz2 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)" }