From owner-freebsd-stable@FreeBSD.ORG Tue Nov 23 06:09:12 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 3EAB3106564A for ; Tue, 23 Nov 2010 06:09:12 +0000 (UTC) (envelope-from lichray@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id CABE78FC08 for ; Tue, 23 Nov 2010 06:09:11 +0000 (UTC) Received: by wwd20 with SMTP id 20so7972867wwd.31 for ; Mon, 22 Nov 2010 22:09:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=awzwRP4Fd97f9tYpKx7F94K6FGhp71wIZE41VFzRGeE=; b=kozZ6XxYqYBWXi/u5SE7jFulr9DiqRLtvP/8zIJvhqlHtjQ9lD4bCrOlN4GieoiAL+ xXypAzpXRqP4pfUyUWxg6+FaL+Q5varEVqdD9nawt4V8LZrYGevshqIr0wb8w0lS22cs 3oQaWHtNTjleLQCZHvoGCISOyizdaUo4nUqns= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=k/lxwGm3eBuL6bji2rkOroQ4o7h/hS4mjRavMKHoHbRe1Ilo4Y3dHlu9PY2dUELxg7 AfWsc40T2Z2BmiOPq82YM8CgYwe6T7wYItR8nfuYn8CH6jhpvLnU7bTJMEn1f5VFRApm vtaWpCbNfQJZ/5tkm+CvViR3vraiD4o+fvJJ0= MIME-Version: 1.0 Received: by 10.227.141.205 with SMTP id n13mr2064168wbu.28.1290491138601; Mon, 22 Nov 2010 21:45:38 -0800 (PST) Received: by 10.227.136.73 with HTTP; Mon, 22 Nov 2010 21:45:38 -0800 (PST) Date: Mon, 22 Nov 2010 23:45:38 -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: 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:09:12 -0000 ~> 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.