From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27608 invoked by alias); 9 May 2013 01:01:30 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 27596 invoked by uid 89); 9 May 2013 01:01:29 -0000 X-Spam-SWARE-Status: No, score=-4.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.1 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 09 May 2013 01:01:27 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1UaFEb-00070X-7L from Yao_Qi@mentor.com ; Wed, 08 May 2013 18:01:25 -0700 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Wed, 8 May 2013 18:01:24 -0700 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.2.247.3; Wed, 8 May 2013 18:01:24 -0700 Message-ID: <518AF563.2070204@codesourcery.com> Date: Thu, 09 May 2013 01:01:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Suchakra Sharma CC: Simon Marchi , Subject: Re: Debugging agent library References: <1367868074.5194.19.camel@station15.dorsal.polymtl.ca> <5188AE42.50308@codesourcery.com> <5189B577.6070006@codesourcery.com> <1368042096.5194.41.camel@station15.dorsal.polymtl.ca> In-Reply-To: <1368042096.5194.41.camel@station15.dorsal.polymtl.ca> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-SW-Source: 2013-05/txt/msg00047.txt.bz2 On 05/09/2013 03:41 AM, Suchakra Sharma wrote: > Thanks for your detailed reply. We were able to rectify the issue. We > tried with a clean install of gdb and libdagent on another machine which > did not show any issue. The problem was probably because we tinkered > around the dagent code a bit before using it. All works well now. > Good. > Indeed, dynamic tracing with GDB is getting more awesome day by day > (this view is reinforced by some tests I ran in-house which really show > how powerful and fast it is) A you know LTTng/UST already has quite fast > static tracing features, so our main aim is to get dynamic tracing > infrastructure of GDB in LTTng/UST for fast dynamic user space tracing > in an elegant way. We are not 100% clear how it shall be achieved at > this moment but we are exploring all avenues for now. At first glance it > looked as if we could do it using this library coupled with GDB > (controlled through LTTng/UST acting as our tool). Your ideas are > welcome and we surely shall contribute once we get a good knack of how > to extend GDB's functionality for our use. GDB/GDBserver is able to control UST static tracepoint through agent, but UST is 0.11 and URCU is 0.5.3, which is a little bit old. In UST 0.12 release, the GDB support is removed unfortunately. Probably you can have a look at testsuite/gdb.trace/strace.exp to see how GDB/GDBserver interact with UST static tracepoints. -- Yao (齐尧)