From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by sourceware.org (Postfix) with ESMTPS id F1BE53986831 for ; Wed, 16 Jun 2021 07:46:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org F1BE53986831 IronPort-SDR: Zv2EqTfFhNIc3miUlk92PuzHGApiaV16NvTGnkBb8TGz9+JEH2T2FLA/kKWrUb8HzqAtLXt79F Ve4FkID5AZzA== X-IronPort-AV: E=McAfee;i="6200,9189,10016"; a="206090721" X-IronPort-AV: E=Sophos;i="5.83,277,1616482800"; d="scan'208";a="206090721" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2021 00:46:02 -0700 IronPort-SDR: MTXSaCe5Ov49O4SdjjfJZga1SR4VO6mhmZlTNRZdz3mQTpnzseskCABjZMzVOyciRP1bblmwoM 5kIKtwo/952w== X-IronPort-AV: E=Sophos;i="5.83,277,1616482800"; d="scan'208";a="471931728" Received: from mulvlfelix.iul.intel.com (HELO localhost) ([172.28.48.31]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2021 00:46:01 -0700 From: Felix Willgerodt To: markus.t.metzger@intel.com, gdb-patches@sourceware.org Subject: [PATCH v3 00/12] Extensions for PTWRITE Date: Wed, 16 Jun 2021 09:41:53 +0200 Message-Id: <20210616074205.1129553-1-felix.willgerodt@intel.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jun 2021 07:46:09 -0000 V1 can be found here: https://sourceware.org/pipermail/gdb-patches/2019-May/157933.html V2 can be found here: https://sourceware.org/pipermail/gdb-patches/2021-June/179908.html Patch 1 was already approved, and so was all of the documentation apart from Patch 12. Changes compared to v2: * Fixed Lancelot's comments on ptwrite.py in patch 9. * Addressed Eli's comments on python.texi in patch 12. Regards, Felix Felix Willgerodt (12): 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() to gdb.Record. btrace, gdbserver: Add ptwrite to btrace_config_pt. btrace, linux: Enable ptwrite packets. btrace, python: Enable ptwrite listener registration. btrace, python: Enable calling the ptwrite listener. gdb, testsuite, lib: Add libipt version check. btrace: Extend ptwrite event decoding. gdb/NEWS | 6 + gdb/btrace.c | 64 ++- gdb/btrace.h | 41 +- gdb/data-directory/Makefile.in | 1 + gdb/disasm.h | 1 + gdb/doc/gdb.texinfo | 33 +- gdb/doc/python.texi | 152 ++++++ gdb/extension-priv.h | 4 + gdb/extension.c | 21 + gdb/extension.h | 3 + gdb/features/btrace-conf.dtd | 1 + gdb/guile/guile.c | 1 + gdb/nat/linux-btrace.c | 29 ++ gdb/python/lib/gdb/ptwrite.py | 84 +++ gdb/python/py-record-btrace.c | 180 ++++++- gdb/python/py-record-btrace.h | 14 + gdb/python/py-record.c | 89 +++- gdb/python/py-record.h | 3 + gdb/python/python-internal.h | 3 + gdb/python/python.c | 2 + gdb/record-btrace.c | 105 +++- gdb/record.c | 10 + gdb/record.h | 5 +- gdb/remote.c | 30 ++ gdb/testsuite/gdb.btrace/ptwrite.c | 39 ++ gdb/testsuite/gdb.btrace/ptwrite.exp | 194 +++++++ gdb/testsuite/gdb.btrace/x86_64-ptwrite.S | 479 ++++++++++++++++++ gdb/testsuite/gdb.python/py-record-btrace.exp | 6 +- gdb/testsuite/lib/gdb.exp | 151 +++++- gdbserver/linux-low.cc | 1 + gdbserver/server.cc | 16 + gdbsupport/btrace-common.h | 6 + 32 files changed, 1733 insertions(+), 41 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.25.4 Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928