From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1995 invoked by alias); 13 Feb 2017 12:38:14 -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 1959 invoked by uid 89); 13 Feb 2017 12:38:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.3 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=sk:btrace_, btrace.h, record-btrace.c, recordbtracec X-HELO: mga02.intel.com Received: from mga02.intel.com (HELO mga02.intel.com) (134.134.136.20) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 13 Feb 2017 12:38:11 +0000 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Feb 2017 04:38:10 -0800 X-ExtLoop1: 1 Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga001.fm.intel.com with ESMTP; 13 Feb 2017 04:38:08 -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 v1DCc8FU010223; Mon, 13 Feb 2017 12:38:08 GMT Received: from ulvlx001.iul.intel.com (localhost [127.0.0.1]) by ulvlx001.iul.intel.com with ESMTP id v1DCc7CF011572; Mon, 13 Feb 2017 13:38:07 +0100 Received: (from twiederh@localhost) by ulvlx001.iul.intel.com with œ id v1DCc7iI011568; Mon, 13 Feb 2017 13:38:07 +0100 From: Tim Wiederhake To: gdb-patches@sourceware.org Cc: markus.t.metzger@intel.com, palves@redhat.com, xdje42@gmail.com Subject: [PATCH v6 0/9] Python bindings for btrace recordings Date: Mon, 13 Feb 2017 12:38:00 -0000 Message-Id: <1486989450-11313-1-git-send-email-tim.wiederhake@intel.com> X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg00325.txt.bz2 Hello everyone! This patch series adds Python bindings for btrace recordings. V1 of this series can be found here: https://sourceware.org/ml/gdb-patches/2016-10/msg00733.html V2 of this series can be found here: https://sourceware.org/ml/gdb-patches/2016-11/msg00084.html V3 of this series can be found here: https://sourceware.org/ml/gdb-patches/2016-11/msg00605.html V4 of this series can be found here: https://sourceware.org/ml/gdb-patches/2017-01/msg00044.html V5 of this series can be found here: https://sourceware.org/ml/gdb-patches/2017-01/msg00616.html Changes from V5: - Skip gdb.python/py-record-full.exp if recording is not supported. - s/symbol/SAL/ in comment in py-record-btrace.c. - Replaced mem_fileopen by string_file in py-record-btrace.c. - Simplified btpy_list_count and added comment in py-record-btrace.c. - Removed unused variable in recpy_bt_goto (leftover from previous refactoring) in py-record-btrace.c. - Moved opening curly braces to new line in py-record-btrace.c. The documentation parts are already approved by Eli. Is this good to go? Tim Tim Wiederhake (9): btrace: Count gaps as one instruction explicitly. btrace: Export btrace_decode_error function. btrace: Use binary search to find instruction. Add record_start and record_stop functions. Add method to query current recording method to target_ops. python: Create Python bindings for record history. python: Implement btrace Python bindings for record history. python: Add tests for record Python bindings Add documentation for new record Python bindings. gdb/Makefile.in | 6 + gdb/NEWS | 4 + gdb/btrace.c | 170 +++-- gdb/btrace.h | 21 +- gdb/doc/python.texi | 245 ++++++ gdb/python/py-record-btrace.c | 1001 +++++++++++++++++++++++++ gdb/python/py-record-btrace.h | 49 ++ gdb/python/py-record-full.c | 39 + gdb/python/py-record-full.h | 31 + gdb/python/py-record.c | 275 +++++++ gdb/python/python-internal.h | 9 + gdb/python/python.c | 14 + gdb/record-btrace.c | 110 +-- gdb/record-full.c | 10 + gdb/record.c | 42 ++ gdb/record.h | 21 + gdb/target-debug.h | 2 + gdb/target-delegates.c | 33 + gdb/target.c | 8 + gdb/target.h | 8 + gdb/testsuite/gdb.python/py-record-btrace.c | 46 ++ gdb/testsuite/gdb.python/py-record-btrace.exp | 146 ++++ gdb/testsuite/gdb.python/py-record-full.c | 46 ++ gdb/testsuite/gdb.python/py-record-full.exp | 58 ++ 24 files changed, 2256 insertions(+), 138 deletions(-) create mode 100644 gdb/python/py-record-btrace.c create mode 100644 gdb/python/py-record-btrace.h create mode 100644 gdb/python/py-record-full.c create mode 100644 gdb/python/py-record-full.h create mode 100644 gdb/python/py-record.c create mode 100644 gdb/testsuite/gdb.python/py-record-btrace.c create mode 100644 gdb/testsuite/gdb.python/py-record-btrace.exp create mode 100644 gdb/testsuite/gdb.python/py-record-full.c create mode 100644 gdb/testsuite/gdb.python/py-record-full.exp -- 2.7.4