From nobody@FreeBSD.org  Fri Sep  3 18:27:15 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id B9FB410656B9
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  3 Sep 2010 18:27:15 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id A8A668FC26
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  3 Sep 2010 18:27:15 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o83IRFjl044966
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 3 Sep 2010 18:27:15 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o83IRFxE044965;
	Fri, 3 Sep 2010 18:27:15 GMT
	(envelope-from nobody)
Message-Id: <201009031827.o83IRFxE044965@www.freebsd.org>
Date: Fri, 3 Sep 2010 18:27:15 GMT
From: Alexander Pyhalov <alp@rsu.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: dtrace description should mention makeoptions DEBUG=-g
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         150255
>Category:       docs
>Synopsis:       dtrace description should mention makeoptions DEBUG=-g
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dru
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 03 18:30:02 UTC 2010
>Closed-Date:    Tue Apr 15 23:37:11 UTC 2014
>Last-Modified:  Tue Apr 15 23:37:11 UTC 2014
>Originator:     Alexander Pyhalov
>Release:        9.0-current
>Organization:
SFEDU
>Environment:
FreeBSD freebsd.cc.rsu.ru 9.0-CURRENT FreeBSD 9.0-CURRENT #3: Fri Sep  3 22:40:30 MSD 2010     root@freebsd.cc.rsu.ru:/usr/obj/usr/src/sys/MyKern  i386

>Description:
Documentation in handbook doesn't clearly state that "makeoptions DEBUG=-g" option should be present in kernel config for DTrace to work. 
In the absence of this options all (or most) dtrace scripts complain on unknown uid_t symbol in psinfo.d, because this symbol is not found in kernel debugging info. This can be seen with ctfdump - kernel contains CTF data but no info about uid_t (and some other symbols).  
>How-To-Repeat:
Create kernel config with options KDTRACE_HOOKS and DDB_CTF but without "makeoptions DEBUG=-g", then execute "make kernel WITH_CTF=1 KERNCONF=YourConfig".
>Fix:
Document this behavior.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->dru 
Responsible-Changed-By: dru 
Responsible-Changed-When: Tue Apr 15 23:36:05 UTC 2014 
Responsible-Changed-Why:  
I'll take this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=150255 
State-Changed-From-To: open->closed 
State-Changed-By: dru 
State-Changed-When: Tue Apr 15 23:36:29 UTC 2014 
State-Changed-Why:  
Fixed in r44571. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=150255 
>Unformatted:
