This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/11429] New: stap on RHEL 5.5: multiple debuginfo problems


I'm reporting this on behalf of Roger Mach, a new stap user.  Any help would be
appreciated.

Subject: resend of system tap issue
From: Roger Mach <bigmach@us.ibm.com>
To: jkenisto@us.ibm.com
Date: Wed, 24 Mar 2010 16:17:33 -0700
...
I installed RHEL 5.5 rc2 on a lab machine, and then installed the
following packages (following the instructions in the System Tap
Beginner's Guide):

systemtap-1.1-3.el5
systemtap-runtime-1.1-3.el5
kernel-devel-2.6.18-194.el5.x86_64.rpm

I was unable to locate the kernel-debuginfo and kernel-debuginfo-common
rpms, so I installed kernel-2.6.18-194.el5.src.rpm and did an 'rpmbuild
-bb' to generate them, which I then installed:

kernel-debuginfo-2.6.18-194.el5.x86_64.rpm
kernel-debuginfo-common-2.6.18-194.el5.x86_64.rpm

At that point I was able to run the initial testing command suggested in
section 2.1.3 of the Beginner's Guide and it worked.

I then attempted to set a probe on a function in a kernel module:

stap -v -e 'probe
module("ipmi_watchdog").function("ipmi_wdog_pretimeout_handler").call
{printf("ipmi_wdog_pretimeout_handler called\n"); exit()}'

But I got this error:

WARNING: cannot find module ipmi_watchdog debuginfo: No DWARF
information found

By running stap under strace I noticed that it was looking for
the .debug files in /lib/modules/<kernel version>/kernel/... and I
determined that my kernel-debuginfo* packages had installed them
under /usr/lib/debug/lib/modules/<kernel version>/kernel/... so I worked
around that issue by creating symlinks for each .debug file (1260 of
them!) in /lib/modules pointing to the actual file
in /usr/lib/debug/lib/modules.  So that is potential bug #1, that
the .debug files weren't in the expected place.

Now, even though the .debug files are being found by stap, I still get
the same "No DWARF information found" error.  There are still a handful
of files not found, including:

/lib/modules/2.6.18-194.el5/kernel/drivers/char/ipmi/.debug/ipmi_watchdog.ko.debug
/lib/modules/2.6.18-194.el5/kernel/drivers/char/ipmi/build/ipmi_watchdog.ko.debug

If I change my command to use kprobe.module instead, everything appears
to work properly:

stap -e 'probe
kprobe.module("ipmi_watchdog").function("ipmi_wdog_pretimeout_handler")
{printf("ipmi_wdog_pretimeout_handler called\n"); exit()}'

So this is problem #2, that symbols from modules don't appear to be
available even though system tap is able to locate at least some of the
the .debug files.

-- 
           Summary: stap on RHEL 5.5: multiple debuginfo problems
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P1
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: jkenisto at us dot ibm dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=11429

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]