From owner-freebsd-current@FreeBSD.ORG Tue Oct 19 09:53:21 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 D1858106566C; Tue, 19 Oct 2010 09:53:21 +0000 (UTC) (envelope-from leccine@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6A9638FC1B; Tue, 19 Oct 2010 09:53:21 +0000 (UTC) Received: by iwn36 with SMTP id 36so807052iwn.13 for ; Tue, 19 Oct 2010 02:53:20 -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=0hhBGFds0d2jtH+aOXGSTPFSMDzbfj+M09Ec33tTc6Y=; b=l5cmmx0NZSLtKL8ou0zvMk3HZTi40xWbPV5IBlIYSv6At92PEbD7HBL24lJyoCwQ6m cOHynmGkRNH1MV1y1C2SwA+UD/EE984vnOWYHRHcQYQJ4MBWq7BtOseM8Tk29eAaq8r5 nepFR+JL6bLqFEnavnRRwuijYFzqZRx0gEsP4= 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=KItUVVAAHaPUk32OcsojouJz/vfV4zjjAouE2DI5lTo/AK3Jak9l7ijNM4rAJoKlCm JpStHjyqSnnwcvepwQdLTSFPVMdf+BCKiS7qGgPqCw1blO03bX4pByLeSrWZmRQj/tZk u8gU3xuhS7oXr62t67f1unF68o+0FmlEaOyE8= MIME-Version: 1.0 Received: by 10.231.147.131 with SMTP id l3mr4482001ibv.74.1287482000386; Tue, 19 Oct 2010 02:53:20 -0700 (PDT) Received: by 10.231.32.130 with HTTP; Tue, 19 Oct 2010 02:53:20 -0700 (PDT) In-Reply-To: <28FFE6A7-0ECD-4454-9364-DC555327678E@freebsd.org> References: <7EC03A5E-61DA-46AB-95E1-1D844E10C735@FreeBSD.org> <0B32E6BF-8CFE-4BC3-AFC8-EA77B1B5E8D7@freebsd.org> <28FFE6A7-0ECD-4454-9364-DC555327678E@freebsd.org> Date: Tue, 19 Oct 2010 10:53:20 +0100 Message-ID: From: =?UTF-8?Q?Istv=C3=A1n?= To: Rui Paulo X-Mailman-Approved-At: Tue, 19 Oct 2010 11:01:46 +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 , Garrett Cooper 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: Tue, 19 Oct 2010 09:53:21 -0000 On Tue, Oct 19, 2010 at 10:33 AM, Rui Paulo wrote: > > On 19 Oct 2010, at 10:15, Istv=C3=A1n wrote: > > > wow, you go the point after couple of emails. better later than never, > huh :) > > You sure are an amusing guy. Rude, but amusing :-) > > thanks! > > > > you think adding pgsql to wheel might help? cc freebsd-security@ and se= e > their opinion about the topic. > > dof needs to inject the probes in /dev/dtrace/helper, so the user needs r= w > access to the /dev/dtrace/helper. I specifically added write access to th= e > wheel group for this. > > and you think the only way to do that is to add pgsql to wheel group?!? http://images.memegenerator.net/Troll-Face/ImageMacro/2337177/LOL-U-MAD-BRO= .jpg > > > > i modified the permission of /dev/dtrace/helper instead but it gives th= e > following error still: > > > > dtrace DOF postgres: DTrace ioctl failed for DOF at 0x801c35000: Invali= d > argument > > This error usually means that there were no probes found in dof section o= f > the binary. Somehow they were not inserted correctly during the build sta= ge. > you see, we are slowly getting there :) > > > do you mean /usr/ports/databases/postgresql90-server? > > Yes. > > > > > I was rebuilding it with that switch, what now? > > Send me the build log, gzipped. > yes sir yes! (and you are talking about ppl being rude) what file do you need and which directory ___excatly___ btw. it would be beneficial for you as the DTrace maintainer of FreeBSD to have your own environment and prove me that I am wrong since you are happil= y tracing on your own box, it is just the lame user who is not able to do tha= t :) your own words: "Tracing and instrumenting userland programs is very important because it allows the understanding of what's going on, especially on highly complex systems such as databases, web servers, and language interpreters. Since DTrace on FreeBSD now has the ability to instrument both the kernel and the userland program, you can get very meaningful data on how your program is behaving and why." So instead of fixing my problem on my box, fix it for everybody and update the wiki with the process if you have a chance. As of now, I consider FreeBSD as a non-supported platform for DTrace since I spent almost 2 days to get it working without success and it is definitely less effort to spin up a (Open)Solaris instance to debug performance issue. Let me know if you get it working in the future. thank you in advance. --=20 the sun shines for all http://blog.l1x.me