This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

[PATCH 0/5] Support Intel(R) Processor Trace


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


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