From owner-freebsd-current@FreeBSD.ORG Thu Oct 30 06:20:28 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1F98B948; Thu, 30 Oct 2014 06:20:28 +0000 (UTC) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "funkthat.com", Issuer "funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D54608CB; Thu, 30 Oct 2014 06:20:27 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id s9U6KQhh012127 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 29 Oct 2014 23:20:27 -0700 (PDT) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id s9U6KQFl012126; Wed, 29 Oct 2014 23:20:26 -0700 (PDT) (envelope-from jmg) Date: Wed, 29 Oct 2014 23:20:26 -0700 From: John-Mark Gurney To: Ed Maste Subject: Re: HEADS UP: Standalone kernel debug files moving out of /boot/kernel/ Message-ID: <20141030062026.GC8852@funkthat.com> Mail-Followup-To: Ed Maste , freebsd-current@freebsd.org References: <54511A7E.1020307@multiplay.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54511A7E.1020307@multiplay.co.uk> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Wed, 29 Oct 2014 23:20:27 -0700 (PDT) Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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: Thu, 30 Oct 2014 06:20:28 -0000 Steven Hartland wrote this message on Wed, Oct 29, 2014 at 16:49 +0000: > Hmm not sure I like this idea as it would make it more difficult to make > a copy / backup a kernel. > > ATM when I want to copy a kernel for debugging its a one liner, > splitting debug symbols off to /usr/lib would prevent this. > > Is there not a way to allow separate install of the debug files but to > the same location maintaining compartmentalization for the needed kernel > files? Oh, make sure that make install (or installkernel) properly handles moving the debug data too... i.e. kernel to kernel.old... > On 29/10/2014 00:20, Ed Maste wrote: > >I am preparing to move the standalone kernel debug data out of > >/boot/kernel/ into /usr/lib/debug/boot/kernel/, mirroring the approach > >used for userland debug data. This significantly reduces the boot > >partition size requirement, and is a step towards supporting the > >installation of kernel debug data ony when required. LLDB and GDB > >automatically search for debug data under /usr/lib/debug/ so this > >change should be transparent from an end-user perspective. > > > >The change can be reviewed in Phabricator at > >https://reviews.freebsd.org/D1006 and can be fetched as a unified diff > >from https://people.freebsd.org/~emaste/patches/D1006.diff > > > >This does not change any defaults or knobs: kernel debug files are > >still built by default, and may be disabled by setting > >WITHOUT_KERNEL_SYMBOLS=YES in /etc/src.conf. I hope to rationalize > >this with userland debug in a later step. > > > >Note that the change renames the intermediate and debug data files to > >be consistent with userland debug data: in the build directory the > >kernel with debug data included is now named kernel.full, and and > >kernel.debug is the standalone debug data file. > > > >I plan to merge this in a few days if there are no issues reported in > >further review or testing. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."