From owner-freebsd-dtrace@FreeBSD.ORG Wed Mar 12 04:52:27 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 39621174 for ; Wed, 12 Mar 2014 04:52:27 +0000 (UTC) Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0D23E142 for ; Wed, 12 Mar 2014 04:52:26 +0000 (UTC) Received: by mail-pa0-f53.google.com with SMTP id ld10so549915pab.12 for ; Tue, 11 Mar 2014 21:52:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=T9ybrsQYl3tjZv/5IQFpbNs3SibplBchMSqbWB/0XAQ=; b=MtnosHTYhD7lJtO/C+AqxAmEvUK6c9mIx8EM5yadIFp9tHi9j/Dmrdrwbz4WXSBwDU UZqxvyfAOPlGgfgP4izla3pBSC0HWEMbhYK/JEAY5SM7gk0OL5bgWcmd1JUSac71dowa F6rbVzIs8lTsbsgezpMjV+TrYiyBOi/pZyyFnazfrKatyKSHD4qzavaJEUBHBWp7qwTm 4td6dyoEDJIAoG+UztR7RYpProqbW8gCltskcHqgsanVN8UpDK16Dq25vJ5PPkHlKDiG t4JZXaNbXuMSXj6f6Ql6Kmf7ube/29qD+3jzPCaa0g5CzIfrkC7Eepclqppba+rDYQ0a joug== X-Gm-Message-State: ALoCoQnqIF7VCm2nOmzag+Jl+63Y7K0vy+cruYd4IXOto67akZHZxzEw324nrglY2/HY46QUnZmC X-Received: by 10.66.158.132 with SMTP id wu4mr2392869pab.66.1394599940369; Tue, 11 Mar 2014 21:52:20 -0700 (PDT) Received: from zanarkand.local (c-67-180-178-113.hsd1.ca.comcast.net. [67.180.178.113]) by mx.google.com with ESMTPSA id jd5sm2828955pbb.18.2014.03.11.21.52.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Mar 2014 21:52:19 -0700 (PDT) Message-ID: <531FE803.9030702@joyent.com> Date: Tue, 11 Mar 2014 21:52:19 -0700 From: Robert Mustacchi User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: freebsd-dtrace@freebsd.org Subject: Re: dtracing static symbols References: <1394599542.80116.YahooMailBasic@web192602.mail.sg3.yahoo.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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:52:27 -0000 On 3/11/14 21:50 , 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)? libdtrace uses libproc to iterate and find symbols and addresses to instrument, at least on illumos. Robert