From owner-freebsd-stable@FreeBSD.ORG Tue Nov 23 08:12:47 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 9C719106566B for ; Tue, 23 Nov 2010 08:12:47 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta02.westchester.pa.mail.comcast.net (qmta02.westchester.pa.mail.comcast.net [76.96.62.24]) by mx1.freebsd.org (Postfix) with ESMTP id 45D9D8FC0C for ; Tue, 23 Nov 2010 08:12:46 +0000 (UTC) Received: from omta15.westchester.pa.mail.comcast.net ([76.96.62.87]) by qmta02.westchester.pa.mail.comcast.net with comcast id aYBU1f0011swQuc52YCmVf; Tue, 23 Nov 2010 08:12:46 +0000 Received: from koitsu.dyndns.org ([98.248.41.155]) by omta15.westchester.pa.mail.comcast.net with comcast id aYCl1f0083LrwQ23bYCmWy; Tue, 23 Nov 2010 08:12:46 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 23D589B427; Tue, 23 Nov 2010 00:12:44 -0800 (PST) Date: Tue, 23 Nov 2010 00:12:44 -0800 From: Jeremy Chadwick To: freebsd-stable@freebsd.org Message-ID: <20101123081244.GA38354@icarus.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Subject: 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 08:12:47 -0000 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. > > On Tue, Nov 23, 2010 at 12:29 AM, Jeremy Chadwick > wrote: > > > On Mon, Nov 22, 2010 at 11:45:38PM -0600, Zhihao Yuan wrote: > > > ~> uname -a > > > FreeBSD compaq.yuetime 8.1-STABLE FreeBSD 8.1-STABLE #0: Thu Nov 18 > > 01:32:06 > > > CST > > > 2010 root@compaq.yuetime:/usr/obj/usr/src/sys/HOUKAGO amd64 > > > > > > I added the required options to the kernel config file: > > > > > > Code: > > > > > > options KDTRACE_FRAME > > > options KDTRACE_HOOKS > > > options DDB_CTF > > > > > > and compiled/installed the kernel WITH_CTF=1 successfully. > > > > > > sudo make buildkernel KERNCONF=HOUKAGO WITH_CTF=1 > > > sudo make installkernel KERNCONF=HOUKAGO WITH_CTF=1 > > > > > > The dtraceall is loaded, and dtrace -l works. But whenever I want to run > > a > > > dtrace command, I get something like: > > > > > > ~> sudo dtrace -lP syscall > > > dtrace: invalid probe specifier syscall: "/usr/lib/dtrace/psinfo.d", line > > > 37: syntax error near "uid_t" > > > > > > The error message looks like what you got when WITH_CTF=1 is not > > presented. > > > Any idea? > > > > I don't know if this will help, but I followed the procedure here: > > > > http://wiki.freebsd.org/DTrace > > > > Which worked fine. See this thread for verification that the above > > works correctly: > > > > http://lists.freebsd.org/pipermail/freebsd-fs/2010-October/009780.html > > > > -- > > | 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 | > > > > > > > -- > Zhihao Yuan > The best way to predict the future is to invent it. ----- End forwarded message ----- -- | 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 |