From owner-freebsd-current@FreeBSD.ORG Wed Mar 23 13:48:07 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 364D61065672 for ; Wed, 23 Mar 2011 13:48:07 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 82BA78FC24 for ; Wed, 23 Mar 2011 13:48:06 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA08859; Wed, 23 Mar 2011 15:48:03 +0200 (EET) (envelope-from avg@freebsd.org) Message-ID: <4D89FA12.9070106@freebsd.org> Date: Wed, 23 Mar 2011 15:48:02 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110309 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: Bruce Cran References: <20110323105215.00003a63@unknown> In-Reply-To: <20110323105215.00003a63@unknown> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: how to build kernel with CTF data for DTrace? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2011 13:48:07 -0000 on 23/03/2011 12:52 Bruce Cran said the following: > On Wed, 23 Mar 2011 10:23:50 +0000 (UTC) > Anton Yuzhaninov wrote: > >> options DDB_CTF >> options KDTRACE_HOOKS >> makeoptions DEBUG=-g >> makeoptions WITH_CTF=1 >> >> I have rebuild kernel with this options, but: >> $ ctfdump -l /boot/kernel/kernel >> /boot/kernel/kernel does not contain .SUNW_ctf data >> >> Is instruction in wiki outdated? > > I think you need to specify WITH_CTF=1 on the commandline, e.g. > > make WITH_CTF=1 buildkernel The makeoptions line above should be completely equivalent to your suggestion for kernel builds. -- Andriy Gapon