Author: mdf
Date: Mon Jul 18 18:09:10 2011
New Revision: 224191
URL: http://svn.freebsd.org/changeset/base/224191
Log:
MFC r223875, r223876:
style(9) and cleanup fixes.
Add an option to have a fail point term only execute when run by a
specified pid. This is helpful for automated te
Author: mdf
Date: Thu Mar 10 22:56:00 2011
New Revision: 219468
URL: http://svn.freebsd.org/changeset/base/219468
Log:
Use MAXPATHLEN rather than the size of an extern array when copying the
kernel name. Also consistenly use strlcpy().
Suggested by: Warner Losh
Modified:
head/sys/amd6
Author: mdf
Date: Fri Mar 11 18:56:55 2011
New Revision: 219523
URL: http://svn.freebsd.org/changeset/base/219523
Log:
Mostly revert r219468, as I had misremembered the C standard regarding
the size of an extern array.
Keep one change from strncpy to strlcpy.
Modified:
head/sys/amd64/a
Author: mdf
Date: Fri Mar 25 18:16:36 2011
New Revision: 220002
URL: http://svn.freebsd.org/changeset/base/220002
Log:
MFC r218825. [The implementation change to kdb_sysctl_available()
cannot be MFC'd as it requires a non-MFCable change (adding drains to
sbuf)].
Modify kdb_trap() so th
Author: mdf
Date: Fri Mar 25 18:16:49 2011
New Revision: 220003
URL: http://svn.freebsd.org/changeset/base/220003
Log:
MFC r218825. [The implementation change to kdb_sysctl_available()
cannot be MFC'd as it requires a non-MFCable change (adding drains to
sbuf)].
Modify kdb_trap() so th
Author: mdf
Date: Fri Mar 25 20:51:20 2011
New Revision: 220008
URL: http://svn.freebsd.org/changeset/base/220008
Log:
MFC r192908 (introduced before the stable/8 split from CURRENT):
fail(9) support:
Add support for kernel fault injection using KFAIL_POINT_* macros and
fail_point_*
Author: mdf
Date: Fri Mar 25 22:00:43 2011
New Revision: 220010
URL: http://svn.freebsd.org/changeset/base/220010
Log:
MFC r216058 and r216059:
r216058:
Use the SYSCTL_CHILDREN macro in kern_sysctl.c to help de-obfuscate the
code.
r216059:
Slightly modify the logic in sysct
Author: mdf
Date: Fri Mar 25 22:11:39 2011
New Revision: 220011
URL: http://svn.freebsd.org/changeset/base/220011
Log:
MFC r216060. This differs from the original commit in that it
preserves the KBI size of struct sysctl_oid. Also, on stable/8 the
compiler thinks that 'len' in sysctl_sysct
Author: mdf
Date: Fri Mar 25 22:11:54 2011
New Revision: 220012
URL: http://svn.freebsd.org/changeset/base/220012
Log:
MFC r216060. This differs from the original commit in that it
preserves the KBI size of struct sysctl_oid. Also, on stable/8 the
compiler thinks that 'len' in sysctl_sysct
Author: mdf
Date: Fri Mar 25 22:17:24 2011
New Revision: 220013
URL: http://svn.freebsd.org/changeset/base/220013
Log:
Fix r220012 (MFC of r216060); the KBI of sysctl_oid was *supposed* to be
preserved, but I was hasty.
Modified:
stable/7/sys/sys/sysctl.h
Modified: stable/7/sys/sys/sysctl.
Author: mdf
Date: Mon Apr 18 16:32:22 2011
New Revision: 220791
URL: http://svn.freebsd.org/changeset/base/220791
Log:
Add the posix_fallocate(2) syscall. The default implementation in
vop_stdallocate() is filesystem agnostic and will run as slow as a
read/write loop in userspace; however,
Author: mdf
Date: Mon Apr 18 16:32:47 2011
New Revision: 220792
URL: http://svn.freebsd.org/changeset/base/220792
Log:
Regen.
Modified:
head/sys/compat/freebsd32/freebsd32_proto.h
head/sys/compat/freebsd32/freebsd32_syscall.h
head/sys/compat/freebsd32/freebsd32_syscalls.c
head/sys/compa
Author: mdf
Date: Mon Apr 18 16:40:47 2011
New Revision: 220793
URL: http://svn.freebsd.org/changeset/base/220793
Log:
Fix a copy/paste whitespace error.
Modified:
head/sys/kern/vfs_syscalls.c
Modified: head/sys/kern/vfs_syscalls.c
Author: mdf
Date: Mon Apr 18 19:02:41 2011
New Revision: 220798
URL: http://svn.freebsd.org/changeset/base/220798
Log:
Fix a few acpi sysctls that want "IK" formatting to specify CTLTYPE_INT.
This got broken after r217586.
Pointy hat: to me
Tested by:David Wolfskill < davit AT cat
Author: mdf
Date: Tue Apr 19 16:36:24 2011
New Revision: 220846
URL: http://svn.freebsd.org/changeset/base/220846
Log:
Allow VOP_ALLOCATE to be iterative, and have kern_posix_fallocate(9)
drive looping and potentially yielding.
Requested by: kib
Modified:
head/sys/kern/vfs_default.c
Author: mdf
Date: Tue Apr 19 20:44:43 2011
New Revision: 220871
URL: http://svn.freebsd.org/changeset/base/220871
Log:
Correctly output the entire array for hw.acpi.thermal._ACx.
Reported by: Taku YAMAMOTO < taku AT tackymt DOT homeip DOT net >
Tested by:Nick Ulen < uncle AT wolfman
Author: mdf
Date: Fri May 13 05:27:58 2011
New Revision: 221829
URL: http://svn.freebsd.org/changeset/base/221829
Log:
Use a name instead of a magic number for kern_yield(9) when the priority
should not change. Fetch the td_user_pri under the thread lock. This
is probably not necessary but
Author: mdf
Date: Fri May 13 14:29:28 2011
New Revision: 221836
URL: http://svn.freebsd.org/changeset/base/221836
Log:
Correctly use INOUT for the offset/len parameters to vop_allocate. As
far as I can tell this is for documentation only at the moment.
Modified:
head/sys/kern/vnode_if.src
Author: mdf
Date: Fri May 13 15:49:23 2011
New Revision: 221843
URL: http://svn.freebsd.org/changeset/base/221843
Log:
Note that the _SWAP operation is supported for all list/queue types.
Also place STAILQ_REMOVE_HEAD in alphabetical order. Lastly, document
the _SWAP macros.
PR:
Author: mdf
Date: Fri May 13 18:48:00 2011
New Revision: 221853
URL: http://svn.freebsd.org/changeset/base/221853
Log:
Usa a globally visible region of zeros for both /dev/zero and the md
device. There are likely other kernel uses of "blob of zeros" than can
be converted.
Reviewed by:
Author: mdf
Date: Fri May 13 19:35:01 2011
New Revision: 221855
URL: http://svn.freebsd.org/changeset/base/221855
Log:
Move the ZERO_REGION_SIZE to a machine-dependent file, as on many
architectures (i386, for example) the virtual memory space may be
constrained enough that 2MB is a large ch
Author: mdf
Date: Tue May 24 16:04:35 2011
New Revision: 61
URL: http://svn.freebsd.org/changeset/base/61
Log:
MFC r221843:
Note that the _SWAP operation is supported for all list/queue types.
Also place STAILQ_REMOVE_HEAD in alphabetical order. Lastly, document
the _SWAP macro
Author: mdf
Date: Tue May 24 16:06:26 2011
New Revision: 62
URL: http://svn.freebsd.org/changeset/base/62
Log:
MFC r221843:
Note that the _SWAP operation is supported for all list/queue types.
Also place STAILQ_REMOVE_HEAD in alphabetical order. Lastly, document
the _SWAP macro
Author: mdf
Date: Wed Jun 1 15:46:12 2011
New Revision: 222566
URL: http://svn.freebsd.org/changeset/base/222566
Log:
MFC r212364:
Fix small errors in the sbuf(9) man page.
Modified:
stable/8/share/man/man9/sbuf.9
Directory Properties:
stable/8/share/man/man9/ (props changed)
Modif
Author: mdf
Date: Wed Jun 1 15:46:26 2011
New Revision: 222567
URL: http://svn.freebsd.org/changeset/base/222567
Log:
MFC r212364:
Fix small errors in the sbuf(9) man page.
Modified:
stable/7/share/man/man9/sbuf.9
Directory Properties:
stable/7/share/man/man9/ (props changed)
Modif
Author: mdf
Date: Wed Jun 1 16:07:14 2011
New Revision: 222569
URL: http://svn.freebsd.org/changeset/base/222569
Log:
MFC r181462:
Switch to simplified BSD license (with phk's approval), plus whitespace
and style(9) cleanup.
Modified:
stable/7/sys/kern/subr_sbuf.c
stable/7/sys/sys/s
Author: mdf
Date: Wed Jun 1 16:34:18 2011
New Revision: 222570
URL: http://svn.freebsd.org/changeset/base/222570
Log:
MFC r212180-r212184:
Use math rather than iteration when the desired sbuf size is larger than
SBUF_MAXEXTENDSIZE.
Fix brain fart when converting an if statement into
Author: mdf
Date: Wed Jun 1 16:34:26 2011
New Revision: 222571
URL: http://svn.freebsd.org/changeset/base/222571
Log:
MFC r212180-r212184:
Use math rather than iteration when the desired sbuf size is larger than
SBUF_MAXEXTENDSIZE.
Fix brain fart when converting an if statement into
Author: mdf
Date: Wed Jun 1 17:36:52 2011
New Revision: 222574
URL: http://svn.freebsd.org/changeset/base/222574
Log:
MFC r212365, r212367:
r212365: Refactor sbuf code so that most uses of sbuf_extend() are in
a new sbuf_put_byte(). This makes it easier to add drain
functionality when
Author: mdf
Date: Wed Jun 1 17:40:59 2011
New Revision: 222575
URL: http://svn.freebsd.org/changeset/base/222575
Log:
MFC r212365, r212367:
r212365: Refactor sbuf code so that most uses of sbuf_extend() are in
a new sbuf_put_byte(). This makes it easier to add drain
functionality when
Author: mdf
Date: Wed Jun 1 17:51:18 2011
New Revision: 222576
URL: http://svn.freebsd.org/changeset/base/222576
Log:
MFC r212478: (originally by kan@)
Add missing pointer increment to sbuf_cat.
Modified:
stable/8/sys/kern/subr_sbuf.c
Directory Properties:
stable/8/sys/ (props chang
Author: mdf
Date: Wed Jun 1 17:51:27 2011
New Revision: 222577
URL: http://svn.freebsd.org/changeset/base/222577
Log:
MFC r212478: (originally by kan@)
Add missing pointer increment to sbuf_cat.
Modified:
stable/7/sys/kern/subr_sbuf.c
Directory Properties:
stable/7/sys/ (props chang
Author: mdf
Date: Wed Jun 1 18:26:59 2011
New Revision: 222579
URL: http://svn.freebsd.org/changeset/base/222579
Log:
Partial MFC of r212370. np@ requested this functionality so I kept in
the cxgb change, but otherwise MFC'd only the new function
sbuf_new_for_sysctl(9) and none of the chan
Author: mdf
Date: Wed Jun 1 18:27:13 2011
New Revision: 222580
URL: http://svn.freebsd.org/changeset/base/222580
Log:
Partial MFC of r212370. np@ requested this functionality so I kept in
the cxgb change, but otherwise MFC'd only the new function
sbuf_new_for_sysctl(9) and none of the chan
Author: mdf
Date: Sat Mar 30 15:09:04 2013
New Revision: 248933
URL: http://svnweb.freebsd.org/changeset/base/248933
Log:
Use a shared lock for VOP_GETEXTATTR, as it is a read-like operation.
MFC after:1 week
Modified:
head/sys/kern/vfs_extattr.c
head/sys/kern/vfs_vnops.c
Modified
Author: mdf
Date: Tue Apr 2 05:30:41 2013
New Revision: 248995
URL: http://svnweb.freebsd.org/changeset/base/248995
Log:
Fix return type of extattr_set_* and fix rmextattr(8) utility.
extattr_set_{fd,file,link} is logically a write(2)-like operation and
should return ssize_t, just like e
Author: mdf
Date: Tue Apr 2 05:30:52 2013
New Revision: 248996
URL: http://svnweb.freebsd.org/changeset/base/248996
Log:
Regen.
MFC after:1 week
Modified:
head/sys/compat/freebsd32/freebsd32_proto.h
head/sys/compat/freebsd32/freebsd32_syscall.h
head/sys/compat/freebsd32/freebsd3
Author: mdf
Date: Sat May 4 18:38:16 2013
New Revision: 250247
URL: http://svnweb.freebsd.org/changeset/base/250247
Log:
Add missing vdrop() in error case.
Submitted by: Fahad (mohd.fahadul...@isilon.com)
MFC after:1 week
Modified:
head/sys/kern/vfs_subr.c
Modified: head/sys/kern
Author: mdf
Date: Sat May 4 18:44:14 2013
New Revision: 250248
URL: http://svnweb.freebsd.org/changeset/base/250248
Log:
MFC r248933:
Use a shared lock for VOP_GETEXTATTR, as it is a read-like operation.
Modified:
stable/9/sys/kern/vfs_extattr.c
stable/9/sys/kern/vfs_vnops.c
Directory
Author: mdf
Date: Sat May 4 18:49:04 2013
New Revision: 250249
URL: http://svnweb.freebsd.org/changeset/base/250249
Log:
MFC r248933:
Use a shared lock for VOP_GETEXTATTR, as it is a read-like operation.
Modified:
stable/8/sys/kern/vfs_extattr.c
stable/8/sys/kern/vfs_vnops.c
Directory
Author: mdf
Date: Tue Nov 26 17:11:43 2013
New Revision: 258658
URL: http://svnweb.freebsd.org/changeset/base/258658
Log:
Fix a segfault / internal compiler error.
Among other causes, when gcc throws a warning before parsing any tokens,
the cur_token pointer is at the beginning of malloc'
Author: mdf
Date: Thu Dec 12 02:03:42 2013
New Revision: 259242
URL: http://svnweb.freebsd.org/changeset/base/259242
Log:
MFC r258658:
Fix a segfault / internal compiler error.
Among other causes, when gcc throws a warning before parsing any tokens,
the cur_token pointer is at the be
Author: mdf
Date: Thu Dec 12 02:04:59 2013
New Revision: 259243
URL: http://svnweb.freebsd.org/changeset/base/259243
Log:
MFC r258658:
Fix a segfault / internal compiler error.
Among other causes, when gcc throws a warning before parsing any tokens,
the cur_token pointer is at the be
Author: mdf
Date: Thu Oct 3 01:18:06 2013
New Revision: 256013
URL: http://svnweb.freebsd.org/changeset/base/256013
Log:
Fix up typos from r255963 in mtree Makefile. BSD.debug.dist should be
iterated if present, and remove a stray .endif.
Approved by: re (gjb)
Modified:
head/etc/mtr
Author: mdf
Date: Thu Sep 27 23:30:58 2012
New Revision: 241012
URL: http://svn.freebsd.org/changeset/base/241012
Log:
Fix fsck_ffs build with a 64-bit ino_t.
Original code by: Gleb Kurtsou
Modified:
head/sbin/fsck_ffs/fsutil.c
head/sbin/fsck_ffs/gjournal.c
head/sbin/fsck_ffs/ino
Author: mdf
Date: Thu Sep 27 23:31:06 2012
New Revision: 241013
URL: http://svn.freebsd.org/changeset/base/241013
Log:
Fix sbin/ build with a 64-bit ino_t.
Original code by: Gleb Kurtsou
Modified:
head/sbin/dump/traverse.c
head/sbin/fsck_ffs/suj.c
head/sbin/fsdb/fsdb.c
head/sbi
Author: mdf
Date: Thu Sep 27 23:31:12 2012
New Revision: 241014
URL: http://svn.freebsd.org/changeset/base/241014
Log:
Fix bin/ build with a 64-bit ino_t.
Original code by: Gleb Kurtsou
Modified:
head/bin/ls/ls.c
head/bin/ls/print.c
head/bin/rm/rm.c
Modified: head/bin/ls/ls.c
==
Author: mdf
Date: Thu Sep 27 23:31:19 2012
New Revision: 241015
URL: http://svn.freebsd.org/changeset/base/241015
Log:
Fix usr.bin/ and usr.sbin/ build with a 64-bit ino_t.
Original code by: Gleb Kurtsou
Modified:
head/usr.bin/find/ls.c
head/usr.sbin/lpr/lpr/lpr.c
head/usr.sbin/m
Author: mdf
Date: Fri Sep 28 17:34:34 2012
New Revision: 241035
URL: http://svn.freebsd.org/changeset/base/241035
Log:
Fix some nearby type and style errors.
Pointed out by: bde
Modified:
head/sbin/fsck_ffs/main.c
head/sbin/fsck_ffs/pass1.c
head/sbin/fsck_ffs/suj.c
Modified: h
Author: mdf
Date: Fri Oct 26 17:51:05 2012
New Revision: 242152
URL: http://svn.freebsd.org/changeset/base/242152
Log:
Const-ify the zone name argument to uma_zcreate(9).
MFC after:3 days
Modified:
head/lib/libmemstat/memstat_uma.c
head/sys/vm/uma.h
head/sys/vm/uma_core.c
head/
Author: mdf
Date: Tue Oct 30 17:05:12 2012
New Revision: 242365
URL: http://svn.freebsd.org/changeset/base/242365
Log:
MFC r242152:
Const-ify the zone name argument to uma_zcreate(9).
Modified:
stable/9/lib/libmemstat/memstat_uma.c
stable/9/sys/vm/uma.h
stable/9/sys/vm/uma_core.c
s
Author: mdf
Date: Tue Oct 30 17:05:28 2012
New Revision: 242366
URL: http://svn.freebsd.org/changeset/base/242366
Log:
MFC r242152:
Const-ify the zone name argument to uma_zcreate(9).
Modified:
stable/8/lib/libmemstat/memstat_uma.c
stable/8/sys/vm/uma.h
stable/8/sys/vm/uma_core.c
s
Author: mdf
Date: Tue Oct 30 17:05:47 2012
New Revision: 242367
URL: http://svn.freebsd.org/changeset/base/242367
Log:
MFC r242152:
Const-ify the zone name argument to uma_zcreate(9).
Modified:
stable/7/lib/libmemstat/memstat_uma.c
stable/7/sys/vm/uma.h
stable/7/sys/vm/uma_core.c
s
Author: mdf
Date: Mon Jul 2 20:36:54 2012
New Revision: 238027
URL: http://svn.freebsd.org/changeset/base/238027
Log:
MFC r217322. Original commit log:
sysctl(9) cleanup checkpoint: amd64 GENERIC builds cleanly.
Commit the net* piece.
The commit to HEAD was a superset of the propos
Author: mdf
Date: Sun Jul 15 20:29:48 2012
New Revision: 238502
URL: http://svn.freebsd.org/changeset/base/238502
Log:
Fix a bug with memguard(9) on 32-bit architectures without a
VM_KMEM_MAX_SIZE.
The code was not taking into account the size of the kernel_map, which
the kmem_map is al
Author: mdf
Date: Sat May 26 20:13:24 2012
New Revision: 236118
URL: http://svn.freebsd.org/changeset/base/236118
Log:
MFC r235297, r235316:
Add a -v and -N option to kenv(1), so it can be more easily used in
scripts the way sysctl(8) is. The -N option, like in sysctl(8),
displays only
Author: mdf
Date: Wed Apr 4 06:59:04 2012
New Revision: 233861
URL: http://svn.freebsd.org/changeset/base/233861
Log:
Release gleb from mentorship.
Modified:
svnadmin/conf/mentors
Modified: svnadmin/conf/mentors
==
Author: mdf
Date: Fri May 11 23:05:14 2012
New Revision: 235297
URL: http://svn.freebsd.org/changeset/base/235297
Log:
Add a -v and -N option to kenv(1), so it can be more easily used in
scripts the way sysctl(8) is. The -N option, like in sysctl(8),
displays only the kenv names, not their
Author: mdf
Date: Sat May 12 02:49:40 2012
New Revision: 235316
URL: http://svn.freebsd.org/changeset/base/235316
Log:
I forgot to bump the manpage date.
Reminded by: Garrett Cooper
MFC after:3 days
X-MFC-with: r235297
Modified:
head/bin/kenv/kenv.1
Modified: head/bin/kenv/ke
Author: mdf
Date: Wed Aug 22 17:13:00 2012
New Revision: 239565
URL: http://svn.freebsd.org/changeset/base/239565
Log:
MFC r238502:
Fix a bug with memguard(9) on 32-bit architectures without a
VM_KMEM_MAX_SIZE.
The code was not taking into account the size of the kernel_map, which
Author: mdf
Date: Wed Aug 22 17:16:05 2012
New Revision: 239566
URL: http://svn.freebsd.org/changeset/base/239566
Log:
MFC r238502:
Fix a bug with memguard(9) on 32-bit architectures without a
VM_KMEM_MAX_SIZE.
The code was not taking into account the size of the kernel_map, which
Author: mdf
Date: Thu Sep 27 23:30:49 2012
New Revision: 241011
URL: http://svn.freebsd.org/changeset/base/241011
Log:
Fix up kernel sources to be ready for a 64-bit ino_t.
Original code by: Gleb Kurtsou
Modified:
head/sys/fs/ext2fs/ext2_alloc.c
head/sys/fs/ext2fs/ext2_inode_cnv.c
Author: mdf
Date: Thu Jul 22 16:41:09 2010
New Revision: 210377
URL: http://svn.freebsd.org/changeset/base/210377
Log:
Fix taskqueue_drain(9) to not have false negatives. For threaded
taskqueues, more than one task can be running simultaneously.
Also make taskqueue_run(9) static to the f
Author: mdf
Date: Thu Jul 22 17:23:43 2010
New Revision: 210380
URL: http://svn.freebsd.org/changeset/base/210380
Log:
Remove unused variable that snuck in during development.
Approved by:zml (mentor)
Modified:
head/sys/kern/subr_taskqueue.c
Modified: head/sys/kern/subr_taskqueue.c
Author: mdf
Date: Wed Jul 28 15:36:12 2010
New Revision: 210564
URL: http://svn.freebsd.org/changeset/base/210564
Log:
Add MALLOC_DEBUG_MAXZONES debug malloc(9) option to use multiple uma
zones for each malloc bucket size. The purpose is to isolate
different malloc types into hash classes,
Author: mdf
Date: Wed Jul 28 15:47:32 2010
New Revision: 210565
URL: http://svn.freebsd.org/changeset/base/210565
Log:
Bump __FreeBSD_version for multizone malloc(9).
Approved by:zml (mentor)
Modified:
head/sys/sys/param.h
Modified: head/sys/sys/param.h
=
Author: mdf
Date: Wed Jul 28 16:24:06 2010
New Revision: 210569
URL: http://svn.freebsd.org/changeset/base/210569
Log:
Fix clang warning on empty statement.
Reviewed by:rdivacky, zml
Approved by:zml (mentor)
Modified:
head/sys/dev/e1000/e1000_osdep.h
Modified: head/sys/dev/e10
Author: mdf
Date: Wed Jul 28 16:24:11 2010
New Revision: 210570
URL: http://svn.freebsd.org/changeset/base/210570
Log:
Fix clang warning on empty statement.
Reviewed by:rdivacky, zml
Approved by:zml (mentor)
Modified:
head/sys/dev/amr/amrvar.h
Modified: head/sys/dev/amr/amrvar
Author: mdf
Date: Fri Jul 30 20:25:04 2010
New Revision: 210663
URL: http://svn.freebsd.org/changeset/base/210663
Log:
Add MALLOC_DEBUG_MAXZONES=8 to powerpc64 GENERIC configuration file.
Requested by:nwhitehorn
Approved by: zml (mentor)
Modified:
head/sys/powerpc/conf/GENERIC6
Author: mdf
Date: Thu Aug 12 16:54:43 2010
New Revision: 211229
URL: http://svn.freebsd.org/changeset/base/211229
Log:
Fix compile. It seemed better to have memguard.c include opt_vm.h in
case future compile-time knobs were added that it wants to use.
Also add include guards and forward dec
Author: mdf
Date: Tue Aug 31 16:57:58 2010
New Revision: 212058
URL: http://svn.freebsd.org/changeset/base/212058
Log:
The realloc case for memguard(9) will copy too many bytes when
reallocating to a smaller-sized allocation. Fix this issue.
Noticed by: alc
Reviewed by:alc
Ap
Author: mdf
Date: Tue Aug 31 17:43:47 2010
New Revision: 212063
URL: http://svn.freebsd.org/changeset/base/212063
Log:
Have memguard(9) crash with an easier-to-debug message on double-free.
Reviewed by:zml
MFC after: 3 weeks
Modified:
head/sys/vm/memguard.c
Modified: head/sys
Author: mdf
Date: Wed Sep 1 20:32:47 2010
New Revision: 212115
URL: http://svn.freebsd.org/changeset/base/212115
Log:
Fix a bug with sched_affinity() where it checks td_pinned of another
thread in a racy manner, which can lead to attempting to migrate a
thread that is pinned to a CPU. Inst
Author: mdf
Date: Thu Sep 2 16:23:05 2010
New Revision: 212153
URL: http://svn.freebsd.org/changeset/base/212153
Log:
Fix UP build.
MFC after:2 weeks
Modified:
head/sys/kern/sched_ule.c
Modified: head/sys/kern/sched_ule.c
Author: mdf
Date: Fri Sep 3 16:09:17 2010
New Revision: 212180
URL: http://svn.freebsd.org/changeset/base/212180
Log:
Use math rather than iteration when the desired sbuf size is larger than
SBUF_MAXEXTENDSIZE.
Modified:
head/sys/kern/subr_sbuf.c
Modified: head/sys/kern/subr_sbuf.c
==
Author: mdf
Date: Fri Sep 3 16:12:39 2010
New Revision: 212181
URL: http://svn.freebsd.org/changeset/base/212181
Log:
Fix brain fart when converting an if statement into a KASSERT.
Modified:
head/sys/kern/subr_sbuf.c
Modified: head/sys/kern/subr_sbuf.c
==
Author: mdf
Date: Fri Sep 3 17:23:26 2010
New Revision: 212182
URL: http://svn.freebsd.org/changeset/base/212182
Log:
Fix user-space libsbuf build. Why isn't CTASSERT available to
user-space?
Modified:
head/sys/kern/subr_sbuf.c
Modified: head/sys/kern/subr_sbuf.c
Author: mdf
Date: Fri Sep 3 17:42:12 2010
New Revision: 212183
URL: http://svn.freebsd.org/changeset/base/212183
Log:
Style(9) fixes and eliminate the use of min().
Modified:
head/sys/kern/subr_sbuf.c
Modified: head/sys/kern/subr_sbuf.c
==
Author: mdf
Date: Fri Sep 3 17:42:17 2010
New Revision: 212184
URL: http://svn.freebsd.org/changeset/base/212184
Log:
Use a better #if guard.
Suggested by pluknet .
Modified:
head/sys/kern/subr_sbuf.c
Modified: head/sys/kern/subr_sbuf.c
=
Author: mdf
Date: Thu Sep 9 16:27:02 2010
New Revision: 212364
URL: http://svn.freebsd.org/changeset/base/212364
Log:
Fix small errors in the sbuf(9) man page.
Modified:
head/share/man/man9/sbuf.9
Modified: head/share/man/man9/sbuf.9
=
Author: mdf
Date: Thu Sep 9 16:51:52 2010
New Revision: 212365
URL: http://svn.freebsd.org/changeset/base/212365
Log:
Refactor sbuf code so that most uses of sbuf_extend() are in a new
sbuf_put_byte(). This makes it easier to add drain functionality when a
buffer would overflow as there ar
Author: mdf
Date: Thu Sep 9 17:49:18 2010
New Revision: 212367
URL: http://svn.freebsd.org/changeset/base/212367
Log:
Add drain functionality to sbufs. The drain is a function that is
called when the sbuf internal buffer is filled. For kernel sbufs with a
drain, the internal buffer will n
Author: mdf
Date: Thu Sep 9 18:33:46 2010
New Revision: 212370
URL: http://svn.freebsd.org/changeset/base/212370
Log:
Add a drain function for struct sysctl_req, and use it for a variety of
handlers, some of which had to do awkward things to get a large enough
FIXEDLEN buffer.
Note tha
Author: mdf
Date: Thu Sep 9 18:35:08 2010
New Revision: 212371
URL: http://svn.freebsd.org/changeset/base/212371
Log:
Fix an incorrect use of sbuf_overflowed() after a call to sbuf_finish().
Modified:
head/sys/dev/led/led.c
Modified: head/sys/dev/led/led.c
==
Author: mdf
Date: Thu Sep 9 21:01:41 2010
New Revision: 212381
URL: http://svn.freebsd.org/changeset/base/212381
Log:
Bump __FreeBSD_version for sbuf ABI change.
Modified:
head/sys/sys/param.h
Modified: head/sys/sys/param.h
===
Author: mdf
Date: Fri Sep 10 16:42:16 2010
New Revision: 212425
URL: http://svn.freebsd.org/changeset/base/212425
Log:
Replace sbuf_overflowed() with sbuf_error(), which returns any error
code associated with overflow or with the drain function. While this
function is not expected to be use
Author: mdf
Date: Fri Sep 10 17:26:41 2010
New Revision: 212427
URL: http://svn.freebsd.org/changeset/base/212427
Log:
MFC r211194, r211229, r212058, r212063: memguard(9) rewrite
r211194:
Rework memguard(9) to reserve significantly more KVA to detect
use-after-free over a longer time
Author: mdf
Date: Fri Sep 10 20:42:41 2010
New Revision: 212435
URL: http://svn.freebsd.org/changeset/base/212435
Log:
Mark the sbuf_overflowed(9) manpage as obsolete since it has been
renamed.
Noticed by: jhb
Modified:
head/ObsoleteFiles.inc
Modified: head/ObsoleteFiles.inc
===
Author: mdf
Date: Fri Sep 10 21:53:47 2010
New Revision: 212437
URL: http://svn.freebsd.org/changeset/base/212437
Log:
MFC r211194, r211229, r212058, r212063: memguard(9) rewrite
r211194:
Rework memguard(9) to reserve significantly more KVA to detect
use-after-free over a longer time
Author: mdf
Date: Fri Jun 4 17:54:30 2010
New Revision: 208807
URL: http://svn.freebsd.org/changeset/base/208807
Log:
- Add myself to committers-src.dot
- Add myself to calendar.freebsd
Approved by: zml (mentor)
Modified:
head/share/misc/committers-src.dot
head/usr.bin/calendar/cal
Author: mdf
Date: Fri Jun 11 17:03:26 2010
New Revision: 209053
URL: http://svn.freebsd.org/changeset/base/209053
Log:
Add INVARIANTS checking that numfreebufs values are sane. Also add a
per-buf flag to catch if a buf is double-counted in the free count.
This code was useful to debug an in
101 - 191 of 191 matches
Mail list logo