This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/17073] SystemTap doesn't support module given by full path
- From: "jlebon at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Thu, 19 Jun 2014 15:24:54 +0000
- Subject: [Bug translator/17073] SystemTap doesn't support module given by full path
- Auto-submitted: auto-generated
- References: <bug-17073-6586 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=17073
--- Comment #1 from Jonathan Lebon <jlebon at redhat dot com> ---
Created attachment 7645
--> https://sourceware.org/bugzilla/attachment.cgi?id=7645&action=edit
potential patch
This occurs because of name mismatches:
- Both the .name and .path members of the corresponding _stp_module struct are
set to the full path of the module.
- When the module notifier is called from the kernel, only the module name is
passed, path information is lost. So when we try to update section addresses,
we fail to match against any of the structs and thus fail to update.
- Even if the above is fixed, the dwarf_derived_probe_group emits in the
corresponding stap_dwarf_probe the full path for the .module member. This also
causes a mismatch to occur when trying to relocate the probe address.
The patch given fixes these issues by retrieving the actual module name from
the .gnu.linkonce.this_module section and using that name when emitting the
_stp_module struct and stap_dwarf_probe structs.
NB: note the TODO item in the patch re. calculating the proper offset for the
module name.
--
You are receiving this mail because:
You are the assignee for the bug.