]> sourceware.org Git - systemtap.git/commit
stapdyn: Add tapset function print_regs
authorJosh Stone <jistone@redhat.com>
Tue, 6 Nov 2012 22:07:36 +0000 (14:07 -0800)
committerJosh Stone <jistone@redhat.com>
Wed, 7 Nov 2012 23:39:56 +0000 (15:39 -0800)
commit8092123a4cf904d5761805faa5a79217e956295c
treea9563eba2769f707cfa2ac4b248bf327cd5b1c37
parent3d6362c6f3a4a2256a9c26d79a0d582e3414d9cd
stapdyn: Add tapset function print_regs

The underlying _stp_print_regs is more limited than the kernel version,
as some registers are not available, but this is still useful to see all
the information available to the probe.

Note: this makes it obvious that i686 actually doesn't have register
values right now.  Dyninst has documented that only POWER and AMD64
implement getRegisters, unfortunately.  This might be expanded by them
in a future release.

* runtime/regs.c: Split into linux/ and dyninst/ versions.
* tapset/context.stp (print_regs): Moved from linux/; now it's generic.
* stapdyn/mutatee.cxx (get_dwarf_registers): Add verbose logging, which
  also shows that i686 doesn't have registers. :(
12 files changed:
runtime/dyninst/regs-ia64.c [deleted file]
runtime/dyninst/regs.c
runtime/dyninst/runtime.h
runtime/linux/regs-ia64.c [moved from runtime/regs-ia64.c with 100% similarity]
runtime/linux/regs.c [new file with mode: 0644]
runtime/linux/runtime.h
runtime/regs.c
runtime/regs.h
stapdyn/mutatee.cxx
tapset/context.stp
tapset/dyninst/context.stp
tapset/linux/context.stp
This page took 0.029776 seconds and 5 git commands to generate.