From owner-freebsd-dtrace@FreeBSD.ORG Wed Mar 12 12:28:55 2014 Return-Path: Delivered-To: freebsd-dtrace@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7581889F; Wed, 12 Mar 2014 12:28:55 +0000 (UTC) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D6FA6391; Wed, 12 Mar 2014 12:28:54 +0000 (UTC) Received: from ur.dons.net.au (ppp118-210-56-74.lns20.adl2.internode.on.net [118.210.56.74]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id s2CCSZaX058259 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 12 Mar 2014 22:58:41 +1030 (CST) (envelope-from doconnor@gsoft.com.au) Subject: Re: dtracing static symbols Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Content-Type: multipart/signed; boundary="Apple-Mail=_62FEE2EA-B77D-4B2A-95AD-A26766E6C04A"; protocol="application/pgp-signature"; micalg=pgp-sha1 From: "Daniel O'Connor" In-Reply-To: Date: Wed, 12 Mar 2014 22:58:35 +1030 Message-Id: References: <1394599542.80116.YahooMailBasic@web192602.mail.sg3.yahoo.com> <8848829A-0520-4602-9D8B-1260E0FD9A87@gsoft.com.au> To: Mark Johnston X-Mailer: Apple Mail (2.1874) X-Spam-Score: 0.163 () BAYES_00,RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 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 12:28:55 -0000 --Apple-Mail=_62FEE2EA-B77D-4B2A-95AD-A26766E6C04A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 On 12 Mar 2014, at 15:26, Mark Johnston wrote: > On Wed, Mar 12, 2014 at 12:53 AM, Daniel O'Connor = wrote: >>=20 >> On 12 Mar 2014, at 15:22, Mark Johnston wrote: >>> On Wed, Mar 12, 2014 at 12:50 AM, Daniel O'Connor = wrote: >>>>=20 >>>> On 12 Mar 2014, at 15:15, Prashanth Kumar = wrote: >>>>> If you run >>>>> # env DTRACE_DEBUG=3D1 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. >>>>=20 >>>> I don't really care about the function offsets, just static = functions. >>>>=20 >>>> Or are you suggesting updating libproc and the fasttrap code will = allow that (as well as instruction offsets)? >>>=20 >>> I'd suggest updating to 9-STABLE. There have been quite a few fixes = to >>> fasttrap and libproc since 9.2. >>=20 >> OK, I'll give it a try. >>=20 >> Have things change substantially in 10? Updating to that is probably = going to be as easy (famous last words :) >=20 > 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. OK, I upgraded to r263061 and I can now see static variables, thanks! -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --Apple-Mail=_62FEE2EA-B77D-4B2A-95AD-A26766E6C04A Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iD8DBQFTIFLz5ZPcIHs/zowRAq3xAJ9LVk8/qpMAT7qUUsvVkUA59MOy5QCffv/3 tnHZndnP2Ka6DedcKYv2VgU= =jSRy -----END PGP SIGNATURE----- --Apple-Mail=_62FEE2EA-B77D-4B2A-95AD-A26766E6C04A--