From owner-freebsd-stable@FreeBSD.ORG Sat Mar 29 17:25:37 2014 Return-Path: Delivered-To: freebsd-stable@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 B090484D; Sat, 29 Mar 2014 17:25:37 +0000 (UTC) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "tensor.andric.com", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6A8E1916; Sat, 29 Mar 2014 17:25:37 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::8878:6384:3237:cf3b] (unknown [IPv6:2001:7b8:3a7:0:8878:6384:3237:cf3b]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 3FD295C44; Sat, 29 Mar 2014 18:25:30 +0100 (CET) Content-Type: multipart/signed; boundary="Apple-Mail=_E1332C1C-B688-43CA-A706-6687AA86B0DA"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: HEADS UP: merged llvm/clang 3.4 From: Dimitry Andric In-Reply-To: <20140328225902.GA7417@soulhacker> Date: Sat, 29 Mar 2014 18:25:15 +0100 Message-Id: <16CDBEB1-3900-4EE4-B643-C95BA58F4C4E@FreeBSD.org> References: <0E7E81A1-54E9-4920-A360-005A1C0C4D47@FreeBSD.org> <20140327002240.GC49672@raichu> <20140328225902.GA7417@soulhacker> To: Kai Wang X-Mailer: Apple Mail (2.1874) Cc: Mark Johnston , freebsd-stable stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Mar 2014 17:25:37 -0000 --Apple-Mail=_E1332C1C-B688-43CA-A706-6687AA86B0DA Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 28 Mar 2014, at 23:59, Kai Wang wrote: > On Thu, Mar 27, 2014 at 11:03:11PM -0400, Mark Johnston wrote: >> On Thu, Mar 27, 2014 at 6:32 PM, Dimitry Andric wrote: >>> On 27 Mar 2014, at 01:22, Mark Johnston wrote: ... >>>> DTrace seems to no longer work properly on stable/10; I get errors like >>>> the following >>>> >>>> dtrace: invalid probe specifier pid$target::malloc:entry{ }: >>>> "/usr/lib/dtrace/io.d", line 49: cannot find type: struct devstat*: Type >>>> information is in parent and unavailable ... > I extracted a patch for ctfconvert from -head and adapted it to the > old libdwarf in stable/10. The patch fixes some type parsing bugs for > ctfconvert with Clang 3.4 objects, which might be related to your > DTrace issue, but I'm not sure... > > The patch is here: > > http://people.freebsd.org/~kaiw/ctfconvert-stable10.patch > > (It should apply to stable/10. Both world and kernel needs recompile) Thanks! I have merged this to stable/10, and (slightly modified) to stable/9, in r263915. I have verified that on both branches, simple dtrace commands like: dtrace -n 'syscall:::entry { @num[execname] = count(); }' work as expected. I assume DTrace will now work OK, but any other more extensive verification by somebody familiar with DTrace is welcome. Note that you *must* first build and install at least the CTF tools, before building a kernel, otherwise the broken versions from /usr/bin will still be used. This is actually a problem in our kernel build tools stage, but a solution for that is still missing. -Dimitry --Apple-Mail=_E1332C1C-B688-43CA-A706-6687AA86B0DA 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----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iEYEARECAAYFAlM3AggACgkQsF6jCi4glqOHVgCgpIZAP/MR2em9uecrikrhiua4 dUQAoJAe40vrGRfE7RtbklmPe8vbwYm8 =eBBL -----END PGP SIGNATURE----- --Apple-Mail=_E1332C1C-B688-43CA-A706-6687AA86B0DA--