From owner-freebsd-doc@FreeBSD.ORG Fri Sep 3 18:30:02 2010 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9985B10656B8 for ; Fri, 3 Sep 2010 18:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 59D3A8FC19 for ; Fri, 3 Sep 2010 18:30:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o83IU2Hr096876 for ; Fri, 3 Sep 2010 18:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o83IU203096875; Fri, 3 Sep 2010 18:30:02 GMT (envelope-from gnats) Resent-Date: Fri, 3 Sep 2010 18:30:02 GMT Resent-Message-Id: <201009031830.o83IU203096875@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alexander Pyhalov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9FB410656B9 for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: docs/150255: dtrace description should mention makeoptions DEBUG=-g X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2010 18:30:02 -0000 >Number: 150255 >Category: docs >Synopsis: dtrace description should mention makeoptions DEBUG=-g >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Sep 03 18:30:02 UTC 2010 >Closed-Date: >Last-Modified: >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: >Unformatted: