freebsd-src/sys
Alan Cox 9e4e511499 Change the order in which the file name, arguments, environment, and
shell command are stored in exec*()'s demand-paged string buffer.  For
a "buildworld" on an 8GB amd64 multiprocessor, the new order reduces
the number of global TLB shootdowns by 31%.  It also eliminates about
330k page faults on the kernel address space.

Change exec_shell_imgact() to use "args->begin_argv" consistently as
the start of the argument and environment strings.  Previously, it
would sometimes use "args->buf", which is the start of the overall
buffer, but no longer the start of the argument and environment
strings.  While I'm here, eliminate unnecessary passing of "&length"
to copystr(), where we don't actually care about the length of the
copied string.

Clean up the initialization of the exec map.  In particular, use the
correct size for an entry, and express that size in the same way that
is used when an entry is allocated.  The old size was one page too
large.  (This discrepancy originated in 2004 when I rewrote
exec_map_first_page() to use sf_buf_alloc() instead of the exec map
for mapping the first page of the executable.)

Reviewed by:	kib
2010-07-25 17:43:38 +00:00
..
amd64 Regen 2010-07-23 21:31:03 +00:00
arm Allow external interrupts. 2010-07-24 23:41:09 +00:00
boot MFi386: revision 210387 2010-07-25 02:22:32 +00:00
bsm
cam Export PCI IDs of ATA/SATA controllers through CAM and ata(4) layers to 2010-07-25 15:43:52 +00:00
cddl Import two changesets from OpenSolaris to make future updates easier. 2010-07-25 15:17:24 +00:00
compat Change the order in which the file name, arguments, environment, and 2010-07-25 17:43:38 +00:00
conf Move sys/nfsclient/nfs_lock.c into sys/nfs and build it as a separate 2010-07-24 22:11:11 +00:00
contrib Update the port of FreeBSD to Cavium Octeon to use the Cavium Simple Executive 2010-07-20 19:25:11 +00:00
crypto Crypto(4) driver for AESNI. 2010-07-23 11:00:46 +00:00
ddb One more use for _SIG_VALID. 2010-07-12 10:18:10 +00:00
dev Export PCI IDs of ATA/SATA controllers through CAM and ata(4) layers to 2010-07-25 15:43:52 +00:00
fs Move sys/nfsclient/nfs_lock.c into sys/nfs and build it as a separate 2010-07-24 22:11:11 +00:00
gdb
geom Export PCI IDs of ATA/SATA controllers through CAM and ata(4) layers to 2010-07-25 15:43:52 +00:00
gnu Move checking against RLIMIT_FSIZE into one place, vn_rlimit_fsize(). 2010-05-05 16:44:25 +00:00
i386 MFamd64: 2010-07-21 18:47:52 +00:00
ia64 When compat32 binary asks for the value of hw.machine_arch, report the 2010-07-22 09:13:49 +00:00
isa When we are not switching VTs, just mark all buffer to be updated. 2010-07-15 23:11:51 +00:00
kern Change the order in which the file name, arguments, environment, and 2010-07-25 17:43:38 +00:00
kgssapi
libkern Provide memchr() in the libkern. 2010-06-02 17:27:23 +00:00
mips Get N64 building by defining VM_FREELIST_DIRECT to be 2010-07-25 04:19:05 +00:00
modules Move sys/nfsclient/nfs_lock.c into sys/nfs and build it as a separate 2010-07-24 22:11:11 +00:00
net Fix an obvious typo from r1.1. We were acquiring an exclusive writer lock 2010-07-22 18:44:40 +00:00
net80211 - Introduce IEEE80211_KEY_NOREPLAY, a per-key flag to ignore replay 2010-07-01 20:50:12 +00:00
netatalk
netgraph Remove defunct email address from header as well. 2010-07-06 16:55:39 +00:00
netinet - Move common code from the hook functions that fills in a packet node struct to 2010-07-18 05:09:10 +00:00
netinet6 Since r186119 IP6 input counters for octets and packets were not 2010-07-21 13:01:21 +00:00
netipsec MFp4 @178283: 2010-05-24 16:27:47 +00:00
netipx
netnatm
netncp
netsmb
nfs Move sys/nfsclient/nfs_lock.c into sys/nfs and build it as a separate 2010-07-24 22:11:11 +00:00
nfsclient Move sys/nfsclient/nfs_lock.c into sys/nfs and build it as a separate 2010-07-24 22:11:11 +00:00
nfsserver
nlm
opencrypto Use the fpu_kern_enter() interface to properly separate usermode FPU 2010-06-05 16:00:53 +00:00
pc98 Store fsbase and gsbase in the right fields of the mcontext. They were 2010-07-20 12:36:36 +00:00
pci Implement WOL. WOL is supported on RTL8139B or newer controllers. 2010-07-19 18:01:06 +00:00
powerpc When compat32 binary asks for the value of hw.machine_arch, report the 2010-07-22 09:13:49 +00:00
rpc
security Add a case to make sure that internal audit records get converted 2010-05-04 15:29:07 +00:00
sparc64 KTR_CTx are long time aliased by existing classes so they can't serve 2010-07-21 10:05:07 +00:00
sun4v KTR_CTx are long time aliased by existing classes so they can't serve 2010-07-21 10:05:07 +00:00
sys Use forward declartion for enum uio_seg in imgact.h. This allows to remove 2010-07-24 18:14:34 +00:00
teken
tools Flattened Device Tree helper scripts. 2010-06-02 17:22:38 +00:00
ufs Revert the previous commit. The race is not applicable to the lockmgr 2010-07-16 19:52:03 +00:00
vm Change the order in which the file name, arguments, environment, and 2010-07-25 17:43:38 +00:00
x86 Increment td->td_intr_nesting_level for LAPIC timer interrupts. Among other 2010-07-24 10:49:59 +00:00
xdr
xen
Makefile