From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 88835 invoked by alias); 4 Nov 2016 07:55: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 88792 invoked by uid 89); 4 Nov 2016 07:55:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=2107, Variable, rebased, ch X-HELO: mga14.intel.com Received: from mga14.intel.com (HELO mga14.intel.com) (192.55.52.115) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 04 Nov 2016 07:55:13 +0000 Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP; 04 Nov 2016 00:55:11 -0700 X-ExtLoop1: 1 Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga004.jf.intel.com with ESMTP; 04 Nov 2016 00:55:10 -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 uA47t9O7011370; Fri, 4 Nov 2016 07:55:09 GMT Received: from ulvlx001.iul.intel.com (localhost [127.0.0.1]) by ulvlx001.iul.intel.com with ESMTP id uA47t9Aw014808; Fri, 4 Nov 2016 08:55:09 +0100 Received: (from twiederh@localhost) by ulvlx001.iul.intel.com with œ id uA47t8vC014805; Fri, 4 Nov 2016 08:55:09 +0100 From: Tim Wiederhake To: gdb-patches@sourceware.org Cc: palves@redhat.com, markus.t.metzger@intel.com Subject: [PATCH v2 0/8] Python bindings for btrace recordings Date: Fri, 04 Nov 2016 07:55:00 -0000 Message-Id: <1478246074-14526-1-git-send-email-tim.wiederhake@intel.com> X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg00084.txt.bz2 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 Thanks to Eli and Simon for reviewing. Issues in V1 and changes in V2: - Rebased on current master - Patch 3: - struct btrace_thread_info is memset to zero in some places. The VEC member therefore can't be replaced by a std::vector at the moment. - The linked list in struct btrace_function will go away in a follow up patch series mentioned in Patch 3 "btrace: Use binary search to find instruction". - Patch 4: - New patch to remove logic from gdbpy_start_recording. - Patch 5 (was 4): - Commit message is now in present tense. - Fixed typo: Function is gone. - Variable in gdbpy_start_recording is now const. - gdbpy_start_recording is now recording method agnostic. - Python in target.{c,h}: I see no way around that. Ideas welcome. See https://sourceware.org/ml/gdb-patches/2016-10/msg00803.html - Patch 7 (was 6): - Un-duplicated test name - Renamed py-record.{c,exp} -> py-record-btrace.{c,exp} - Patch 8 (was 7): - Added references to process recording chapter. - gdb.start_recording () now takes two arguments. - Set brackets in roman typeface in documentation. - Made it more clear that parameters to gdb.start_recording are strings. Tim Wiederhake (8): btrace: Count gaps as one instruction explicitly. btrace: Export btrace_decode_error function. btrace: Use binary search to find instruction. Add record_start function. 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 instruction record Python bindings. gdb/Makefile.in | 12 + gdb/NEWS | 4 + gdb/btrace.c | 163 +++-- gdb/btrace.h | 21 +- gdb/doc/python.texi | 237 ++++++ gdb/python/py-btrace.c | 996 ++++++++++++++++++++++++++ gdb/python/py-btrace.h | 32 + gdb/python/py-record.c | 258 +++++++ gdb/python/py-record.h | 57 ++ gdb/python/python-internal.h | 7 + gdb/python/python.c | 14 + gdb/record-btrace.c | 131 ++-- gdb/record-full.c | 20 + gdb/record.c | 28 + gdb/record.h | 5 + gdb/target-debug.h | 2 + gdb/target-delegates.c | 33 + gdb/target.c | 7 + gdb/target.h | 10 + gdb/testsuite/gdb.python/py-record-btrace.c | 48 ++ gdb/testsuite/gdb.python/py-record-btrace.exp | 160 +++++ 21 files changed, 2107 insertions(+), 138 deletions(-) create mode 100644 gdb/python/py-btrace.c create mode 100644 gdb/python/py-btrace.h create mode 100644 gdb/python/py-record.c create mode 100644 gdb/python/py-record.h create mode 100644 gdb/testsuite/gdb.python/py-record-btrace.c create mode 100644 gdb/testsuite/gdb.python/py-record-btrace.exp -- 2.7.4