From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 18 20:24:35 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C747F6F9 for ; Thu, 18 Oct 2012 20:24:35 +0000 (UTC) (envelope-from vasanth.raonaik@gmail.com) Received: from mail-da0-f54.google.com (mail-da0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 94D7D8FC0C for ; Thu, 18 Oct 2012 20:24:35 +0000 (UTC) Received: by mail-da0-f54.google.com with SMTP id z9so3908098dad.13 for ; Thu, 18 Oct 2012 13:24:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=RjQK6agvOK0VR5Df8kVISrfrDm45wHDimFNnxqeoStQ=; b=CBiA8d3ykIvoeLFMRMebXW1wniZ7bSf2HQMk2Tq+Uklg8CqEdhV+z41XD5SLlDvxFi UZoh4smHMSHd8BvvWM6qDkhv7Vw+LA4u+0abpBEc+IC3qyc7npAWsy4IO40/KApfgouk ZT/d0EpL9jmfIhPU0Fpv4JmIuPacqq0Mzb6yXuYj/vufMUZhHvReesnTP1PaCMzWl802 8q0/zKkbf91EHfIMDyeBlOiSLd5N+I3MJOXOknHaddYDO33VCQpu63strqHiafJTFi4P jNuyKoOjl1Ew5AHWeWYjnvyQ1JZ074xlQzj25K0HbANs3VgxxFMuC6tOyr3X6nVDSK1s H0pQ== MIME-Version: 1.0 Received: by 10.68.232.163 with SMTP id tp3mr69957905pbc.44.1350591874853; Thu, 18 Oct 2012 13:24:34 -0700 (PDT) Received: by 10.66.217.138 with HTTP; Thu, 18 Oct 2012 13:24:34 -0700 (PDT) In-Reply-To: References: Date: Thu, 18 Oct 2012 16:24:34 -0400 Message-ID: Subject: Re: dtrace failed to resolve struct thread From: vasanth rao naik sabavat To: Ryan Stone Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Oct 2012 20:24:35 -0000 Thanks Ryan, I checked out latest source code and compiled the kernel which has the option you have mentioned. I can now run dtrace -s schedgraph.d without any issues. Thanks, Vasanth On Thu, Oct 18, 2012 at 1:49 PM, Ryan Stone wrote: > On Thu, Oct 18, 2012 at 12:32 PM, vasanth rao naik sabavat > wrote: > > Hi, > > > > I have an issue with latest FreeBSD when enabling dtrace > > > > dtrace -s schedgraph.d > > ./hotkernel > > both return the following error. > > > > : "/usr/lib/dtrace/psinfo.d", line 88: failed to resolve type > kernel`struct > > thread * for identifier curthread: Unknown type name > > > > 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Wed Oct 17 12:04:00 PDT 2012 > > > > I see that there was a problem report on FreeBSD which got closed as > fixed. > > What is the fix for this issue? > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=130998 > > Did you buildkernel with WITH_CTF=1? You can check this by running > ctfdump on /boot/kernel/kernel and seeing if that produces output. It > will print the following error if you forgot to build with WITH_CTF=1: > > /boot/kernel/kernel does not contain .SUNW_ctf data > -- Thanks, Vasanth