public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Markus Metzger <markus.t.metzger@intel.com>
To: palves@redhat.com
Cc: gdb-patches@sourceware.org
Subject: [PATCH v2 00/13] record btrace: prepare for a new trace format
Date: Thu, 20 Nov 2014 10:47:00 -0000	[thread overview]
Message-ID: <1416480444-9943-1-git-send-email-markus.t.metzger@intel.com> (raw)

Changes to v1:
  - incorporated Pedro's comments
  - moved btrace-common from common/ into nat/ and renamed to x86-btrace
  - changed "btrace, linux: add perf event buffer abstraction" and
    "[wip] btrace: support Intel(R) Processor Trace" to support
    a new kernel interface: https://lkml.org/lkml/2014/11/14/292.


This is the first part of a patch series that adds support for a new trace
format.  The entire series consists of three parts:

  - preparation (this)
  - support live inferior tracing
  - support trace in core files


Besides preparing for an additional trace format, this first part adds the
following functionality:

  - allow the trace buffer size to be configured
  - indicate errors as gaps in the trace


In order to motivate some patches (e.g. identifying the cpu or changing the
btrace_compute_ftrace parameters), I also send a work-in-progress version of the
second part that adds support for the new trace format.  This patch is not part
of the series under review.


Markus Metzger (13):
  btrace: add struct btrace_data
  btrace: add format argument to supports_btrace
  btrace, linux: add perf event buffer abstraction
  record btrace: add configuration struct
  record-btrace: add bts buffer size configuration option
  btrace: update btrace_compute_ftrace parameters
  btrace: extend struct btrace_insn
  btrace: move and rename btrace-common
  btrace: identify cpu
  btrace: use the new cpu identifier
  record-btrace: indicate gaps
  configure: check for libipt
  [wip] btrace: support Intel(R) Processor Trace

 gdb/Makefile.in                                  |  16 +-
 gdb/NEWS                                         |  35 +
 gdb/btrace.c                                     | 899 ++++++++++++++++++++---
 gdb/btrace.h                                     | 100 ++-
 gdb/common/btrace-common.h                       |  90 ---
 gdb/config.in                                    |   3 +
 gdb/configure                                    | 498 +++++++++++++
 gdb/configure.ac                                 |  20 +
 gdb/doc/gdb.texinfo                              | 255 ++++++-
 gdb/features/btrace-conf.dtd                     |  14 +
 gdb/features/btrace.dtd                          |  16 +-
 gdb/gdbserver/Makefile.in                        |   8 +-
 gdb/gdbserver/linux-low.c                        | 147 +++-
 gdb/gdbserver/server.c                           | 214 +++++-
 gdb/gdbserver/target.h                           |  27 +-
 gdb/nat/linux-btrace.c                           | 722 ++++++++++++++----
 gdb/nat/linux-btrace.h                           |  86 ++-
 gdb/nat/x86-btrace.c                             | 129 ++++
 gdb/nat/x86-btrace.h                             | 224 ++++++
 gdb/record-btrace.c                              | 477 ++++++++++--
 gdb/remote.c                                     | 203 ++++-
 gdb/target-debug.h                               |   8 +
 gdb/target-delegates.c                           |  65 +-
 gdb/target.c                                     |  22 +-
 gdb/target.h                                     |  37 +-
 gdb/testsuite/gdb.btrace/buffer-size.exp         |  57 ++
 gdb/testsuite/gdb.btrace/delta.exp               |  12 +-
 gdb/testsuite/gdb.btrace/enable.exp              |   4 +-
 gdb/testsuite/gdb.btrace/finish.exp              |   3 +-
 gdb/testsuite/gdb.btrace/instruction_history.exp |   2 +-
 gdb/testsuite/gdb.btrace/next.exp                |   6 +-
 gdb/testsuite/gdb.btrace/nexti.exp               |   6 +-
 gdb/testsuite/gdb.btrace/nohist.exp              |   3 +-
 gdb/testsuite/gdb.btrace/step.exp                |   6 +-
 gdb/testsuite/gdb.btrace/stepi.exp               |   6 +-
 gdb/x86-linux-nat.c                              |  18 +-
 36 files changed, 3931 insertions(+), 507 deletions(-)
 delete mode 100644 gdb/common/btrace-common.h
 create mode 100644 gdb/features/btrace-conf.dtd
 create mode 100644 gdb/nat/x86-btrace.c
 create mode 100644 gdb/nat/x86-btrace.h
 create mode 100644 gdb/testsuite/gdb.btrace/buffer-size.exp

-- 
1.8.3.1

             reply	other threads:[~2014-11-20 10:47 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-20 10:47 Markus Metzger [this message]
2014-11-20 10:47 ` [PATCH v2 12/13] configure: check for libipt Markus Metzger
2014-11-20 10:47 ` [PATCH v2 11/13] record-btrace: indicate gaps Markus Metzger
2014-11-20 17:32   ` Metzger, Markus T
2014-11-20 17:36     ` Eli Zaretskii
2014-11-20 10:47 ` [PATCH v2 08/13] btrace: move and rename btrace-common Markus Metzger
2015-01-27 11:25   ` Pedro Alves
2015-01-28 17:58     ` Metzger, Markus T
2014-11-20 10:47 ` [PATCH v2 03/13] btrace, linux: add perf event buffer abstraction Markus Metzger
2015-01-27 15:31   ` Pedro Alves
2015-01-27 18:14     ` Metzger, Markus T
2015-01-27 18:15       ` Pedro Alves
2015-01-28 16:50         ` Metzger, Markus T
2014-11-20 10:47 ` [PATCH v2 05/13] record-btrace: add bts buffer size configuration option Markus Metzger
2014-11-20 16:25   ` Eli Zaretskii
2014-11-20 10:47 ` [PATCH v2 09/13] btrace: identify cpu Markus Metzger
2014-11-20 10:47 ` [PATCH v2 02/13] btrace: add format argument to supports_btrace Markus Metzger
2014-11-20 10:47 ` [PATCH v2 07/13] btrace: extend struct btrace_insn Markus Metzger
2014-11-20 10:47 ` [PATCH v2 04/13] record btrace: add configuration struct Markus Metzger
2014-11-20 10:47 ` [PATCH v2 10/13] btrace: use the new cpu identifier Markus Metzger
2014-11-20 10:47 ` [PATCH v2 13/13] [wip] btrace: support Intel(R) Processor Trace Markus Metzger
2014-11-20 16:32   ` Eli Zaretskii
2014-11-20 10:47 ` [PATCH v2 06/13] btrace: update btrace_compute_ftrace parameters Markus Metzger
2014-11-20 10:47 ` [PATCH v2 01/13] btrace: add struct btrace_data Markus Metzger
2015-01-27 11:29   ` Pedro Alves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1416480444-9943-1-git-send-email-markus.t.metzger@intel.com \
    --to=markus.t.metzger@intel.com \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).