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 dyninst/14573] New: Pass pt_regs to dyninst probe handlers


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

             Bug #: 14573
           Summary: Pass pt_regs to dyninst probe handlers
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dyninst
        AssignedTo: systemtap@sourceware.org
        ReportedBy: jistone@redhat.com
    Classification: Unclassified


In order to examine much process state with stapdyn, we're going to need
registers.  We should pass a pt_regs* (/usr/include/asm/ptrace.h) as a
parameter to the probe handler.

I believe this can be allocated and prepared via BPatch_register code snippets.
 We will probably need to hardcode architecture-specific support for the
register layouts, but I think that's ok as these are generally unchanging.

Not all registers will be available.  Right now dyninst only exposes the
general purpose registers, and none of the special registers.  We do need
access to the frame and stack pointers, but that should come soon - see:
https://lists.cs.wisc.edu/archive/dyninst-api/2012/msg00093.shtml

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]