From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32698 invoked by alias); 20 Nov 2014 10:47:42 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 32599 invoked by uid 89); 20 Nov 2014 10:47:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mga11.intel.com Received: from mga11.intel.com (HELO mga11.intel.com) (192.55.52.93) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 20 Nov 2014 10:47:40 +0000 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 20 Nov 2014 02:47:34 -0800 X-ExtLoop1: 1 Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga002.fm.intel.com with ESMTP; 20 Nov 2014 02:47:26 -0800 Received: from ulvlx001.iul.intel.com (ulvlx001.iul.intel.com [172.28.207.17]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id sAKAlPXf008471; Thu, 20 Nov 2014 10:47:25 GMT Received: from ulvlx001.iul.intel.com (localhost [127.0.0.1]) by ulvlx001.iul.intel.com with ESMTP id sAKAlOgM010214; Thu, 20 Nov 2014 11:47:24 +0100 Received: (from mmetzger@localhost) by ulvlx001.iul.intel.com with œ id sAKAlOB1010210; Thu, 20 Nov 2014 11:47:24 +0100 From: Markus Metzger 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 Message-Id: <1416480444-9943-1-git-send-email-markus.t.metzger@intel.com> X-IsSubscribed: yes X-SW-Source: 2014-11/txt/msg00470.txt.bz2 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