From owner-svn-src-stable@FreeBSD.ORG Tue Apr 16 16:43:34 2013 Return-Path: Delivered-To: svn-src-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B6B1B1D2; Tue, 16 Apr 2013 16:43:34 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (lor.one-eyed-alien.net [69.66.77.232]) by mx1.freebsd.org (Postfix) with ESMTP id EC9B3831; Tue, 16 Apr 2013 16:43:26 +0000 (UTC) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.5/8.14.5) with ESMTP id r3GGhVjF014722; Tue, 16 Apr 2013 11:43:31 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.5/8.14.5/Submit) id r3GGhVsY014721; Tue, 16 Apr 2013 11:43:31 -0500 (CDT) (envelope-from brooks) Date: Tue, 16 Apr 2013 11:43:31 -0500 From: Brooks Davis To: Steven Hartland Subject: Re: svn commit: r249549 - in stable/9/sys: amd64/conf i386/conf Message-ID: <20130416164331.GF98205@lor.one-eyed-alien.net> References: <201304161609.r3GG9SID009937@svn.freebsd.org> <2F45DF711D81416BBAD8B24EAF8AFA36@multiplay.co.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Ls2Gy6y7jbHLe9Od" Content-Disposition: inline In-Reply-To: <2F45DF711D81416BBAD8B24EAF8AFA36@multiplay.co.uk> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-src-stable@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, svn-src-stable-9@FreeBSD.org X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Apr 2013 16:43:34 -0000 --Ls2Gy6y7jbHLe9Od Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 16, 2013 at 05:14:41PM +0100, Steven Hartland wrote: > ----- Original Message -----=20 > From: "Brooks Davis" > > Author: brooks > > Date: Tue Apr 16 16:09:27 2013 > > New Revision: 249549 > > URL: http://svnweb.freebsd.org/changeset/base/249549 > >=20 > > Log: > > MFC (much delayed) 234504: > > =20 > > Enable DTrace hooks in GENERIC. > >=20 > > Modified: > > stable/9/sys/amd64/conf/GENERIC > > stable/9/sys/i386/conf/GENERIC > > Directory Properties: > > stable/9/sys/ (props changed) > >=20 > > Modified: stable/9/sys/amd64/conf/GENERIC > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > > --- stable/9/sys/amd64/conf/GENERIC Tue Apr 16 14:22:16 2013 (r249548) > > +++ stable/9/sys/amd64/conf/GENERIC Tue Apr 16 16:09:27 2013 (r249549) > > @@ -22,6 +22,7 @@ cpu HAMMER > > ident GENERIC > >=20 > > makeoptions DEBUG=3D-g # Build kernel with gdb(1) debug symbols > > +makeoptions WITH_CTF=3D1 # Run ctfconvert(1) for DTrace support > >=20 > > options SCHED_ULE # ULE scheduler > > options PREEMPTION # Enable kernel thread preemption > > @@ -63,11 +64,12 @@ options KBD_INSTALL_CDEV # install a CD > > options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4) > > options AUDIT # Security event auditing > > options MAC # TrustedBSD MAC Framework > > -#options KDTRACE_FRAME # Ensure frames are compiled in > > -#options KDTRACE_HOOKS # Kernel DTrace hooks > > +options KDTRACE_FRAME # Ensure frames are compiled in > > +options KDTRACE_HOOKS # Kernel DTrace hooks > > options INCLUDE_CONFIG_FILE # Include this file in kernel > > options KDB # Kernel debugger related code > > options KDB_TRACE # Print a stack trace for a panic > > +options DDB_CTF # kernel ELF linker loads CTF data > >=20 > > # Make an SMP-capable kernel by default > > options SMP # Symmetric MultiProcessor Kernel > >=20 > > Modified: stable/9/sys/i386/conf/GENERIC > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > > --- stable/9/sys/i386/conf/GENERIC Tue Apr 16 14:22:16 2013 (r249548) > > +++ stable/9/sys/i386/conf/GENERIC Tue Apr 16 16:09:27 2013 (r249549) > > @@ -24,6 +24,7 @@ cpu I686_CPU > > ident GENERIC > >=20 > > makeoptions DEBUG=3D-g # Build kernel with gdb(1) debug symbols > > +makeoptions WITH_CTF=3D1 # Run ctfconvert(1) for DTrace support > >=20 > > options SCHED_ULE # ULE scheduler > > options PREEMPTION # Enable kernel thread preemption > > @@ -64,10 +65,11 @@ options KBD_INSTALL_CDEV # install a CD > > options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4) > > options AUDIT # Security event auditing > > options MAC # TrustedBSD MAC Framework > > -#options KDTRACE_HOOKS # Kernel DTrace hooks > > +options KDTRACE_HOOKS # Kernel DTrace hooks > > options INCLUDE_CONFIG_FILE # Include this file in kernel > > options KDB # Kernel debugger related code > > options KDB_TRACE # Print a stack trace for a panic > > +options DDB_CTF # kernel ELF linker loads CTF data > >=20 > > # To make an SMP kernel, the next two lines are needed > > options SMP # Symmetric MultiProcessor Kernel >=20 > What's the performance / memory usage impact of enabling these > by default? The performance impact should be close to zero, but I've not attempted to measure it. Others who are using DTrace in production could probably comment more usefully. DDB_CTF causes the slightly less than 700KB SUNW_ctf section to be loaded into RAM that should be the majority of the overhead. -- Brooks --Ls2Gy6y7jbHLe9Od Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iD8DBQFRbX+yXY6L6fI4GtQRAiT4AJ9NbF20hUhxQ2UGymuei0z8G7QFkACfcblM EPEUqDwksu6Jax7ksXmNea4= =3TlJ -----END PGP SIGNATURE----- --Ls2Gy6y7jbHLe9Od--