This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/10139] New: .probes section disappears into debuginfo
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 10 May 2009 18:57:29 -0000
- Subject: [Bug runtime/10139] New: .probes section disappears into debuginfo
- Reply-to: sourceware-bugzilla at sourceware dot org
When building packages with separate .debuginfo dwarf files the .probes section
goes into the .debug file. Systemtap wasn't searching there for .probes. This
wasn't immediately apparent since if no .probes section is found the fallback to
use labels is used but is a lot slower (and does sometimes not work because the
label disappeared in an optimization).
I fixed the searching for the .probes section with:
commit 5896cd059949413cf56678d7a7fa6c0788f576b5
Author: Mark Wielaard <mjw@redhat.com>
Date: Sun May 10 20:24:40 2009 +0200
Get .probes section through dwarf debuginfo file if necessary.
* tapsets.cxx (dwarf_builder::build): Add some comments, verbose log
messages and get Elf through dwarf_getelf if it exists before searching
for .probes section.
This makes current packages build with systemtap sdt.h probes work even if they
end up with the .probes section in the .debug file.
But it would be better if the .probes section stayed in the main elf file. The
debuginfo is still needed for probes that need arguments of course, but simple
probes based on markers would work otherwise if they don't need arguments.
--
Summary: .probes section disappears into debuginfo
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: runtime
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: mjw at redhat dot com
CC: scox at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10139
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.