public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v3 00/15] record btrace: prepare for a new trace format
@ 2015-01-29 16:28 Markus Metzger
  2015-01-29 16:29 ` [PATCH v3 05/15] record-btrace: add bts buffer size configuration option Markus Metzger
                   ` (15 more replies)
  0 siblings, 16 replies; 20+ messages in thread
From: Markus Metzger @ 2015-01-29 16:28 UTC (permalink / raw)
  To: palves; +Cc: gdb-patches

Changes to v2:

  - patch "btrace: use the new cpu identifier" has been squashed into
    patch "btrace: identify cpu".  Addressed Pedro's layering comments.

  - new patches to fix test fails for 32-bit inferiors reported by Jan
    "btrace: work around _dl_runtime_resolve returning to resolved function"
    "btrace: support 32-bit inferior on 64-bit host"
    "btrace: increase buffer size for exception test"

    I put them on top of this series since it was easier to fix
    "btrace: work around _dl_runtime_resolve returning to resolved function"
    after some prework in "btrace: extend struct btrace_insn" and others.

  - a trivial new standalone patch "btrace: less debug output"

  - fixed some bugs I found in "record-btrace: indicate gaps" that I ran
    into while investigating the above mentioned issues.

  - Addressed Pedro's feedback on v2.


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


And it fixes a few test fails with 32-bit inferiors reported by Jan Kratochvil.

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 functional
but not part of the review since the kernel changes are still under review.


Markus Metzger (15):
  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: identify cpu
  record-btrace: indicate gaps
  btrace: less debug output
  btrace: work around _dl_runtime_resolve returning to resolved function
  btrace: support 32-bit inferior on 64-bit host
  btrace: increase buffer size for exception test
  configure: check for libipt
  [wip] btrace: support Intel(R) Processor Trace

 gdb/Makefile.in                                  |  14 +-
 gdb/NEWS                                         |  35 +
 gdb/btrace.c                                     | 965 ++++++++++++++++++++---
 gdb/btrace.h                                     |  98 ++-
 gdb/common/btrace-common.c                       |  93 +++
 gdb/common/btrace-common.h                       | 138 +++-
 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                        | 149 +++-
 gdb/gdbserver/server.c                           | 212 ++++-
 gdb/gdbserver/target.h                           |  27 +-
 gdb/nat/linux-btrace.c                           | 783 +++++++++++++++---
 gdb/nat/linux-btrace.h                           |  84 +-
 gdb/record-btrace.c                              | 517 +++++++++++-
 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/exception.exp           |   2 +
 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                              |  26 +-
 36 files changed, 3962 insertions(+), 435 deletions(-)
 create mode 100644 gdb/common/btrace-common.c
 create mode 100644 gdb/features/btrace-conf.dtd
 create mode 100644 gdb/testsuite/gdb.btrace/buffer-size.exp

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2015-02-04  8:25 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-29 16:28 [PATCH v3 00/15] record btrace: prepare for a new trace format Markus Metzger
2015-01-29 16:29 ` [PATCH v3 05/15] record-btrace: add bts buffer size configuration option Markus Metzger
2015-01-29 16:29 ` [PATCH v3 08/15] btrace: identify cpu Markus Metzger
2015-01-29 16:29 ` [PATCH v3 12/15] btrace: support 32-bit inferior on 64-bit host Markus Metzger
2015-01-29 16:29 ` [PATCH v3 07/15] btrace: extend struct btrace_insn Markus Metzger
2015-01-29 16:29 ` [PATCH v3 13/15] btrace: increase buffer size for exception test Markus Metzger
2015-01-29 16:29 ` [PATCH v3 02/15] btrace: add format argument to supports_btrace Markus Metzger
2015-01-29 16:30 ` [PATCH v3 01/15] btrace: add struct btrace_data Markus Metzger
2015-01-29 16:30 ` [PATCH v3 06/15] btrace: update btrace_compute_ftrace parameters Markus Metzger
2015-01-29 16:30 ` [PATCH v3 14/15] configure: check for libipt Markus Metzger
2015-01-29 16:30 ` [PATCH v3 09/15] record-btrace: indicate gaps Markus Metzger
2015-01-29 16:33 ` [PATCH v3 11/15] btrace: work around _dl_runtime_resolve returning to resolved function Markus Metzger
2015-01-29 17:11 ` [PATCH v3 10/15] btrace: less debug output Markus Metzger
2015-01-29 17:11 ` [PATCH v3 03/15] btrace, linux: add perf event buffer abstraction Markus Metzger
2015-01-29 18:35 ` [PATCH v3 04/15] record btrace: add configuration struct Markus Metzger
2015-01-29 19:29   ` Eli Zaretskii
2015-01-29 19:28 ` [PATCH v3 15/15] [wip] btrace: support Intel(R) Processor Trace Markus Metzger
2015-01-29 19:28   ` Eli Zaretskii
2015-01-30 18:57     ` Metzger, Markus T
2015-02-04  8:25 ` [PATCH v3 00/15] record btrace: prepare for a new trace format Metzger, Markus T

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).