svn commit: r228118 - head/sys/sys

2011-11-29 Thread Lawrence Stewart
Author: lstewart Date: Tue Nov 29 07:59:45 2011 New Revision: 228118 URL: http://svn.freebsd.org/changeset/base/228118 Log: Introduce the new "fromclock" public wrapper API which allows consumers to select which system clock to obtain time from, independent of the current default system cloc

svn commit: r228119 - head/usr.sbin/mfiutil

2011-11-29 Thread Xin LI
Author: delphij Date: Tue Nov 29 08:16:14 2011 New Revision: 228119 URL: http://svn.freebsd.org/changeset/base/228119 Log: In build_volume(), check if arrays is allocated before traversing its items. While parsing the arrays input, it's possible that we reach the error path before initializ

svn commit: r228120 - head/share/mk

2011-11-29 Thread Max Khon
Author: fjoe Date: Tue Nov 29 08:20:23 2011 New Revision: 228120 URL: http://svn.freebsd.org/changeset/base/228120 Log: Allow NO_FOO to override WITH_FOO that could be specified in /etc/src.conf. This is required to override knobs (e.g. WITH_PROFILE) during buildworld stages in Makefile.i

svn commit: r228122 - head/usr.sbin/mergemaster

2011-11-29 Thread Doug Barton
Author: dougb Date: Tue Nov 29 08:22:12 2011 New Revision: 228122 URL: http://svn.freebsd.org/changeset/base/228122 Log: If using DISTDIR we need to be sure to create a ${DESTDIR}/var/db/zoneinfo PR: bin/162891 Submitted by: Helge Oldach Modified: head/usr.sbin/mergemaster/m

svn commit: r228121 - head/sys/conf

2011-11-29 Thread Max Khon
Author: fjoe Date: Tue Nov 29 08:21:54 2011 New Revision: 228121 URL: http://svn.freebsd.org/changeset/base/228121 Log: Fix typo in comments (conversation -> conversion). Modified: head/sys/conf/kern.mk Modified: head/sys/conf/kern.mk =

svn commit: r228123 - head/sys/kern

2011-11-29 Thread Lawrence Stewart
Author: lstewart Date: Tue Nov 29 08:33:40 2011 New Revision: 228123 URL: http://svn.freebsd.org/changeset/base/228123 Log: Do away with the somewhat clunky sysclock_ops structure and associated code, reimplementing the [get]{bin,nano,micro}[up]time() wrapper functions in terms of the new "

svn commit: r228124 - in head: share/mk sys/conf

2011-11-29 Thread Max Khon
Author: fjoe Date: Tue Nov 29 08:38:47 2011 New Revision: 228124 URL: http://svn.freebsd.org/changeset/base/228124 Log: Conditionalize ctfconvert/ctfmerge runs on make level (.if/.endif) instead of executing a shell on every object or executable/library file. This shaves off more than 30,

svn commit: r228125 - in head/sys: kern sys

2011-11-29 Thread Lawrence Stewart
Author: lstewart Date: Tue Nov 29 08:43:04 2011 New Revision: 228125 URL: http://svn.freebsd.org/changeset/base/228125 Log: Make sysclock_active publicly available to external consumers. Committed on behalf of Julien Ridoux and Darryl Veitch from the University of Melbourne, Australia, as

Re: svn commit: r228124 - in head: share/mk sys/conf

2011-11-29 Thread Garrett Cooper
On Tue, Nov 29, 2011 at 12:38 AM, Max Khon wrote: > Author: fjoe > Date: Tue Nov 29 08:38:47 2011 > New Revision: 228124 > URL: http://svn.freebsd.org/changeset/base/228124 > > Log: >  Conditionalize ctfconvert/ctfmerge runs on make level (.if/.endif) instead >  of executing a shell on every objec

Re: svn commit: r228071 - head/sys/net

2011-11-29 Thread Gleb Smirnoff
On Mon, Nov 28, 2011 at 07:47:22PM +, Bjoern A. Zeeb wrote: B> On 28. Nov 2011, at 14:44 , Gleb Smirnoff wrote: B> B> > Author: glebius B> > Date: Mon Nov 28 14:44:59 2011 B> > New Revision: 228071 B> > URL: http://svn.freebsd.org/changeset/base/228071 B> > B> > Log: B> > - Use generic alloc

Re: svn commit: r228071 - head/sys/net

2011-11-29 Thread Gleb Smirnoff
On Mon, Nov 28, 2011 at 10:23:07PM +0200, Jaakko Heinonen wrote: J> On 2011-11-28, Bjoern A. Zeeb wrote: J> > > static void J> > > if_clone_free(struct if_clone *ifc) J> > > { J> > > -for (int bytoff = 0; bytoff < ifc->ifc_bmlen; bytoff++) { J> > > -KASSERT(ifc->ifc_units[by

Re: svn commit: r228071 - head/sys/net

2011-11-29 Thread Bjoern A. Zeeb
On Tue, 29 Nov 2011, Gleb Smirnoff wrote: On Mon, Nov 28, 2011 at 07:47:22PM +, Bjoern A. Zeeb wrote: B> On 28. Nov 2011, at 14:44 , Gleb Smirnoff wrote: B> B> > Author: glebius B> > Date: Mon Nov 28 14:44:59 2011 B> > New Revision: 228071 B> > URL: http://svn.freebsd.org/changeset/base/2280

Re: svn commit: r228114 - head/lib/libedit/edit/readline

2011-11-29 Thread David Chisnall
On 29 Nov 2011, at 04:50, Max Khon wrote: > All this makes it possible to build and link gdb with -ledit. When I had a quick look a couple of days ago, kadmin and [k]gdb were the only things that linked against readline in base. With them now linking against libedit, can we remove readline fr

Re: svn commit: r228114 - head/lib/libedit/edit/readline

2011-11-29 Thread Max Khon
David, On Tue, Nov 29, 2011 at 6:28 PM, David Chisnall wrote: > All this makes it possible to build and link gdb with -ledit. > > When I had a quick look a couple of days ago, kadmin and [k]gdb were the > only things that linked against readline in base. With them now linking > against libedit,

svn commit: r228132 - head/sys/net

2011-11-29 Thread Lawrence Stewart
Author: lstewart Date: Tue Nov 29 12:55:26 2011 New Revision: 228132 URL: http://svn.freebsd.org/changeset/base/228132 Log: Revert r227778 in preparation for committing reworked patches in its place. Modified: head/sys/net/bpf.c head/sys/net/bpf.h Modified: head/sys/net/bpf.c =

Re: svn commit: r227778 - head/sys/net

2011-11-29 Thread Lawrence Stewart
On 11/28/11 14:59, Benjamin Kaduk wrote: On Wed, 23 Nov 2011, Lawrence Stewart wrote: On 11/23/11 17:42, Julien Ridoux wrote: Thanks all for the feedback. With some delay, I have a patch against r227871 that implements what Lawrence proposed. You can find it here: http://www.cubinlab.ee.unime

svn commit: r228133 - head/sys/vm

2011-11-29 Thread Konstantin Belousov
Author: kib Date: Tue Nov 29 13:07:32 2011 New Revision: 228133 URL: http://svn.freebsd.org/changeset/base/228133 Log: Hide the internals of vm_page_lock(9) from the loadable modules. Since the address of vm_page lock mutex depends on the kernel options, it is easy for module to get out of s

Re: svn commit: r228071 - head/sys/net

2011-11-29 Thread Gleb Smirnoff
On Tue, Nov 29, 2011 at 09:43:37AM +, Bjoern A. Zeeb wrote: B> On Tue, 29 Nov 2011, Gleb Smirnoff wrote: B> > btw, I don't like the static initializer of cloners, since it require re-compile of B> > dependencies. B> > B> > What about making an API change: remove the static initializer and make

Re: svn commit: r228124 - in head: share/mk sys/conf

2011-11-29 Thread Alexander Kabaev
On Tue, 29 Nov 2011 08:38:47 + (UTC) Max Khon wrote: > Author: fjoe > Date: Tue Nov 29 08:38:47 2011 > New Revision: 228124 > URL: http://svn.freebsd.org/changeset/base/228124 > > Log: > Conditionalize ctfconvert/ctfmerge runs on make level (.if/.endif) > instead of executing a shell on ev

Re: svn commit: r227778 - head/sys/net

2011-11-29 Thread Lawrence Stewart
On 11/30/11 00:05, Lawrence Stewart wrote: On 11/28/11 14:59, Benjamin Kaduk wrote: On Wed, 23 Nov 2011, Lawrence Stewart wrote: On 11/23/11 17:42, Julien Ridoux wrote: [snip] What is your favourite option? FreeBSD parlance is to ask what colour you would like to paint the bikeshed ;) As

svn commit: r228137 - in head: share/mk sys/conf

2011-11-29 Thread Max Khon
Author: fjoe Date: Tue Nov 29 16:34:44 2011 New Revision: 228137 URL: http://svn.freebsd.org/changeset/base/228137 Log: - fix WITH_CTF when specified in /etc/src.conf [1] - CTFCONVERT_CMD=... is a hack (should be defined to empty string instead): make(1) should be taught to ignore empty comm

Re: svn commit: r228124 - in head: share/mk sys/conf

2011-11-29 Thread Max Khon
Alexander, On Tue, Nov 29, 2011 at 9:00 PM, Alexander Kabaev wrote: > Author: fjoe > > Date: Tue Nov 29 08:38:47 2011 > > New Revision: 228124 > > URL: http://svn.freebsd.org/changeset/base/228124 > > > > Log: > > Conditionalize ctfconvert/ctfmerge runs on make level (.if/.endif) > > instead o

Re: svn commit: r227778 - head/sys/net

2011-11-29 Thread Jung-uk Kim
On Tuesday 29 November 2011 11:13 am, Lawrence Stewart wrote: > On 11/30/11 00:05, Lawrence Stewart wrote: > > On 11/28/11 14:59, Benjamin Kaduk wrote: > >> On Wed, 23 Nov 2011, Lawrence Stewart wrote: > >>> On 11/23/11 17:42, Julien Ridoux wrote: > > [snip] > > What is your favourite option?

svn commit: r228140 - head/sys/conf

2011-11-29 Thread Max Khon
Author: fjoe Date: Tue Nov 29 18:52:02 2011 New Revision: 228140 URL: http://svn.freebsd.org/changeset/base/228140 Log: Do not echo ${CTFCONVERT} command: config(8) will be fixed to not emit '@' for ${NORMAL_CTFCONVERT} invocation. Modified: head/sys/conf/kern.pre.mk Modified: head/sys/con

svn commit: r228141 - head/sys/conf

2011-11-29 Thread Max Khon
Author: fjoe Date: Tue Nov 29 19:13:01 2011 New Revision: 228141 URL: http://svn.freebsd.org/changeset/base/228141 Log: Call CTFMERGE only when WITH_CTF is defined. Modified: head/sys/conf/kmod.mk Modified: head/sys/conf/kmod.mk ===

svn commit: r228143 - in head: . share/mk tools/build/options

2011-11-29 Thread Max Khon
Author: fjoe Date: Tue Nov 29 19:46:17 2011 New Revision: 228143 URL: http://svn.freebsd.org/changeset/base/228143 Log: Turn off profiled libs build by default. Can be enabled back using WITH_PROFILE=yes in /etc/src.conf Added: head/tools/build/options/WITH_PROFILE - copied, changed fr

svn commit: r228147 - head/share/mk

2011-11-29 Thread Max Khon
Author: fjoe Date: Tue Nov 29 20:06:27 2011 New Revision: 228147 URL: http://svn.freebsd.org/changeset/base/228147 Log: CTFCONVERT_CMD=... hack does not work sufficiently well in parallel builds. Put a bandaid until make(1) is taught to ignore empty commands. Modified: head/share/mk/bsd.

Re: svn commit: r228143 - in head: . share/mk tools/build/options

2011-11-29 Thread John Baldwin
On Tuesday, November 29, 2011 2:46:17 pm Max Khon wrote: > Author: fjoe > Date: Tue Nov 29 19:46:17 2011 > New Revision: 228143 > URL: http://svn.freebsd.org/changeset/base/228143 > > Log: > Turn off profiled libs build by default. > Can be enabled back using WITH_PROFILE=yes in /etc/src.conf

Re: svn commit: r228143 - in head: . share/mk tools/build/options

2011-11-29 Thread Gábor Kövesdán
On 2011.11.29. 20:46, Max Khon wrote: Log: Turn off profiled libs build by default. Can be enabled back using WITH_PROFILE=yes in /etc/src.conf I think it was useful. Profiling is useful for developing any piece of software that builds on libc or other common libs, even for software that

Re: svn commit: r228143 - in head: . share/mk tools/build/options

2011-11-29 Thread Doug Barton
On 11/29/2011 12:47, Gábor Kövesdán wrote: > On 2011.11.29. 20:46, Max Khon wrote: >> Log: >>Turn off profiled libs build by default. >>Can be enabled back using WITH_PROFILE=yes in /etc/src.conf > I think it was useful. Profiling is useful for developing any piece of > software that builds

Re: svn commit: r228143 - in head: . share/mk tools/build/options

2011-11-29 Thread Garrett Cooper
2011/11/29 Doug Barton : > On 11/29/2011 12:47, Gábor Kövesdán wrote: >> On 2011.11.29. 20:46, Max Khon wrote: >>> Log: >>>    Turn off profiled libs build by default. >>>    Can be enabled back using WITH_PROFILE=yes in /etc/src.conf >> I think it was useful. Profiling is useful for developing any

Re: svn commit: r228124 - in head: share/mk sys/conf

2011-11-29 Thread Alexander Leidinger
Hi, did you verify that this works with settings in src.conf for buildworld and for corresponding makeoptions in the kernel config for buildkernel and for the old way of building kernels? The reason we had the shell conditionals was because we didn't manage to get all cases working with make c

svn commit: r228148 - head/sys/conf

2011-11-29 Thread John Baldwin
Author: jhb Date: Tue Nov 29 21:28:48 2011 New Revision: 228148 URL: http://svn.freebsd.org/changeset/base/228148 Log: Remove a bit of debugging that accidentally crept in earlier. Modified: head/sys/conf/newvers.sh Modified: head/sys/conf/newvers.sh =

svn commit: r228149 - in head/tools/regression/usr.bin/make/execution: . ellipsis empty plus

2011-11-29 Thread Max Khon
Author: fjoe Date: Wed Nov 30 05:49:17 2011 New Revision: 228149 URL: http://svn.freebsd.org/changeset/base/228149 Log: Add three execution tests for make(1): - plus: execute "+command" when run with -jX -n - ellipsis: ellipsis ("...") from variable - empty: empty command (from variable)