From owner-freebsd-stable@FreeBSD.ORG Fri Aug 6 09:54:55 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 29880106566C for ; Fri, 6 Aug 2010 09:54:55 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 9FA2F8FC0C for ; Fri, 6 Aug 2010 09:54:54 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id o769sfaP007004 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 6 Aug 2010 12:54:41 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id o769sfBn043905; Fri, 6 Aug 2010 12:54:41 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id o769saZ8043904; Fri, 6 Aug 2010 12:54:36 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 6 Aug 2010 12:54:36 +0300 From: Kostik Belousov To: freebsd-stable@freebsd.org, doconnor@gsoft.com.au Message-ID: <20100806095436.GL22295@deviant.kiev.zoral.com.ua> References: <50BEF58B-A155-4C46-B512-C94E0FD95D3E@gsoft.com.au> <201008060729.o767TVFZ023996@lurza.secnetix.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZR2l4dEWubZVuJJE" Content-Disposition: inline In-Reply-To: <201008060729.o767TVFZ023996@lurza.secnetix.de> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-2.2 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_50, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: Subject: Re: Kernel symbol file alternate location X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2010 09:54:55 -0000 --ZR2l4dEWubZVuJJE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 06, 2010 at 09:29:31AM +0200, Oliver Fromme wrote: > Daniel O'Connor wrote: > > On 06/08/2010, at 2:38, Oliver Fromme wrote: > > > > I think this is the main reason / has had to grow - the actual ker= nel > > > > is relatively small so even a 256Mb / could hold several, but with > > > > the symbol files it is not possible. > > >=20 > > > I think a very simple solution would be to install the symbol > > > files elsewhere (probably configurable via make.conf), and > > > install symlinks in the kernel directory. If you do this, > > > tools using the symbol files won't have to be changed. > > >=20 > > > This would probably be a fairly trivial change to the install- > > > kernel target, I guess. I don't have patches, though. > >=20 > > Yeah, I don't think it's hard to move them, however I'm worried what > > it will break :) > > > > The only thing I can see that would have to change would be kgdb so > > it tells gdb where to find the symbols. >=20 > That's why I suggested to place symlinks in the kernel > directory. No change to kgdb necessary. >=20 > It might even be possible to not install the symbol files > at all, but keep them under /usr/obj, so the installkernel > target would have to do nothing more than create symlinks. > This could be controlled by a make.conf variable, like > SYMLINK_SYMBOLS=3DYES ("NO" would be the existing behaviour > of installing the actual symbol files in /boot/kernel). If you keep /usr/obj around, you do not need symbol files at all, and INSTALL_NODEBUG?=3Dtrue in make.conf is enough. You can always use kernel.debug and modules with debugging symbols from build directory for kgdb. --ZR2l4dEWubZVuJJE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkxb29sACgkQC3+MBN1Mb4j4awCgsJfPGRBFmYvbJGuCK+axtb/v CvMAn0DU63RZ2D5QmNU5GSZWXwplFXeO =jhgd -----END PGP SIGNATURE----- --ZR2l4dEWubZVuJJE--