From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30447 invoked by alias); 29 May 2008 05:58:26 -0000 Received: (qmail 30206 invoked by uid 48); 29 May 2008 05:57:47 -0000 Date: Thu, 29 May 2008 12:17:00 -0000 Message-ID: <20080529055747.30205.qmail@sourceware.org> From: "srinivasa at in dot ibm dot com" To: systemtap@sources.redhat.com In-Reply-To: <20080526073449.6562.prasad@linux.vnet.ibm.com> References: <20080526073449.6562.prasad@linux.vnet.ibm.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug runtime/6562] $SYSTEMTAP_DEBUGINFO_PATH does not work X-Bugzilla-Reason: AssignedTo 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/msg00473.txt.bz2 ------- 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.