From owner-freebsd-stable@FreeBSD.ORG Thu Dec 2 02:13:11 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 61E8A1065679; Thu, 2 Dec 2010 02:13:11 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id B62818FC1F; Thu, 2 Dec 2010 02:13:10 +0000 (UTC) Received: by fxm16 with SMTP id 16so5700681fxm.13 for ; Wed, 01 Dec 2010 18:13:09 -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 :content-transfer-encoding; bh=tB2NrpYc0lAeDSaekHCrnaQq3clw+G8Ef9BtT31LVS4=; b=tGVWFdqxHFZ/kV+ux2Xti1LjIda9ifSy3Uvg5oH6OsIUV10zKec9Wd053jznv8QLXb 3xWm/Vy8BQa/nHPcg2EW9XyR1B14xmo2HDck7AgiudUcBqTUMEbR1o7HzBqhAqntpdjc uiG0PM5D9K3a5Jse0c13/MsOhCYrucknlxqoU= 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:content-transfer-encoding; b=WoCFvMWWdJ/PHtJDXs7xjS+OLGEzUQ7u81XttwPfCaQsU1Cx4MWp6Jsj/rXoOPWtnW zcAj/Rcc7IX5bIMsFJuqcV4PVsJZYRKnoeFBotcyxU7h+S8/Q16cCeuVlwOn7akDWMbB byLA3ToCgFO3Qv7xqAlJJqkQ9hVkt7Mp2ry20= MIME-Version: 1.0 Received: by 10.223.126.5 with SMTP id a5mr8997951fas.47.1291254457138; Wed, 01 Dec 2010 17:47:37 -0800 (PST) Received: by 10.223.93.203 with HTTP; Wed, 1 Dec 2010 17:47:37 -0800 (PST) In-Reply-To: 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> <20101202002734.GA84177@icarus.home.lan> Date: Wed, 1 Dec 2010 17:47:37 -0800 Message-ID: From: Navdeep Parhar To: Zhihao Yuan Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Brandon Gooch , freebsd-stable@freebsd.org, Jeremy Chadwick , Andriy Gapon 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: Thu, 02 Dec 2010 02:13:11 -0000 On Wed, Dec 1, 2010 at 5:37 PM, Zhihao Yuan wrote: > I guess such an error has nothing to do with the difference between > compilers... I assumed that you used similar KERNCONF on your two systems= . > So, a hypothesis is: Dtrace does not work correctly on amd64. It works just fine for me. I built my amd64 kernel a week or so back with this KERNCONF: include GENERIC ident DWARF options KDTRACE_FRAME options KDTRACE_HOOKS options KDB options DDB options DDB_CTF Can you check with ctfdump if you objects actually have CTF information in them? Something like this: # ctfdump -S /boot/kernel/kernel .... # ctfdump /boot/kernel/kernel | grep ... Regards, Navdeep > > On Wed, Dec 1, 2010 at 6:37 PM, Brandon Gooch > wrote: > >> On Wed, Dec 1, 2010 at 6:27 PM, Jeremy Chadwick >> wrote: >> > On Wed, Dec 01, 2010 at 06:22:40PM -0600, Brandon Gooch wrote: >> >> On Wed, Dec 1, 2010 at 4:30 PM, Zhihao Yuan wrote= : >> >> > 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. >> >> >> >> I have an i386 system working: >> >> [snip] >> > >> > Can you please try the command the OP originally provided? =A0See comm= and >> > here: >> > >> > >> http://lists.freebsd.org/pipermail/freebsd-stable/2010-November/060216.h= tml >> >> d820# dtrace -lP syscall | head >> =A0 ID =A0 PROVIDER =A0 =A0 =A0 =A0 =A0 =A0MODULE =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0FUNCTION NAME >> =A0 17 =A0 =A0syscall =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 syscall entry >> =A0 18 =A0 =A0syscall =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 syscall return >> =A0 19 =A0 =A0syscall =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0exit entry >> =A0 20 =A0 =A0syscall =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0exit return >> =A0 21 =A0 =A0syscall =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0fork entry >> =A0 22 =A0 =A0syscall =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0fork return >> =A0 23 =A0 =A0syscall =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0read entry >> =A0 24 =A0 =A0syscall =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0read return >> =A0 25 =A0 =A0syscall =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 write entry >> >> The error the OP received from the above command was pretty much >> exactly what I was seeing when I attempting to use DTrace on my HEAD >> system, built with clang. Same error, at least this part: >> >> "/usr/lib/dtrace/psinfo.d", line 88: failed to resolve type >> kernel`struct thread * for identifier curthread: Unknown type name" >> >> I was running simply 'dtrace -l' to list all probes... >> >> -Brandon >> > > > > -- > Zhihao Yuan > The best way to predict the future is to invent it. > _______________________________________________ > 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" >