NetBSD/sys/kern
thorpej 16c229ea7c Optimization suggested by Bill Sommerfeld: Keep a hint as to the
"earliest" firing callout in a bucket.  This allows us to skip
the scan up the bucket if no callouts are due in the bucket.

A cheap O(1) hint update is done at callout insertion (if new callout
is earlier than hint) and removal (is bucket empty).  A thorough
refresh of the hint is done when the bucket is traversed.

This doesn't matter much on machines with small values of hz
(e.g. i386), but on systems with large values of hz (e.g. Alpha),
it has a definite positive effect.

Also, keep the callwheel stats in evcnts, so that you can view them
with "vmstat -e".
2001-09-11 04:32:19 +00:00
..
cnmagic.c only print the magic number changing if not cold 2000-12-19 04:39:19 +00:00
exec_aout.c
exec_conf.c add mach/macho exec struct 2001-07-14 02:06:34 +00:00
exec_ecoff.c
exec_elf32.c simplify an expression. 2001-07-29 21:24:23 +00:00
exec_elf64.c
exec_elf_common.c
exec_macho.c use be32toh instead of bswap32 2001-07-14 03:05:31 +00:00
exec_script.c In check_exec(), don't bother checking P_TRACED along with 2001-06-15 17:24:19 +00:00
exec_subr.c - add exec_read_from and make exec_elf32 use it. 2001-07-14 02:08:29 +00:00
genassym.awk
genassym.sh when executing args in the ccode=0 case, send output to a tmp file and 2001-03-06 02:20:18 +00:00
genlintstub.awk Add a /* LINTSTUB: include <foo.h> */ mechanism. 2001-05-16 04:17:04 +00:00
init_main.c user maps are always pageable. 2001-08-16 01:37:50 +00:00
init_sysent.c Regen; added Linux-compatible clone(2) system call. 2001-07-01 18:07:33 +00:00
kern_acct.c
kern_allocsys.c Really only need uvm_extern.h. From Chuck Cranor. 2001-06-25 22:08:52 +00:00
kern_clock.c Optimization suggested by Bill Sommerfeld: Keep a hint as to the 2001-09-11 04:32:19 +00:00
kern_descrip.c Unshare the file descriptor table and `cwdinfo' when we exec. 2001-07-18 05:34:37 +00:00
kern_exec.c - make copyargs function return the reason it failed and pass a pointer to 2001-07-29 21:22:42 +00:00
kern_exit.c Add `WALLSIG' which causes wait4(2) to wait for all processes, regardless 2001-07-18 19:10:26 +00:00
kern_fork.c flags was used uninitialized. 2001-07-07 23:33:54 +00:00
kern_kthread.c
kern_ktrace.c Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
kern_lkm.c add a DEBUG for why the lkm entry point failed. 2001-06-05 12:36:08 +00:00
kern_lock.c synchron*, not sychron* 2001-07-08 17:41:14 +00:00
kern_malloc_debug.c Artur Grabowski's simple brute-force malloc debugger, which uses 2001-08-17 00:48:29 +00:00
kern_malloc.c Artur Grabowski's simple brute-force malloc debugger, which uses 2001-08-17 00:48:29 +00:00
kern_ntptime.c
kern_physio.c s/necesary/necessary/ 2001-07-24 16:43:02 +00:00
kern_proc.c When freeing a session, remove the reference to it from the associated tty. 2001-02-04 22:32:24 +00:00
kern_prot.c Remove an splimp() that really has no purpose in life. 2001-04-12 03:08:42 +00:00
kern_resource.c Move maxdmap and maxsmap where they belong and make them big enough. 2001-02-06 19:54:43 +00:00
kern_sig.c Unshare signal actions on exec. 2001-07-18 05:34:58 +00:00
kern_subr.c Make "reboot" an option at the root device/filesystem prompt (we 2001-05-27 01:29:50 +00:00
kern_synch.c don't define bpendtsleep in profiling kernels since it confuses gprof. 2001-05-28 22:20:03 +00:00
kern_sysctl.c Add a sysctl to frob sb_max. 2001-07-27 21:19:09 +00:00
kern_time.c Lower interrupt priortiy properly if setting the setting the kernel time 2001-06-11 07:07:12 +00:00
kern_xxx.c
kgdb_stub.c Disable single step when entering KGDB. S-S will be enabled later if 2001-07-07 22:58:00 +00:00
Make.tags.inc use ${.CURDIR:H:H} instead of ../.. for default setting of SYSDIR, 2001-04-18 11:21:24 +00:00
Makefile SYSDIR should be relative here, too. 2001-04-05 19:49:40 +00:00
makesyscalls.sh Fix last commit: It's ">", not "<", in this case. Okay'd by christos. 2001-07-08 19:08:48 +00:00
subr_autoconf.c In-kernel device configuration manager - allows modification 2001-07-01 02:56:20 +00:00
subr_disk.c ANSIfy. 2001-07-09 10:54:12 +00:00
subr_extent.c extent_alloc_subregion shouldn't allocate a region pasts the end of subregion. 2001-08-27 13:35:44 +00:00
subr_log.c
subr_pool.c Protect the `pool cache group' pool with splvm(), so that pool caches 2001-07-01 06:12:20 +00:00
subr_prf.c Check msgbufenabled before referencing msgbufp in panic. Avoids 2001-07-10 20:40:56 +00:00
subr_prof.c Before allowing kgmon to do anything, check that we managed to allocate the 2001-04-28 12:56:00 +00:00
subr_rmap.c
subr_userconf.c bcopy -> memcpy 2001-07-18 06:51:38 +00:00
subr_xxx.c
sys_generic.c If no select collision is needed, try our best to avoid it by clearing 2001-06-28 05:45:49 +00:00
sys_pipe.c pipe_create(): explicitly zero whole memory returned from pool_get(), instead 2001-07-26 14:14:28 +00:00
sys_process.c seperate -> separate 2001-07-22 13:33:58 +00:00
sys_socket.c Use SB_ASYNC in struct sockbuf sb_flags field instead of SS_ASYNC in 2001-06-16 21:29:32 +00:00
syscalls.c Regen; added Linux-compatible clone(2) system call. 2001-07-01 18:07:33 +00:00
syscalls.conf Round up the sysent table size. 2000-12-09 06:15:42 +00:00
syscalls.master Linux-compatible clone(2) system call, lifted from the Linux 2001-07-01 18:06:11 +00:00
sysv_ipc.c
sysv_msg.c
sysv_sem.c make local 'nsops' same unsigned type as the value we store there in sys_semop() 2001-08-03 05:58:18 +00:00
sysv_shm.c eliminate the KERN_* error codes in favor of the traditional E* codes. 2001-03-15 06:10:32 +00:00
tty_conf.c bzero -> memset 2001-07-18 06:48:27 +00:00
tty_pty.c Add l_poll' to struct linesw' and provide an xxxpoll() entry point 2001-05-02 10:32:08 +00:00
tty_subr.c
tty_tb.c Remove unnecessary test of tp->t_linesw against NULL; they are results 2001-03-31 00:35:21 +00:00
tty_tty.c
tty.c Add l_poll' to struct linesw' and provide an xxxpoll() entry point 2001-05-02 10:32:08 +00:00
uipc_domain.c add pfctlinput2() (pfctlinput() with args). 2001-02-11 06:38:45 +00:00
uipc_mbuf2.c bcopy -> memcpy 2001-07-18 06:51:38 +00:00
uipc_mbuf.c Use pool_cache_*() for mbufs and clusters. While we don't use the 2001-07-26 19:05:04 +00:00
uipc_proto.c
uipc_socket2.c Give different names for different wait channels. 2001-08-05 08:25:39 +00:00
uipc_socket.c Remove the use of splimp() from the NetBSD kernel. splnet() 2001-04-13 23:29:55 +00:00
uipc_syscalls.c Expel MSG_COMPAT/COMPAT_OLDSOCK, make the COMPAT_43 wrappers 2001-07-17 11:49:40 +00:00
uipc_usrreq.c Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
vfs_bio.c in bwrite(), when deciding whether to convert sync writes into delayed writes, 2001-04-01 16:16:56 +00:00
vfs_cache.c Depending on the NAMECACHE_ENTER_REVERSE option, always enter reverse 2001-03-29 22:39:23 +00:00
vfs_cluster.c
vfs_getcwd.c Jump out of the scandir loop if VOP_READDIR returns an error, avoiding 2000-12-15 11:52:14 +00:00
vfs_init.c make filesystem vnodeop, specop, fifoop and vnodeopv_* arrays const 2001-01-22 12:17:35 +00:00
vfs_lockf.c
vfs_lookup.c Set the credentials to be used in the NDINIT macro so that syscalls can 2001-09-08 02:02:04 +00:00
vfs_subr.c bound check mount args more thoroughly 2001-08-03 06:00:13 +00:00
vfs_syscalls.c Don't trash the ref count of cred. It causes a memory leak. 2001-09-08 15:34:06 +00:00
vfs_vnops.c Change the first arg to fileops fo_stat routine to struct file *, adjust 2001-04-09 10:22:00 +00:00
vnode_if.c change vop_symlink and vop_mknod to return vpp (the created node) 2001-07-24 15:39:30 +00:00
vnode_if.sh delint: vop_default_desc was declared const but not defined const. 2001-05-07 08:46:02 +00:00
vnode_if.src change vop_symlink and vop_mknod to return vpp (the created node) 2001-07-24 15:39:30 +00:00