From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 97438 invoked by alias); 10 May 2017 11:47:57 -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 97405 invoked by uid 89); 10 May 2017 11:47:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_1,GIT_PATCH_2,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=transfer X-HELO: mga05.intel.com Received: from mga05.intel.com (HELO mga05.intel.com) (192.55.52.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 10 May 2017 11:47:55 +0000 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP; 10 May 2017 04:47:56 -0700 X-ExtLoop1: 1 Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga002.jf.intel.com with ESMTP; 10 May 2017 04:47:55 -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 v4ABlsxS018117; Wed, 10 May 2017 12:47:54 +0100 Received: from ulvlx001.iul.intel.com (localhost [127.0.0.1]) by ulvlx001.iul.intel.com with ESMTP id v4ABls2o019848; Wed, 10 May 2017 13:47:54 +0200 Received: (from twiederh@localhost) by ulvlx001.iul.intel.com with œ id v4ABlrWo019844; Wed, 10 May 2017 13:47:54 +0200 From: Tim Wiederhake To: gdb-patches@sourceware.org Cc: markus.t.metzger@intel.com, simon.marchi@polymtl.ca Subject: [PATCH v4 00/12] btrace: Turn linked list of function call segments into vector Date: Wed, 10 May 2017 11:47:00 -0000 Message-Id: <1494416867-19612-1-git-send-email-tim.wiederhake@intel.com> X-IsSubscribed: yes X-SW-Source: 2017-05/txt/msg00252.txt.bz2 Hi all, this series removes the extra list of btrace function call segments in struct btrace_thread_info. To achieve this, the doubly linked list of function call segments in struct btrace_thread_info is replaced by a std::vector. V1 of this series can be found here: https://sourceware.org/ml/gdb-patches/2017-02/msg00482.html V2 of this series can be found here: https://sourceware.org/ml/gdb-patches/2017-05/msg00168.html V3 of this series can be found here: https://sourceware.org/ml/gdb-patches/2017-05/msg00202.html Patches #1, #2 and #7 were LGTM'd by Simon. Changes since V3: * Patch #4: Replaced int with bool. Added comment that btrace_function::number is 1-based. * Patch #5: Simplified btrace_insn_cmp. * Patch #6: Split line that had an assignment as a side effect. Added missing comment. * Patch #9: Fixed patch title. * Patch #10: Fixed patch title. Removed double assignment in ftrace_bridge_gaps. * Patch #11: Moved comment to patch #6. Replaced "for (const auto& foo: ..." with "for (const unsigned int foo: ...". * Patch #12: Added missing ChangeLog. Put "static" before "const". Changed comment of ftrace_find_call_by_number. Regards, Tim Tim Wiederhake (12): btrace: Use std::vector in struct btrace_thread_information. btrace: Transfer ownership of pointers. btrace: Add btinfo to instruction interator. btrace: Use function segment index in call iterator. btrace: Use function segment index in insn iterator. btrace: Remove constant arguments. btrace: Remove struct btrace_thread_info::{begin,end}. btrace: Replace struct btrace_function::up. btrace: Remove struct btrace_function::flow. btrace: Replace struct btrace_function::segment. btrace: Remove bfun_s vector. btrace: Store function segments as objects. gdb/btrace.c | 850 +++++++++++++++++++++--------------------- gdb/btrace.h | 64 ++-- gdb/python/py-record-btrace.c | 12 +- gdb/record-btrace.c | 30 +- 4 files changed, 465 insertions(+), 491 deletions(-) -- 2.7.4