From owner-freebsd-stable@FreeBSD.ORG Tue Nov 23 13:25:21 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93B33106564A for ; Tue, 23 Nov 2010 13:25:21 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta06.emeryville.ca.mail.comcast.net (qmta06.emeryville.ca.mail.comcast.net [76.96.30.56]) by mx1.freebsd.org (Postfix) with ESMTP id 771E68FC18 for ; Tue, 23 Nov 2010 13:25:21 +0000 (UTC) Received: from omta07.emeryville.ca.mail.comcast.net ([76.96.30.59]) by qmta06.emeryville.ca.mail.comcast.net with comcast id adNv1f0041GXsucA6dRMsU; Tue, 23 Nov 2010 13:25:21 +0000 Received: from koitsu.dyndns.org ([98.248.41.155]) by omta07.emeryville.ca.mail.comcast.net with comcast id adRK1f00G3LrwQ28UdRLc8; Tue, 23 Nov 2010 13:25:20 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 6226A9B427; Tue, 23 Nov 2010 05:25:19 -0800 (PST) Date: Tue, 23 Nov 2010 05:25:19 -0800 From: Jeremy Chadwick To: Andriy Gapon Message-ID: <20101123132519.GA1426@icarus.home.lan> References: <20101123081244.GA38354@icarus.home.lan> <20101123082046.GA62301@compaq.yuetime> <4CEBB613.5010009@freebsd.org> <20101123131353.GA7243@icarus.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101123131353.GA7243@icarus.home.lan> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-stable@freebsd.org Subject: Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Nov 2010 13:25:21 -0000 On Tue, Nov 23, 2010 at 05:13:53AM -0800, Jeremy Chadwick wrote: > On Tue, Nov 23, 2010 at 02:39:47PM +0200, Andriy Gapon wrote: > > on 23/11/2010 10:20 Zhihao Yuan said the following: > > > Attach my kernel configuration here, just in case. > > > > > > On 00:12 Tue 23 Nov, Jeremy Chadwick wrote: > > >> Forwarding back to the mailing list since the OP didn't CC it on his > > >> reply to me. > > >> > > >> ----- Forwarded message from Zhihao Yuan ----- > > >> > > >>> From: Zhihao Yuan > > >>> To: Jeremy Chadwick > > >>> Date: Tue, 23 Nov 2010 01:18:57 -0600 > > >>> Subject: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE > > >>> > > >>> I followed the instructions, but still can not run any D-scripts. All > > >>> scripts shows the error message that I just posted. > > > > Are the installed world and the installed kernel in sync? > > (Built from the same state of source code). > > FWIW, I can reproduce his problem when following the procedure outlined > in the Wiki. > > As a workaround I tried adding WITH_CTF=true to /etc/src.conf and > rebuilding + reinstalling world + reboot, to no avail. I'm rebuilding > the kernel now to see if that makes a difference after the above > workaround. Nope, no go. icarus# kldload dtraceall icarus# dtrace -lP syscall dtrace: invalid probe specifier syscall: "/usr/lib/dtrace/psinfo.d", line 37: syntax error near "uid_t" icarus# ls -l /boot/kernel/kernel -r-xr-xr-x 1 root wheel 7180261 Nov 23 05:16 /boot/kernel/kernel icarus# ls -l /usr/lib/dtrace total 32 -r--r--r-- 1 root wheel 8608 Nov 23 05:09 drti.o -r--r--r-- 1 root wheel 6910 Nov 23 05:09 errno.d -r--r--r-- 1 root wheel 3196 Nov 23 05:09 psinfo.d -r--r--r-- 1 root wheel 3597 Nov 23 05:09 regs_x86.d -r--r--r-- 1 root wheel 3121 Nov 23 05:09 signal.d -r--r--r-- 1 root wheel 2019 Nov 23 05:09 unistd.d icarus# vim /usr/lib/dtrace/psinfo.d ... 31 typedef struct psinfo { 32 int pr_nlwp; /* number of threads */ 33 pid_t pr_pid; /* unique process id */ 34 pid_t pr_ppid; /* process id of parent */ 35 pid_t pr_pgid; /* pid of process group leader */ 36 pid_t pr_sid; /* session id */ 37 uid_t pr_uid; /* real user id */ 38 uid_t pr_euid; /* effective user id */ 39 gid_t pr_gid; /* real group id */ 40 gid_t pr_egid; /* effective group id */ -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |