From owner-freebsd-stable@FreeBSD.ORG Wed Dec 1 22:30:40 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 C06CB106564A; Wed, 1 Dec 2010 22:30:40 +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 2694C8FC16; Wed, 1 Dec 2010 22:30:39 +0000 (UTC) Received: by wwf26 with SMTP id 26so3253215wwf.31 for ; Wed, 01 Dec 2010 14:30:39 -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:cc:content-type; bh=oQNXt+m/tJk//QkFzzAz5Tpc6SRxEd0KysO7YtE6lMo=; b=bE0eR46XAm7phq/Oqz2CIGmp+qh13wR0kDsd5tiGMVJPAfHC3GOjWrg57WVI1+7AM6 EfWmHJZshe5AG0zXPI8h2dHX/qtyrv6ogF4QmTeR3xJnWUxvWIHn/BWWCR3A/H8UiITI yRhRKm1k2jUL7zBl/kh7JValfNmbpav3rgzgI= 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=L7NOOLK/Yy/CbwalIrAi089tvjn+52gG2jK0gsP+jxAS6st5CR+6XqJWQqlNDWH8cJ +hPjgaplDidLvR/vvPAnGBM2y2WToTS9hnPPzpL9SE/1qHWmD/b/ECQs0J8PxJxqh4dM 96xdsVBTULSPieDFsgkcPLLAvBl1t82/It2Zc= MIME-Version: 1.0 Received: by 10.227.133.11 with SMTP id d11mr9885448wbt.173.1291242637135; Wed, 01 Dec 2010 14:30:37 -0800 (PST) Received: by 10.227.136.73 with HTTP; Wed, 1 Dec 2010 14:30:36 -0800 (PST) In-Reply-To: <4CEBC155.9090706@freebsd.org> References: <20101123081244.GA38354@icarus.home.lan> <20101123082046.GA62301@compaq.yuetime> <4CEBB613.5010009@freebsd.org> <20101123131353.GA7243@icarus.home.lan> <20101123132519.GA1426@icarus.home.lan> <4CEBC155.9090706@freebsd.org> Date: Wed, 1 Dec 2010 16:30:36 -0600 Message-ID: From: Zhihao Yuan To: Andriy Gapon Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-stable@freebsd.org, Jeremy Chadwick 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: Wed, 01 Dec 2010 22:30:40 -0000 OK. Let's make this more clear: anyone has a working 8-2-PRERELEASE kernel (amd64 is preferred) with Dtrace supports, which can run the scripts/commands on the wiki? If so, please post your kernel configurations here, thanks. On Tue, Nov 23, 2010 at 7:27 AM, Andriy Gapon wrote: > on 23/11/2010 15:25 Jeremy Chadwick said the following: > > 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). > > The same question. > > >> 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 */ > > > > > -- > Andriy Gapon > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- Zhihao Yuan The best way to predict the future is to invent it.