From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30319 invoked by alias); 10 Oct 2014 17:18:03 -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 30294 invoked by uid 89); 10 Oct 2014 17:18:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,LIKELY_SPAM_BODY,RP_MATCHES_RCVD,SPF_PASS,UNPARSEABLE_RELAY autolearn=no version=3.3.2 X-HELO: aserp1040.oracle.com Received: from aserp1040.oracle.com (HELO aserp1040.oracle.com) (141.146.126.69) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 10 Oct 2014 17:17:59 +0000 Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s9AHHvk9029905 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 10 Oct 2014 17:17:57 GMT Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id s9AHHux9029420 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 10 Oct 2014 17:17:56 GMT Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id s9AHHt6c029377 for ; Fri, 10 Oct 2014 17:17:56 GMT Received: from termi.uk.oracle.com (/10.175.211.52) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 10 Oct 2014 10:17:55 -0700 From: "Jose E. Marchesi" To: gdb-patches@sourceware.org Subject: [PATCH V2 0/9] Add support for DTrace USDT probes to gdb Date: Fri, 10 Oct 2014 17:18:00 -0000 Message-Id: <1412961772-16249-1-git-send-email-jose.marchesi@oracle.com> X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00263.txt.bz2 [Changes in this version of the patch series: - ChangeLog entries are not included in the diffs. - Blank lines separating file blocks in ChangeLogs have been removed. - Varios formatting changes suggested/requested by Sergio and Eli. - Documentation fixes suggested by Eli. - Avoid implicit comparisons in conditionals. - probe.c:get_num_probes_with_pops function renamed to exists_probes_with_pops. - Some #defines have been replaced by enums. - Missing documentation comments for functions and enum entries added. - Code parsing probe linespecs factorized into a new function. - The gdbarch function dtrace_probe_argument has been renamed to dtrace_parse_probe_argument. - Other minor changes suggested in the mailing list.] This patch series introduces support in GDB for a new type of probe: DTrace USDT probes. The first three patches do some changes to the existing probe.[ch] code, fixing some minor problems associated to support several probe types, having several probes of different types defined in the same object and supporting the notion of enabling and disabling probes. The rest of the patches are the implementation of the new probe type, including target support for x86_64 targets, a testsuite and documentation. Tested on x86_64-*-linux-gnu. No visible regressions. Jose E. Marchesi (9): Adapt `info probes' to support printing probes of different types. Move `compute_probe_arg' and `compile_probe_arg' to probe.c New commands `enable probe' and `disable probe'. New gdbarch functions: dtrace_parse_probe_argument, dtrace_probe_is_enabled, dtrace_enable_probe, dtrace_disable_probe. New probe type: DTrace USDT probes. Support for DTrace USDT probes in x86_64 targets. Simple testsuite for DTrace USDT probes. Documentation for DTrace USDT probes. Announce the DTrace USDT probes support in NEWS. gdb/ChangeLog | 107 ++++ gdb/Makefile.in | 3 +- gdb/NEWS | 3 + gdb/amd64-linux-tdep.c | 158 ++++++ gdb/amd64-linux-tdep.h | 11 + gdb/breakpoint.c | 3 +- gdb/configure | 2 +- gdb/configure.ac | 2 +- gdb/doc/ChangeLog | 13 + gdb/doc/gdb.texinfo | 84 ++- gdb/dtrace-probe.c | 854 +++++++++++++++++++++++++++++++ gdb/gdbarch.c | 128 +++++ gdb/gdbarch.h | 36 ++ gdb/gdbarch.sh | 16 + gdb/probe.c | 327 +++++++++++- gdb/probe.h | 12 + gdb/stap-probe.c | 111 +--- gdb/testsuite/ChangeLog | 17 + gdb/testsuite/gdb.base/dtrace-probe.c | 38 ++ gdb/testsuite/gdb.base/dtrace-probe.d | 21 + gdb/testsuite/gdb.base/dtrace-probe.exp | 154 ++++++ gdb/testsuite/gdb.base/stap-probe.exp | 2 +- 22 files changed, 1947 insertions(+), 155 deletions(-) create mode 100644 gdb/dtrace-probe.c create mode 100644 gdb/testsuite/gdb.base/dtrace-probe.c create mode 100644 gdb/testsuite/gdb.base/dtrace-probe.d create mode 100644 gdb/testsuite/gdb.base/dtrace-probe.exp -- 1.7.10.4