Age | Commit message (Collapse) | Author |
|
|
|
Idea from NetBSD, OK deraadt@
|
|
|
|
the argv[0] would be normalized, and hence break scripts
that depend on how they were called.
this fixes an issue in the ports builds.
ok provos@ deraadt@; lots of testing during hackathon sturm@ naddy@
|
|
|
|
|
|
|
|
with modifications from me. Includes code for generic interrupt counter
fetching via sysctl. deraadt@ tholo@ drahn@ millert@ ok
|
|
|
|
translates a cpu_info structure into a human-readable cpu number.
drahn@ deraadt@ ok
|
|
Add trivial support for passing a NULL pointer for the argv buffer;
currently just returns ARG_MAX for KERN_PROC_ARGV and KERN_PROC_ENV.
|
|
encapsulating all such access into wall-defined functions
that makes sure locking is done as needed.
It also cleans up some uses of wall time vs. uptime some
places, but there is sure to be more of these needed as
well, particularily in MD code. Also, many current calls
to microtime() should probably be changed to getmicrotime(),
or to the {,get}microuptime() versions.
ok art@ deraadt@ aaron@ matthieu@ beck@ sturm@ millert@ others
"Oh, that is not your problem!" from miod@
|
|
- add an exec message so that whenever a set-uid/gid process
exec's a new image which we may control, the exec does not
go by unnoticed.
- take special care to check for P_SUGIDEXEC as well as
P_SUGID, corresponding to the same changes that were made in
the ptrace code a while ago
ok niels@, sturm@; thanks to naddy for testing
|
|
things such that code that only need a second-resolution uptime or wall
time, and used to get that from time.tv_secs or mono_time.tv_secs now get
this from separate time_t globals time_second and time_uptime.
ok art@ niklas@ nordin@
|
|
Found by otto@drijf.net
deraadt@ ok
|
|
scheduling errors on non-i386 yet.
deraadt@ aaron@ ok
|
|
in malloc_debug.
Also, add an assert-like function to sprinkle in code you're debugging at the
moment. Those asserts are _not_ supposed to be ever comitted, just use them
while debugging.
beck@ ok
|
|
|
|
|
|
|
|
|
|
in reality, sometimes it's not. we don't trust vnlock, and since it's 100%
guaranteed to panic if it gets here, just completely stop using it.
crash by henning, ok deraadt
|
|
Introduce the cpu_info structure, p_cpu field in struct proc and global
scheduling context and various changed code to deal with this. At the
moment no architecture uses this stuff yet, but it will allow us slow and
controlled migration to the new APIs.
All new code is ifdef:ed out.
ok deraadt@ niklas@
|
|
remove alpha specific definition of ncpus.
OK (and tested on alpha) deraadt@
|
|
|
|
the new one remains the default and _nointr.
_kmem is restored to its former position, and _oldnointr is
introduced.
this is to allow some pool users who don't like the new allocator
to continue working. testing/ok beck@ cedric@
|
|
The hotplug pseudo-device passes device attachment and detachment events
to userland. When a device attaches or detaches, the corresponding event
is queued. The events can then be obtained from the queue through the
read(2) call on the /dev/hotplug device file. Each event consists of
event type (attach/detach), device class (DV_*) and device name (sd1 e.g.).
We have hotplug pseudo-device on alpha, amd64, i386, macppc and sparc64.
Since it was tested only on i386 other archs has it commented out
in GENERIC until tested.
The idea liked peter@ tedu@ drahn@ millert@ marco@ henning@.
Ok deraadt@.
|
|
|
|
ok art@ deraadt@
|
|
ok david@ millert@ (iirc)
|
|
update cpu even with 100 -> 100 setperf changes, in case saved value
has gotten out of sync. from grange@ ok deraadt@ grange@
|
|
change both the nointr and default pool allocators to using uvm_km_getpage.
change pools to default to a maxpages value of 8, so they hoard less memory.
change mbuf pools to use default pool allocator.
pools are now more efficient, use less of kmem_map, and a bit faster.
tested mcbride, deraadt, pedro, drahn, miod to work everywhere
|
|
|
|
|
|
from form@pdp-11.org.ru via mpech. ok millert
|
|
|
|
vnode's mount point. this makes it impossible for a user to bypass the
noexec protection of a mount point by null-mounting it on top of itself.
ok tedu@ millert@
|
|
ok miod@
|
|
This matches our SLIST behaviour and NetBSD's SIMPLEQ as well.
ok millert krw deraadt
|
|
|
|
Create new syscalls with the correct parameters and add compat versions
for the old ones under COMPAT_35.
|
|
CV ----------------------------------------------------------------------
|
|
|
|
user visible changes:
- you can add multiple routes with same key (route add A B then route add A C)
- you have to specify gateway address if there are multiple entries on the table
(route delete A B, instead of route delete A)
kernel change:
- radix_node_head has an extra entry
- rnh_deladdr takes extra argument
TODO:
- actually take advantage of multipath (rtalloc -> rtalloc_mpath)
|
|
an interrupt safe thread.
use this as the new backend for mbpool and mclpool, eliminating the mb_map.
introduce a sysctl kern.maxclusters which controls the limit of clusters
allocated.
testing by many people, works everywhere but m68k. ok deraadt@
this essentially deprecates the NMBCLUSTERS option, don't use it.
this should reduce pressure on the kmem_map and the uvm reserve of static
map entries.
|
|
|
|
to get some experience with these ideas.
add sbcheckreserve() api; called by accepting sockets. if over 95% of
mbuf clusters are busy, consider this a resource starvation just like the
other reasons for accept failing. also, if over 50% of mbuf clusters are
busy, shrink recv & send sockbuf reserves to "the minimum".
|
|
Fixes pr3740. Confirmed with pb@, ok markus@.
|
|
|
|
separate exec format from emulation. consistent naming of freebsd emuls.
not much in the way of functional changes yet.
testing and ok deraadt@ and others along the way.
|