From owner-freebsd-questions@FreeBSD.ORG Sat Mar 6 22:47:01 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2DF17106564A for ; Sat, 6 Mar 2010 22:47:01 +0000 (UTC) (envelope-from steinex@nognu.de) Received: from mail-bw0-f224.google.com (mail-bw0-f224.google.com [209.85.218.224]) by mx1.freebsd.org (Postfix) with ESMTP id B797E8FC0C for ; Sat, 6 Mar 2010 22:47:00 +0000 (UTC) Received: by bwz24 with SMTP id 24so3318896bwz.13 for ; Sat, 06 Mar 2010 14:46:52 -0800 (PST) Received: by 10.204.141.135 with SMTP id m7mr2370197bku.183.1267915612775; Sat, 06 Mar 2010 14:46:52 -0800 (PST) Received: from haydn.nognu.de (haydn.nognu.de [81.169.170.112]) by mx.google.com with ESMTPS id 13sm430269bwz.3.2010.03.06.14.46.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 06 Mar 2010 14:46:51 -0800 (PST) Date: Sat, 6 Mar 2010 23:46:49 +0100 From: Frank Steinborn To: Tim Judd Message-ID: <20100306224649.GA38524@haydn.nognu.de> References: <970380131003060754t32f70d1x9c40d716f01b325a@mail.gmail.com> <970380131003061159i49dbd22cl4ec4856adf2a340f@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: FreeBSD-Questions Subject: Re: Debug still in kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Mar 2010 22:47:01 -0000 Tim Judd wrote: > > makeoptions DEBUG=-g # Build kernel with gdb(1) debug > > symbols > > options PREEMPTION # Enable kernel thread preemption > > > > why are these still in GENERIC after release? > > I can confirm debug symbols is still in the kernel, but that is most > likely used for backtraces and debugging when a kernel panic happens. > This is instead of asking the user who had a kernel panic to rebuild > with debugging to debug it. It creates a 'kernel.debug' compiled with -g as well as a normal kernel. You can use 'make install.debug' to install the debug kernel. It doesn't have any impact on the normal kernel at all. > PREEMPTION as I understand it should have been removed from the kernel > config file. It should have been removed from the GENERIC config file > after RELENG_8_0_RELEASE tag is made. I don't know what your tag is > when you update. Perhaps you're copying or using a config file from > the BETA or RC days? PREEMPTION has nothing to do with debugging at all. It allows threads that are in the kernel to be preempted by higher priority threads. It helps with interactivity and allows interrupt threads to run sooner rather than waiting. See /usr/src/sys/conf/NOTES Bye, Frank