Date: Sat, 29 Mar 2014 18:25:15 +0100 From: Dimitry Andric <dim@FreeBSD.org> To: Kai Wang <kaiw@FreeBSD.org> Cc: Mark Johnston <markj@FreeBSD.org>, freebsd-stable stable <freebsd-stable@FreeBSD.org> Subject: Re: HEADS UP: merged llvm/clang 3.4 Message-ID: <16CDBEB1-3900-4EE4-B643-C95BA58F4C4E@FreeBSD.org> In-Reply-To: <20140328225902.GA7417@soulhacker> References: <0E7E81A1-54E9-4920-A360-005A1C0C4D47@FreeBSD.org> <20140327002240.GC49672@raichu> <C0345D09-CC49-49F6-ACCA-B85C7882AAC3@FreeBSD.org> <CAMw1wOxgwC47sj_rDvzys7_xb8%2BYRz=kdMq9dj=Z=WchypmU5Q@mail.gmail.com> <20140328225902.GA7417@soulhacker>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On 28 Mar 2014, at 23:59, Kai Wang <kaiw@FreeBSD.org> 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 <dim@freebsd.org> wrote:
>>> On 27 Mar 2014, at 01:22, Mark Johnston <markj@freebsd.org> 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
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
iEYEARECAAYFAlM3AggACgkQsF6jCi4glqOHVgCgpIZAP/MR2em9uecrikrhiua4
dUQAoJAe40vrGRfE7RtbklmPe8vbwYm8
=eBBL
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?16CDBEB1-3900-4EE4-B643-C95BA58F4C4E>
