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/17073] SystemTap doesn't support module given by full path


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.


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