[Bug dyninst/24954] New: stapdyn on ppc/aarch64 do not support full register set

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug dyninst/24954] New: stapdyn on ppc/aarch64 do not support full register set

glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=24954

            Bug ID: 24954
           Summary: stapdyn on ppc/aarch64 do not support full register
                    set
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dyninst
          Assignee: systemtap at sourceware dot org
          Reporter: scox at redhat dot com
  Target Milestone: ---

--
You are receiving this mail because:
You are the assignee for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug dyninst/24954] stapdyn on ppc/aarch64 do not support full register set

glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=24954

--- Comment #1 from Stan Cox <scox at redhat dot com> ---
ah so for -O0 on ppc the stap probe gets the value from r31 + 0x80 but r31 is
not setup due to 8 arg restriction.  optimization often works because r31 isn't
used.  not too familiar with ppc, why not r1 (sp) + 0x80 ?

stapdyn sets up the probe register context using a dyninst synthesized call,
which dyninst limits to the number of register args.  stapdyn sets up only
those registers so if a probe variable access requires a register that isn't
set, e.g. r31 + 0x80, then it fails.

If a non set register is not required, oftentimes this will be the case with
-O2, then the access will succeed.  The possible solution is to set up all the
regs using multiple synthesized calls.   See mutatee.cxx::get_dwarf_registers,
mutatee.cxx::mutatee::instrument_dynprobe_target,
uprobes-regs.c::enter_dyninst_uprobe_regs.

--
You are receiving this mail because:
You are the assignee for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug dyninst/24954] stapdyn on ppc/aarch64 do not support full register set

glaubitz at physik dot fu-berlin.de
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=24954

Stan Cox <scox at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Stan Cox <scox at redhat dot com> ---
Fixed in dyninst-10.1.0-4
         systemtap-4.2-0

--
You are receiving this mail because:
You are the assignee for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug dyninst/24954] stapdyn on ppc/aarch64 do not support full register set

Sourceware - systemtap mailing list
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=24954

Stan Cox <scox at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jistone at redhat dot com

--- Comment #3 from Stan Cox <scox at redhat dot com> ---
*** Bug 15614 has been marked as a duplicate of this bug. ***

--
You are receiving this mail because:
You are the assignee for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug dyninst/24954] stapdyn on ppc/aarch64 do not support full register set

Sourceware - systemtap mailing list
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=24954

--- Comment #4 from Stan Cox <scox at redhat dot com> ---
*** Bug 14573 has been marked as a duplicate of this bug. ***

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