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]

Re: debuginfoless static user probes


> Stan Cox <scox@redhat.com> writes:
> 
> > [...]
> > +function _dwarf_register_regs() {
> > +   _x8664_dwarf_regs["rax"] = 0 _x8664_dwarf_regs["eax"] = 0
> > +   _x8664_dwarf_regs["ax"] = 0 _x8664_dwarf_regs["al"] = 0
> > [...]
> 
> Can we hard-code this kind of lookup table inside the translator?
> It's just as fixed as the loc2c mappings.

For the primary names, libdwfl can tell you these mappings.  It doesn't
know about the variant names like "eax" (on 64-bit) and "a[xhl]".
We could find a way to add those if it's worthwhile.


Thanks,
Roland


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