From owner-freebsd-current@FreeBSD.ORG Wed Oct 15 09:36:09 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4122D1065691 for ; Wed, 15 Oct 2008 09:36:09 +0000 (UTC) (envelope-from simias.n@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by mx1.freebsd.org (Postfix) with ESMTP id C4BEE8FC22 for ; Wed, 15 Oct 2008 09:36:08 +0000 (UTC) (envelope-from simias.n@gmail.com) Received: by nf-out-0910.google.com with SMTP id h3so1297675nfh.33 for ; Wed, 15 Oct 2008 02:36:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=Y5BqXT+aNA6sHM5oGiboanJI/Q9iAB3i7aox2yg+Fkc=; b=pdQ5Qqo9JAOLK1m10PAb6ZdeJKSs1Utqci/+A1FQlfEVa97hfvltKISJ3zPxXfgVjn Kptx7QPz4HYv3ZLzsl80IVa/ouIg1zYexcWrENhydOiAhvjtMNXPsAbL9Bivc53tU37c YdXVb62IXvGQnRe8rIGCZpmnb3UUs2GxYRAkA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=oFRY2cCpyrr53PYXhKnFi7qu3q/ezaR6Ag22LLIoxdYgACxVnNX+p6BXFs1N2AG0A3 bFpp+pQ/b8j1JJrL8E0YnR7Kh3vXOVpqlE0+LWxeWshGqhwzb4zVj8bvz/W4AobP1Z39 2+ihLnAteqYQq3xNol5CgKSM9K8s9rM5su5/o= Received: by 10.103.224.17 with SMTP id b17mr387209mur.16.1224061504698; Wed, 15 Oct 2008 02:05:04 -0700 (PDT) Received: from localhost (mol92-6-82-240-252-219.fbx.proxad.net [82.240.252.219]) by mx.google.com with ESMTPS id w5sm34024385mue.10.2008.10.15.02.05.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 15 Oct 2008 02:05:03 -0700 (PDT) Date: Wed, 15 Oct 2008 11:04:53 +0200 From: Lionel Flandrin To: freebsd-current@freebsd.org Message-ID: <20081015090453.GA1995@casibsd.elexo.fr.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Subject: DTrace complains about struct thread X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2008 09:36:09 -0000 I tried to play with DTrace on a fresh FreeBSD 7.1, so I followed the steps described here: http://www.freebsd.org/doc/en/books/handbook/book.html#DTRACE I added these options to my kernel config: ,---- | options KDTRACE_HOOKS | options DDB_CTF | options KDTRACE_FRAME `---- And rebuilt everything with "WITH_CTF=1" (http://www.freebsd.org/doc/en/books/handbook/book.html#DTRACE-ENABLE says make *WITH_CTF*=1 buildworld and then make *WITH_CFT* afterwards, is it a typo? If not I think it should be more explicit because it really looks like one). I restarted the computer, kldloaded the dtraceall module and dtrace -l seems to work right: ,---- | # dtrace -l | wc -l | 25825 `---- However, whenever I try to trace something, I get: ,---- | # dtrace -n 'proc:::exec-success { trace(curpsinfo->pr_psargs); }' | dtrace: invalid probe specifier proc:::exec-success { | trace(curpsinfo->pr_psargs); }: | "/usr/lib/dtrace/psinfo.d", line 88: | failed to resolve type kernel`struct thread * for identifier | curthread: Unknown type name `---- Same message with ./hotkernel from the DTraceToolkit and everything else I've tried: ,---- | "/usr/lib/dtrace/psinfo.d", line 88: failed to resolve type | kernel`struct thread * for identifier curthread: Unknown type name `---- line 88 of /usr/lib/dtrace/psinfo.d is: ,---- | inline psinfo_t *curpsinfo = xlate (curthread->td_proc); `---- ,---- | # uname -a | FreeBSD casibsd 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Tue Oct 14 | 11:40:44 CEST 2008 root@casibsd:/usr/obj/usr/src/sys/CASIBSD_CONF | amd64 `---- What am I doing wrong? -- Lionel Flandrin