diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2015-07-02 15:16:09 +0200 |
---|---|---|
committer | Markus Metzger <markus.t.metzger@intel.com> | 2015-07-09 08:03:10 +0200 |
commit | 37fdfe4c0083c2a6c8558c76e2bc4fbc77df7d91 (patch) | |
tree | fe7db5a0324ebc9a1c6f65a81d30262a137b8e2d /gdb/btrace.c | |
parent | 80a2b330f7e719cd851242d6f976719586fb9295 (diff) | |
download | gdb-37fdfe4c0083c2a6c8558c76e2bc4fbc77df7d91.zip gdb-37fdfe4c0083c2a6c8558c76e2bc4fbc77df7d91.tar.gz gdb-37fdfe4c0083c2a6c8558c76e2bc4fbc77df7d91.tar.bz2 |
btrace, pt: support new packets
Add support for dumping new Intel(R) Processor Trace packets in the
"maint btrace packet-history" command.
gdb/
* btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
mnt packets.
Diffstat (limited to 'gdb/btrace.c')
-rw-r--r-- | gdb/btrace.c | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/gdb/btrace.c b/gdb/btrace.c index 1618e55..731d237 100644 --- a/gdb/btrace.c +++ b/gdb/btrace.c @@ -2309,7 +2309,8 @@ pt_print_packet (const struct pt_packet *packet) break; case ppt_pip: - printf_unfiltered (("pip %" PRIx64 ""), packet->payload.pip.cr3); + printf_unfiltered (("pip %" PRIx64 "%s"), packet->payload.pip.cr3, + packet->payload.pip.nr ? (" nr") : ("")); break; case ppt_tsc: @@ -2349,6 +2350,30 @@ pt_print_packet (const struct pt_packet *packet) printf_unfiltered (("ovf")); break; + case ppt_stop: + printf_unfiltered (("stop")); + break; + + case ppt_vmcs: + printf_unfiltered (("vmcs %" PRIx64 ""), packet->payload.vmcs.base); + break; + + case ppt_tma: + printf_unfiltered (("tma %x %x"), packet->payload.tma.ctc, + packet->payload.tma.fc); + break; + + case ppt_mtc: + printf_unfiltered (("mtc %x"), packet->payload.mtc.ctc); + break; + + case ppt_cyc: + printf_unfiltered (("cyc %" PRIx64 ""), packet->payload.cyc.value); + break; + + case ppt_mnt: + printf_unfiltered (("mnt %" PRIx64 ""), packet->payload.mnt.payload); + break; } } |