From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11047 invoked by alias); 29 May 2019 08:48:24 -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 10864 invoked by uid 89); 29 May 2019 08:48:15 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.9 required=5.0 tests=BAYES_00,GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=H*r:LOCAL X-HELO: mga17.intel.com Received: from mga17.intel.com (HELO mga17.intel.com) (192.55.52.151) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 29 May 2019 08:48:13 +0000 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 May 2019 01:48:11 -0700 Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga002.fm.intel.com with ESMTP; 29 May 2019 01:48:11 -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 x4T8mA96007646; Wed, 29 May 2019 09:48:10 +0100 Received: from ulvlx001.iul.intel.com (localhost [127.0.0.1]) by ulvlx001.iul.intel.com with ESMTP id x4T8mA9P030763; Wed, 29 May 2019 10:48:10 +0200 Received: (from fwillger@localhost) by ulvlx001.iul.intel.com with LOCAL id x4T8mArC030759; Wed, 29 May 2019 10:48:10 +0200 From: felix.willgerodt@intel.com To: gdb-patches@sourceware.org Cc: markus.t.metzger@intel.com, Felix Willgerodt Subject: [PATCH 00/10] Extensions for PTWRITE Date: Wed, 29 May 2019 08:48:00 -0000 Message-Id: <1559119673-30516-1-git-send-email-felix.willgerodt@intel.com> X-IsSubscribed: yes X-SW-Source: 2019-05/txt/msg00616.txt.bz2 From: Felix Willgerodt Hi all, this is a set of patches extending the GDB record functionality for the new x86 instruction PTWRITE. PTWRITE allows the user to write any value into the Intel Processor Trace. This patch series enables the user to access, store and display these values in GDB/Python. Regards, Felix Felix Willgerodt (10): btrace: Introduce auxiliary instructions. btrace: Enable auxiliary instructions in record instruction-history. btrace: Enable auxiliary instructions in record function-call-history. btrace: Handle stepping and goto for auxiliary instructions. python: Introduce gdb.RecordAuxiliary class. python: Add clear_trace() to gdb.Record. btrace, linux: Enable ptwrite packets. btrace, python: Enable ptwrite listener registration. btrace, python: Enable calling the ptwrite listener. btrace: Extend event decoding for ptwrite. gdb/NEWS | 6 + gdb/btrace.c | 52 ++ gdb/btrace.h | 42 +- gdb/data-directory/Makefile.in | 1 + gdb/doc/gdb.texinfo | 8 +- gdb/doc/python.texi | 129 +++++ gdb/extension-priv.h | 4 + gdb/extension.c | 24 + gdb/extension.h | 3 + gdb/guile/guile.c | 1 + gdb/nat/linux-btrace.c | 32 ++ gdb/python/lib/gdb/ptwrite.py | 83 +++ gdb/python/py-record-btrace.c | 138 ++++- gdb/python/py-record-btrace.h | 6 + gdb/python/py-record.c | 118 ++++- gdb/python/py-record.h | 3 + gdb/python/python-internal.h | 3 + gdb/python/python.c | 2 + gdb/record-btrace.c | 83 ++- gdb/record.c | 5 + gdb/record.h | 5 +- gdb/testsuite/gdb.btrace/ptwrite.c | 40 ++ gdb/testsuite/gdb.btrace/ptwrite.exp | 212 ++++++++ gdb/testsuite/gdb.btrace/x86_64-ptwrite.S | 479 ++++++++++++++++++ gdb/testsuite/gdb.python/py-record-btrace.exp | 6 +- gdb/testsuite/lib/gdb.exp | 92 ++++ 26 files changed, 1552 insertions(+), 25 deletions(-) create mode 100644 gdb/python/lib/gdb/ptwrite.py create mode 100644 gdb/testsuite/gdb.btrace/ptwrite.c create mode 100644 gdb/testsuite/gdb.btrace/ptwrite.exp create mode 100644 gdb/testsuite/gdb.btrace/x86_64-ptwrite.S -- 2.20.1