From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 18 17:49:03 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 EBE46CAC for ; Thu, 18 Oct 2012 17:49:03 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-qc0-f182.google.com (mail-qc0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9DDB48FC16 for ; Thu, 18 Oct 2012 17:49:03 +0000 (UTC) Received: by mail-qc0-f182.google.com with SMTP id l39so8741935qcs.13 for ; Thu, 18 Oct 2012 10:49:03 -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=6/uNn96bjJavH1dHQDLd7ndwQ6V1nZcAPMbQ9SXyqMQ=; b=WJ5Ij3FoNCBBTLj6+NaDCNcA9GUtb/YJk0km2/TEnMn0FLrOqy7QDF3UlpB20kU9IU aG1OQ0Ljt2e6pwmpV2BVdVvKHWIiGrYcIOnkRp5u+eu1LWLW5w2ZUVQb4noqRS3ddegj 4CXH7DETF45h7N7GRxve51toQcFuHIAxftgRe9N0v+7nG8UEzo5dfZy41hxhpqCH6mUP 04GLbH6gqdePPhf/LkXC3YZdHli0DHdDgCjxrcm8eSbjjricEyclDL34nBoQvamlxJA0 hTPYBY+VE8ZW9yC9omJIm1XxPqrX8DjVwzDQdo2z2DE/VVtC6FfF35UlgsXB+X+VfeUf TqTQ== MIME-Version: 1.0 Received: by 10.224.33.205 with SMTP id i13mr16598608qad.35.1350582543116; Thu, 18 Oct 2012 10:49:03 -0700 (PDT) Received: by 10.49.81.234 with HTTP; Thu, 18 Oct 2012 10:49:03 -0700 (PDT) In-Reply-To: References: Date: Thu, 18 Oct 2012 13:49:03 -0400 Message-ID: Subject: Re: dtrace failed to resolve struct thread From: Ryan Stone To: vasanth rao naik sabavat Content-Type: text/plain; charset=ISO-8859-1 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 17:49:04 -0000 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