From owner-freebsd-dtrace@FreeBSD.ORG Wed Mar 12 04:56:57 2014 Return-Path: Delivered-To: freebsd-dtrace@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 44B6F1DD; Wed, 12 Mar 2014 04:56:57 +0000 (UTC) Received: from mail-ve0-x22b.google.com (mail-ve0-x22b.google.com [IPv6:2607:f8b0:400c:c01::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E093C15F; Wed, 12 Mar 2014 04:56:56 +0000 (UTC) Received: by mail-ve0-f171.google.com with SMTP id cz12so9591518veb.16 for ; Tue, 11 Mar 2014 21:56:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=rbV8+CmQ4gBikrwFsPpRnkY5LNsbTmsGlSGEHbK5LGE=; b=uCtk3ik/CjcLWuFwftbZeCji3SvvKpi/xHYE0M1efFlOnOHNZJTNOK3iEidWvCyPId oqvK30Uui9R2x/0NZng7bCKt5QBUHS8wpFTpvFW/FU+9/shkzlv4BiAiecdW89HgoQyG YfwYnkoohxDJ9zkPL3f2ATmvCzgpblKqCDrEpKY0mqTJPnXhJTFbbbbqhCU8HAGhEeFX KIgnTvL6TE6kEwwiT4NziUahmzN8TfWnPYbv8CaQGhya9aMQnafyYmXJo6fIUxQ/znlh YwAblSwPoSdZ49Yqp5JDLaxeIxqndBkwymVHxVYwNqF55lLTExV/IHma+P1HKT5COvcg BhLA== MIME-Version: 1.0 X-Received: by 10.220.109.1 with SMTP id h1mr30644970vcp.20.1394600216065; Tue, 11 Mar 2014 21:56:56 -0700 (PDT) Sender: markjdb@gmail.com Received: by 10.220.162.68 with HTTP; Tue, 11 Mar 2014 21:56:56 -0700 (PDT) In-Reply-To: <8848829A-0520-4602-9D8B-1260E0FD9A87@gsoft.com.au> References: <1394599542.80116.YahooMailBasic@web192602.mail.sg3.yahoo.com> <8848829A-0520-4602-9D8B-1260E0FD9A87@gsoft.com.au> Date: Wed, 12 Mar 2014 00:56:56 -0400 X-Google-Sender-Auth: PpO2Gt7Z3Vz03vE8A9yRGPkyfdw Message-ID: Subject: Re: dtracing static symbols From: Mark Johnston To: "Daniel O'Connor" Content-Type: text/plain; charset=ISO-8859-1 Cc: Robert Mustacchi , "freebsd-dtrace@freebsd.org" X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Mar 2014 04:56:57 -0000 On Wed, Mar 12, 2014 at 12:53 AM, Daniel O'Connor wrote: > > On 12 Mar 2014, at 15:22, Mark Johnston wrote: >> On Wed, Mar 12, 2014 at 12:50 AM, Daniel O'Connor wrote: >>> >>> On 12 Mar 2014, at 15:15, Prashanth Kumar wrote: >>>> If you run >>>> # env DTRACE_DEBUG=1 dtrace -Ppid\$target -l -c ./static >>>> you will notice that lot of probe creation will fail, also no probes are created for instruction offsets. >>>> you will have to update the libproc library and fasttrap code to trace all the >>>> functions. >>> >>> I don't really care about the function offsets, just static functions. >>> >>> Or are you suggesting updating libproc and the fasttrap code will allow that (as well as instruction offsets)? >> >> I'd suggest updating to 9-STABLE. There have been quite a few fixes to >> fasttrap and libproc since 9.2. > > OK, I'll give it a try. > > Have things change substantially in 10? Updating to that is probably going to be as easy (famous last words :) No, STABLE-9 and STABLE-10 should be more or less identical as far as userland DTrace is concerned. There are some extra changes on CURRENT, but I don't think they'd affect the behaviour you're seeing. -Mark