From owner-freebsd-current@FreeBSD.ORG Mon Oct 18 20:12:17 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12F73106566C for ; Mon, 18 Oct 2010 20:12:17 +0000 (UTC) (envelope-from leccine@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id A8B0C8FC12 for ; Mon, 18 Oct 2010 20:12:16 +0000 (UTC) Received: by ywh2 with SMTP id 2so745489ywh.13 for ; Mon, 18 Oct 2010 13:12:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=GUI7568nzkrCSKruj4gsrbGm/C6UJsbKx3ri8uJj6iI=; b=c1Ib1wjdGSLoqNhd+bQfTi6HdfpHOeiHq84QzSAwaiuKDK7WwnrflRvG0HGXhxitpN z1iqHH42J8OrRnMtZBVvh+7rBnv+8DZNuVVxSCsMxDTHvk9jFgX40ScoeFdqHBwXbhdc l4h3qt8ByvWkUCUt6JZ3U/9zq9oM7QUcIvjCo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Z9zK8k5rXDT0+LUoD1DuQT6cPfRiHVVdkUyQW0Jl6tCknffq01NPhtT3RLTYOxfdM/ +IVZixaVRs9L9ZsitOqP7a+7zbjfRMYfXJk5Zt6mM4SfZ+q/g0lS89TveKyfI5W+Emia pQ6TvcyrFkL0x1I7EcveBxKCgwOIZuKozVzbs= MIME-Version: 1.0 Received: by 10.42.192.202 with SMTP id dr10mr2845840icb.526.1287432735680; Mon, 18 Oct 2010 13:12:15 -0700 (PDT) Received: by 10.231.32.130 with HTTP; Mon, 18 Oct 2010 13:12:15 -0700 (PDT) In-Reply-To: References: Date: Mon, 18 Oct 2010 21:12:15 +0100 Message-ID: From: =?UTF-8?Q?Istv=C3=A1n?= To: Rui Paulo X-Mailman-Approved-At: Mon, 18 Oct 2010 20:24:02 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-current Subject: Re: DTrace bindings are missing in FreeBSD 9.0 - CURRENT for userland apps X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2010 20:12:17 -0000 Hey, how come it doesn't work? What are the necessary requirements for using dtrace on freebsd? Do you nee= d a library or something? Do you know why Ruby has no dtrace bindings on Freebsd? Thank you. Istvan On Mon, Oct 18, 2010 at 7:45 PM, Rui Paulo wrote: > > On 12 Oct 2010, at 23:40, Istv=C3=A1n wrote: > > > Hey, > > > > > > I am not 100% sure this is the right list to approach with this problem > but > > let's try this one. > > > > So I am trying to use dtrace on the previously mentioned system, I > followed > > the usual kernel rebuild process using the following wiki: > > > > http://wiki.freebsd.org/DTrace > > > > Dtrace works fine and I am able to trace the kernel.[1] > > > > > > My problem is: I can't trace any user land application including > PostgreSQL > > and Ruby. > > > > I added the following lines to the /etc/make.conf as it is written in t= he > > wiki: > > > > STRIP=3D > > CFLAGS+=3D-fno-omit-frame-pointer > > > > I compiled both of the softwares and trying to trace them but there are > no > > bindings in the dtrace -l ouput > > > > > > # dtrace -l | grep -i ruby > > > > i might have overlooked something important but not sure what. > > > > Any help is appreciated. Pls cc my email since i am not on this list. > > > > > > Thank you in advance. > > > > I. > > > > 1. > > > > [root@freebsd9 ~]# uname -a > > FreeBSD freebsd9 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Fri Oct 8 21:09:2= 0 > UTC > > 2010 root@freebsd9:/usr/obj/usr/src/sys/DTRACE amd64 > > [root@freebsd9 ~]# kldstat > > Id Refs Address Size Name > > 1 26 0xffffffff80100000 f49bb0 kernel > > 2 1 0xffffffff81212000 ad8 dtraceall.ko > > 3 1 0xffffffff81213000 4a59 profile.ko > > 4 11 0xffffffff81218000 3e2f opensolaris.ko > > 5 3 0xffffffff8121c000 3db0 cyclic.ko > > 6 9 0xffffffff81220000 13af4b dtrace.ko > > 7 1 0xffffffff8135b000 fce0 systrace.ko > > 8 1 0xffffffff8136b000 4128 sdt.ko > > 9 1 0xffffffff81370000 44b8 lockstat.ko > > 10 1 0xffffffff81375000 b94e fasttrap.ko > > 11 1 0xffffffff81381000 61ab fbt.ko > > 12 1 0xffffffff81388000 4a67 dtnfsclient.ko > > 13 1 0xffffffff8138d000 4118 dtmalloc.ko > > [root@freebsd9 ~]# > > > > [root@freebsd9 ~]# cat d.d > > vfs:namecache:enter:done > > { > > > > @distribution =3D quantize(strlen((string)arg1)); > > } > > [root@freebsd9 ~]# dtrace -s d.d > > dtrace: script 'd.d' matched 1 probe > > ^C > > > > > > value ------------- Distribution ------------- count > > 2 | 0 > > 4 |@@@@@@@ 1 > > 8 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 5 > > 16 | 0 > > > > > > > > The Ruby port doesn't have DTrace support, but the PostgreSQL port has a > DTrace option (only the latest postgresql port). > > Regards, > -- > Rui Paulo > > > --=20 the sun shines for all http://blog.l1x.me