Bug 182519 - Have elfutil also search /lib/modules/`uname -r`/build/vmlinux
Have elfutil also search /lib/modules/`uname -r`/build/vmlinux
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: elfutils (Show other bugs)
5
All Linux
medium Severity medium
: ---
: ---
Assigned To: Roland McGrath
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2006-02-22 18:23 EST by William Cohen
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-07-12 17:14:35 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
add /lib/modules/`uname -r`/build/vmlinux to places to check (555 bytes, patch)
2006-06-20 15:48 EDT, William Cohen
no flags Details | Diff

  None (edit)
Description William Cohen 2006-02-22 18:23:29 EST
Description of problem:


SystemTap uses elfutils to find the kernel information. The current set of paths
searched works fine for stock RPMs installed:

- systemtap looks for the debug info in these locations:
  /boot/vmlinux-`uname -r`
  /usr/lib/debug/lib/modules/`uname -r`/vmlinux
  /lib/modules/`uname -r`/vmlinux


However, for locally built custombuild kernels elfutils should also check in
/lib/modules/`uname -r`/build/vmlinux

Version-Release number of selected component (if applicable):

elfutils-0.119


How reproducible:

Always

Steps to Reproduce:
1. Build kernel locally, e.g. make
2. Install kernel, "make modules_install install"
3. Boot locally built kernel
4. Uses systemtap to attempt to place probe in kernel
  
Actual results:

systemtap can't find vmlinux file

Expected results:

systemtap finds vmlinux and instruments kernel

Additional info:
Comment 1 William Cohen 2006-06-20 15:48:24 EDT
Created attachment 131219 [details]
add /lib/modules/`uname -r`/build/vmlinux to places to check
Comment 2 Roland McGrath 2006-07-12 17:14:35 EDT
The right fix is for systemtap to use more customized interfaces.

Note You need to log in before you can comment on or make changes to this bug.