From owner-freebsd-stable@FreeBSD.ORG Tue Nov 23 06:04:37 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 1FC5B106566C for ; Tue, 23 Nov 2010 06:04:37 +0000 (UTC) (envelope-from lichray@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id A8B778FC1D for ; Tue, 23 Nov 2010 06:04:36 +0000 (UTC) Received: by wwc33 with SMTP id 33so416379wwc.1 for ; Mon, 22 Nov 2010 22:04:35 -0800 (PST) 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:content-type; bh=nflSPqgWOB71arjycKFVXRLE7i6y8bjDk+F2iWfY7PI=; b=QXeFVTkWhK7IOTvrHXWVM5ZGP2nOdOiRvzX/3H4YzBkjNNmQ7ulJQ88eRnSzCAcrin IQJoJXJkU6OF6k5dWBccxRGpO7zIxrKs1E6jeGX7sniOIV2PTCwBphRzAGw85uWd1GTy MFfOiL9XLgGDpBxhbgsnfwV/1OXEDlpuy8rWU= 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 :content-type; b=TSQokp7u9YyZPCQqQdOjNPcz+MUT1xHO08/VC/JteMSjCXSqWy07+eXsosSklWniDH YvIgLrW47BycNgV4N9xcO+ikaCIkl7Bvgw4v1uSQGvA5fSlMhYO4xPoRZ8lpVbuDOKuQ PPRZBuvaTR367tfY9m6npEez71FupDL834btU= MIME-Version: 1.0 Received: by 10.227.68.206 with SMTP id w14mr7028495wbi.144.1290492275225; Mon, 22 Nov 2010 22:04:35 -0800 (PST) Received: by 10.227.136.73 with HTTP; Mon, 22 Nov 2010 22:04:35 -0800 (PST) In-Reply-To: References: Date: Tue, 23 Nov 2010 00:04:35 -0600 Message-ID: From: Zhihao Yuan To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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 06:04:37 -0000 I just updated to the latest stable: ~> uname -a FreeBSD compaq.yuetime 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #1: Mon Nov 22 23:44:47 CST 2010 root@compaq.yuetime:/usr/obj/usr/src/sys/HOUKAGO amd64 OK, a little bit better: ~> sudo dtrace -lP syscall dtrace: invalid probe specifier syscall: "/usr/lib/dtrace/psinfo.d", line 88: failed to resolve type kernel`struct thread * for identifier curthread: Unknown type name -- which means the CTF does work, but fails to work perfectly. HELP.... On Mon, Nov 22, 2010 at 11:45 PM, 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? > > -- > Zhihao Yuan > The best way to predict the future is to invent it. > > -- Zhihao Yuan The best way to predict the future is to invent it.