From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 71790 invoked by alias); 1 Jul 2015 11:58:54 -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 71677 invoked by uid 89); 1 Jul 2015 11:58:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mga01.intel.com Received: from mga01.intel.com (HELO mga01.intel.com) (192.55.52.88) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 01 Jul 2015 11:58:49 +0000 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP; 01 Jul 2015 04:58:48 -0700 X-ExtLoop1: 1 Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga002.jf.intel.com with ESMTP; 01 Jul 2015 04:58:46 -0700 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 t61BwjiS020337; Wed, 1 Jul 2015 12:58:45 +0100 Received: from ulvlx001.iul.intel.com (localhost [127.0.0.1]) by ulvlx001.iul.intel.com with ESMTP id t61Bwj0V028929; Wed, 1 Jul 2015 13:58:45 +0200 Received: (from mmetzger@localhost) by ulvlx001.iul.intel.com with œ id t61BwjOo028925; Wed, 1 Jul 2015 13:58:45 +0200 From: Markus Metzger To: palves@redhat.com Cc: gdb-patches@sourceware.org Subject: [PATCH v2 0/5] Support Intel(R) Processor Trace Date: Wed, 01 Jul 2015 11:58:00 -0000 Message-Id: <1435751924-28655-1-git-send-email-markus.t.metzger@intel.com> X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg00010.txt.bz2 Changes to v1: - incorporated review feedback from Eli - incorporated review feedback from Pedro 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 Linux 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 | 47 ++ gdb/btrace.c | 1154 +++++++++++++++++++++++++++++++++++++++++- 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 | 5 +- gdb/features/btrace.dtd | 14 +- 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 | 166 +++++- gdb/remote.c | 65 ++- 18 files changed, 2905 insertions(+), 42 deletions(-) -- 1.8.3.1