This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/5] Support Intel(R) Processor Trace
- From: Markus Metzger <markus dot t dot metzger at intel dot com>
- To: palves at redhat dot com
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 23 Jun 2015 10:16:53 +0200
- Subject: [PATCH 0/5] Support Intel(R) Processor Trace
- Authentication-results: sourceware.org; auth=none
Processor Trace (PT) is a new h/w tracing feature available with the 5th
generation Core processor.
It allows recording control-flow execution trace similar to Branch Trace Store
(BTS), which is already supported by GDB via the "record btrace" command.
PT is also integrated into GDB's record framework and enabled via the "record
btrace" or the "record btrace pt" command. The former falls back to BTS, if
PT is not available.
Compared to BTS, PT is more compact and significantly less intrusive. This
means longer traces and less recording overhead.
The PT driver has been merged into kernel 4.1. This patch series adds GDB
support. The actual decode is done in a separate library that is available
open source on github:
https://github.com/01org/processor-trace
Markus Metzger (5):
configure: check for libipt
btrace: support Intel(R) Processor Trace
btrace, linux: use data_size and data_offset
btrace: store raw btrace data
btrace: maintenance commands
gdb/Makefile.in | 5 +-
gdb/NEWS | 27 +
gdb/btrace.c | 1134 +++++++++++++++++++++++++++++++++++++++++-
gdb/btrace.h | 85 ++++
gdb/common/btrace-common.c | 97 ++++
gdb/common/btrace-common.h | 48 +-
gdb/config.in | 3 +
gdb/configure | 498 +++++++++++++++++++
gdb/configure.ac | 20 +
gdb/doc/gdb.texinfo | 187 ++++++-
gdb/features/btrace-conf.dtd | 7 +-
gdb/features/btrace.dtd | 16 +-
gdb/gdbserver/linux-low.c | 85 +++-
gdb/gdbserver/server.c | 51 +-
gdb/nat/linux-btrace.c | 398 ++++++++++++++-
gdb/nat/linux-btrace.h | 19 +
gdb/record-btrace.c | 139 +++++-
gdb/remote.c | 65 ++-
18 files changed, 2841 insertions(+), 43 deletions(-)
--
1.8.3.1