Up to [cvs.NetBSD.org] / src / sys / kern
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.186 / (download) - annotate - [select for diffs], Sat Jun 9 02:31:14 2012 UTC (11 months, 1 week ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
tls-maxphys-nbase,
tls-maxphys-base,
tls-maxphys,
khorben-n900,
agc-symver-base,
agc-symver,
HEAD
Changes since 1.185: +5 -2
lines
Diff to previous 1.185 (colored)
Add a new resource to limit the number of lwps per user, RLIMIT_NTHR. There is a global sysctl kern.maxlwp to control this, which is by default 2048. The first lwp of each process or kernel threads are not counted against the limit. To show the current resource usage per user, I added a new sysctl that dumps the uidinfo structure fields.
Revision 1.185 / (download) - annotate - [select for diffs], Wed Jun 6 11:20:21 2012 UTC (11 months, 1 week ago) by martin
Branch: MAIN
Changes since 1.184: +3 -4
lines
Diff to previous 1.184 (colored)
Henning Petersen in PR kern/46552: include cosmetics
Revision 1.184 / (download) - annotate - [select for diffs], Tue Jun 5 08:23:05 2012 UTC (11 months, 2 weeks ago) by martin
Branch: MAIN
Changes since 1.183: +3 -3
lines
Diff to previous 1.183 (colored)
Measure kinfo_proc2::p_vm_vsize in pages, as it was always documented. This value seems to never have been used anywhere. This makes it consistent with it's cousin p_vm_msize (which is in pages as well and has several uses).
Revision 1.183 / (download) - annotate - [select for diffs], Fri Apr 13 15:32:15 2012 UTC (13 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pagecache-base5,
yamt-pagecache-base4,
jmcneill-usbmp-base9,
jmcneill-usbmp-base10
Changes since 1.182: +7 -2
lines
Diff to previous 1.182 (colored)
comment
Revision 1.182 / (download) - annotate - [select for diffs], Sun Feb 19 21:06:52 2012 UTC (14 months, 4 weeks ago) by rmind
Branch: MAIN
CVS Tags: jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3
Changes since 1.181: +2 -5
lines
Diff to previous 1.181 (colored)
Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3! Approved by core@.
Revision 1.181 / (download) - annotate - [select for diffs], Sat Feb 11 23:16:17 2012 UTC (15 months, 1 week ago) by martin
Branch: MAIN
CVS Tags: netbsd-6-base,
jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.180: +3 -3
lines
Diff to previous 1.180 (colored)
Add a posix_spawn syscall, as discussed on tech-kern. Based on the summer of code project by Charles Zhang, heavily reworked later by me - all bugs are likely mine. Ok: core, releng.
Revision 1.180 / (download) - annotate - [select for diffs], Fri May 13 22:22:03 2011 UTC (2 years ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
rmind-uvmplock-nbase,
rmind-uvmplock-base,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3,
cherry-xenmp-base,
cherry-xenmp
Branch point for: yamt-pagecache,
jmcneill-usbmp
Changes since 1.179: +27 -18
lines
Diff to previous 1.179 (colored)
Sprinkle __cacheline_aligned and __read_mostly, also const-ify.
Revision 1.179 / (download) - annotate - [select for diffs], Sun May 1 01:15:18 2011 UTC (2 years ago) by rmind
Branch: MAIN
Changes since 1.178: +5 -2
lines
Diff to previous 1.178 (colored)
- Remove FORK_SHARELIMIT and PL_SHAREMOD, simplify lim_privatise(). - Use kmem(9) for struct plimit::pl_corename.
Revision 1.178 / (download) - annotate - [select for diffs], Sun May 1 00:22:36 2011 UTC (2 years ago) by rmind
Branch: MAIN
Changes since 1.177: +3 -12
lines
Diff to previous 1.177 (colored)
Merge duplicate code fragments into a new lim_setcorename() routine.
Revision 1.177 / (download) - annotate - [select for diffs], Sun May 1 00:11:52 2011 UTC (2 years ago) by rmind
Branch: MAIN
Changes since 1.176: +21 -19
lines
Diff to previous 1.176 (colored)
Rename limfree() to lim_free(), misc clean up. No functional change.
Revision 1.176 / (download) - annotate - [select for diffs], Wed Apr 27 00:36:47 2011 UTC (2 years ago) by rmind
Branch: MAIN
Changes since 1.175: +2 -4
lines
Diff to previous 1.175 (colored)
G/C M_EMULDATA
Revision 1.175 / (download) - annotate - [select for diffs], Mon Apr 18 00:26:11 2011 UTC (2 years, 1 month ago) by rmind
Branch: MAIN
Changes since 1.174: +2 -3
lines
Diff to previous 1.174 (colored)
Replace malloc with kmem, and remove M_SUBPROC.
Revision 1.174 / (download) - annotate - [select for diffs], Tue Apr 5 09:02:23 2011 UTC (2 years, 1 month ago) by rmind
Branch: MAIN
Changes since 1.173: +6 -3
lines
Diff to previous 1.173 (colored)
sysctl_kern_proc_args: fix the deadlock (hi joerg!).
Revision 1.173 / (download) - annotate - [select for diffs], Sat Mar 5 01:52:18 2011 UTC (2 years, 2 months ago) by matt
Branch: MAIN
CVS Tags: bouyer-quota2-nbase
Changes since 1.172: +6 -12
lines
Diff to previous 1.172 (colored)
Simplify copyin_psstrings a bit.
Revision 1.172 / (download) - annotate - [select for diffs], Fri Mar 4 22:25:31 2011 UTC (2 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.171: +130 -81
lines
Diff to previous 1.171 (colored)
Refactor ps_strings access. Based on PK_32, write either the normal version or the 32bit compat layout in execve1. Introduce a new function copyin_psstrings for reading it back from userland and converting it to the native layout. Refactor procfs to share most of the code with the kern.proc_args sysctl handler. This material is based upon work partially supported by The NetBSD Foundation under a contract with Joerg Sonnenberger.
Revision 1.171 / (download) - annotate - [select for diffs], Fri Jan 28 20:31:10 2011 UTC (2 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: bouyer-quota2-base
Changes since 1.170: +7 -2
lines
Diff to previous 1.170 (colored)
migrate compat32 handling with previous pointed out by Lars Heidieker
Revision 1.170 / (download) - annotate - [select for diffs], Fri Jan 28 18:44:44 2011 UTC (2 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.169: +874 -2
lines
Diff to previous 1.169 (colored)
Move sysctl routines from init_sysctl.c to kern_descrip.c (for descriptors) and kern_proc.c (for processes). This makes them usable in a rump kernel, in case somebody was wondering.
Revision 1.169 / (download) - annotate - [select for diffs], Mon Jan 17 07:13:31 2011 UTC (2 years, 4 months ago) by uebayasi
Branch: MAIN
Branch point for: bouyer-quota2
Changes since 1.168: +3 -3
lines
Diff to previous 1.168 (colored)
Include internal definitions (uvm/uvm.h) only where necessary.
Revision 1.168 / (download) - annotate - [select for diffs], Wed Jul 7 01:30:37 2010 UTC (2 years, 10 months ago) by chs
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
matt-mips64-premerge-20101231,
jruoho-x86intr-base
Branch point for: jruoho-x86intr
Changes since 1.167: +52 -28
lines
Diff to previous 1.167 (colored)
many changes for COMPAT_LINUX: - update the linux syscall table for each platform. - support new-style (NPTL) linux pthreads on all platforms. clone() with CLONE_THREAD uses 1 process with many LWPs instead of separate processes. - move the contents of sys__lwp_setprivate() into a new lwp_setprivate() and use that everywhere. - update linux_release[] and linux32_release[] to "2.6.18". - adjust placement of emul fork/exec/exit hooks as needed and adjust other emul code to match. - convert all struct emul definitions to use named initializers. - change the pid allocator to allow multiple pids to refer to the same proc. - remove a few fields from struct proc that are no longer needed. - disable the non-functional "vdso" code in linux32/amd64, glibc works fine without it. - fix a race in the futex code where we could miss a wakeup after a requeue operation. - redo futex locking to be a little more efficient.
Revision 1.167 / (download) - annotate - [select for diffs], Thu Jul 1 02:38:30 2010 UTC (2 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.166: +52 -46
lines
Diff to previous 1.166 (colored)
Remove pfind() and pgfind(), fix locking in various broken uses of these. Rename real routines to proc_find() and pgrp_find(), remove PFIND_* flags and have consistent behaviour. Provide proc_find_raw() for special cases. Fix memory leak in sysctl_proc_corename(). COMPAT_LINUX: rework ptrace() locking, minimise differences between different versions per-arch. Note: while this change adds some formal cosmetics for COMPAT_DARWIN and COMPAT_IRIX - locking there is utterly broken (for ages). Fixes PR/43176.
Revision 1.166 / (download) - annotate - [select for diffs], Thu Jun 10 20:54:53 2010 UTC (2 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.165: +3 -38
lines
Diff to previous 1.165 (colored)
lwp0 seems like an lwp instead of a process, so move bits related to it from kern_proc.c to kern_lwp.c. This makes kern_proc "scheduling-clean" and more easily usable in environments with a non-integrated scheduler (like, to take a random example, rump).
Revision 1.165 / (download) - annotate - [select for diffs], Thu Jun 10 19:06:26 2010 UTC (2 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.164: +4 -2
lines
Diff to previous 1.164 (colored)
smoke the smoke, hack the hack, *beep* the *beep*, _KERNEL_OPT the _KERNEL_POT
Revision 1.164 / (download) - annotate - [select for diffs], Fri Jun 4 23:02:18 2010 UTC (2 years, 11 months ago) by rmind
Branch: MAIN
Changes since 1.163: +4 -8
lines
Diff to previous 1.163 (colored)
proc_alloc: move kdtrace_proc_ctor() out of the proc_lock.
Revision 1.163 / (download) - annotate - [select for diffs], Fri Feb 26 18:47:13 2010 UTC (3 years, 2 months ago) by jym
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9,
uebayasi-xip-base1
Branch point for: rmind-uvmplock
Changes since 1.162: +3 -3
lines
Diff to previous 1.162 (colored)
Change RSS (resident set size) limit. Instead of setting it arbitrarily to the total free memory available to the system, use the smallest value between VM_MAXUSER_ADDRESS and total free memory (having a RSS limit bigger than VM_MAXUSER_ADDRESS has no real meaning). Fix a possible int overflow when ptoa(uvmexp.free) is bigger than 4GB with a 32 bits vaddr_t. This change is similar to the one made in rev 1.144 of uvm/uvm_glue.c.
Revision 1.162 / (download) - annotate - [select for diffs], Tue Feb 23 22:19:27 2010 UTC (3 years, 2 months ago) by darran
Branch: MAIN
Changes since 1.161: +2 -11
lines
Diff to previous 1.161 (colored)
DTrace: Get rid of the KDTRACE_HOOKS ifdefs in the kernel. Replace the functions with inline function that are empty when KDTRACE_HOOKS is not defined.
Revision 1.161 / (download) - annotate - [select for diffs], Sun Feb 21 07:01:57 2010 UTC (3 years, 2 months ago) by darran
Branch: MAIN
Changes since 1.160: +3 -2
lines
Diff to previous 1.160 (colored)
Added a defflag option for KDTRACE_HOOKS and included opt_dtrace.h in the relevant files. (Per Quentin Garnier - thanks!).
Revision 1.160 / (download) - annotate - [select for diffs], Sun Feb 21 02:11:40 2010 UTC (3 years, 2 months ago) by darran
Branch: MAIN
Changes since 1.159: +17 -2
lines
Diff to previous 1.159 (colored)
Add the DTrace hooks to the kernel (KDTRACE_HOOKS config option). DTrace adds a pointer to the lwp and proc structures which it uses to manage its state. These are opaque from the kernel perspective to keep the kernel free of CDDL code. The state arenas are kmem_alloced and freed as proccesses and threads are created and destoyed. Also add a check for trap06 (privileged/illegal instruction) so that DTrace can check for D scripts that may have triggered the trap so it can clean up after them and resume normal operation. Ok with core@.
Revision 1.159 / (download) - annotate - [select for diffs], Thu Dec 17 01:25:10 2009 UTC (3 years, 5 months ago) by rmind
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.158: +3 -4
lines
Diff to previous 1.158 (colored)
Replace few USER_TO_UAREA/UAREA_TO_USER uses, reduce sys/user.h inclusions.
Revision 1.158 / (download) - annotate - [select for diffs], Thu Nov 26 00:19:11 2009 UTC (3 years, 5 months ago) by matt
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.157: +3 -6
lines
Diff to previous 1.157 (colored)
Kill proc0paddr. Use lwp0.l_addr instead.
Revision 1.157 / (download) - annotate - [select for diffs], Wed Nov 4 15:35:09 2009 UTC (3 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.156: +2 -4
lines
Diff to previous 1.156 (colored)
nuke unused local variable
Revision 1.156 / (download) - annotate - [select for diffs], Sun Nov 1 20:59:24 2009 UTC (3 years, 6 months ago) by rmind
Branch: MAIN
Changes since 1.155: +2 -5
lines
Diff to previous 1.155 (colored)
orphanpg: remove no longer user variable.
Revision 1.155 / (download) - annotate - [select for diffs], Wed Oct 21 21:12:06 2009 UTC (3 years, 6 months ago) by rmind
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.154: +3 -7
lines
Diff to previous 1.154 (colored)
Remove uarea swap-out functionality: - Addresses the issue described in PR/38828. - Some simplification in threading and sleepq subsystems. - Eliminates pmap_collect() and, as a side note, allows pmap optimisations. - Eliminates XS_CTL_DATA_ONSTACK in scsipi code. - Avoids few scans on LWP list and thus potentially long holds of proc_lock. - Cuts ~1.5k lines of code. Reduces amd64 kernel size by ~4k. - Removes __SWAP_BROKEN cases. Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on acorn26 (thanks to <bjh21>). Discussed on <tech-kern>, reviewed by <ad>.
Revision 1.154 / (download) - annotate - [select for diffs], Sun Oct 4 03:15:08 2009 UTC (3 years, 7 months ago) by elad
Branch: MAIN
Changes since 1.153: +35 -2
lines
Diff to previous 1.153 (colored)
Install floppies (haha) don't get built with ktrace/ptrace, so they don't
include kern/sys_process.c. Move proc_uidmatch() to kern/kern_proc.c which
always gets built instead.
Pointed out by Kurt Schreiner on current-users@:
http://mail-index.netbsd.org/current-users/2009/10/03/msg010745.html
Revision 1.153 / (download) - annotate - [select for diffs], Sat Oct 3 03:38:31 2009 UTC (3 years, 7 months ago) by elad
Branch: MAIN
Changes since 1.152: +79 -2
lines
Diff to previous 1.152 (colored)
Move policies for KAUTH_PROCESS_{CANSEE,CORENAME,STOPFLAG,FORK} back to
the subsystem.
Note: Consider killing the signal listener and sticking
KAUTH_PROCESS_SIGNAL here as well.
Revision 1.152 / (download) - annotate - [select for diffs], Sat May 23 18:28:06 2009 UTC (3 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
jymxensuspend-base
Changes since 1.151: +3 -2
lines
Diff to previous 1.151 (colored)
Make descriptor access and file allocation cheaper in many cases, mostly by avoiding a bunch of atomic operations.
Revision 1.151 / (download) - annotate - [select for diffs], Sat Apr 25 15:06:31 2009 UTC (4 years ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base,
jym-xensuspend-base
Changes since 1.150: +89 -72
lines
Diff to previous 1.150 (colored)
- Rearrange pg_delete() and pg_remove() (renamed pg_free), thus proc_enterpgrp() with proc_leavepgrp() to free process group and/or session without proc_lock held. - Rename SESSHOLD() and SESSRELE() to to proc_sesshold() and proc_sessrele(). The later releases proc_lock now. Quick OK by <ad>.
Revision 1.150 / (download) - annotate - [select for diffs], Thu Apr 16 14:56:41 2009 UTC (4 years, 1 month ago) by rmind
Branch: MAIN
Changes since 1.149: +14 -13
lines
Diff to previous 1.149 (colored)
- Manage pid_table with kmem(9). - Remove M_PROC and unused M_SESSION.
Revision 1.149 / (download) - annotate - [select for diffs], Thu Apr 16 00:17:19 2009 UTC (4 years, 1 month ago) by rmind
Branch: MAIN
Changes since 1.148: +4 -5
lines
Diff to previous 1.148 (colored)
Avoid few #ifdef KSTACK_CHECK_MAGIC.
Revision 1.148 / (download) - annotate - [select for diffs], Sat Mar 28 21:41:05 2009 UTC (4 years, 1 month ago) by rmind
Branch: MAIN
Changes since 1.147: +10 -10
lines
Diff to previous 1.147 (colored)
Make inferior() function static, rename to p_inferior(), return bool.
Revision 1.147 / (download) - annotate - [select for diffs], Sat Jan 24 22:42:32 2009 UTC (4 years, 3 months ago) by rmind
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Changes since 1.146: +4 -2
lines
Diff to previous 1.146 (colored)
Set l_psid to PS_NONE for lwp0 (consistency change).
Revision 1.146 / (download) - annotate - [select for diffs], Wed Dec 17 20:51:36 2008 UTC (4 years, 5 months ago) by cegger
Branch: MAIN
CVS Tags: mjf-devfs2-base
Changes since 1.145: +4 -4
lines
Diff to previous 1.145 (colored)
kill MALLOC and FREE macros.
Revision 1.145 / (download) - annotate - [select for diffs], Wed Nov 19 18:36:06 2008 UTC (4 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: haad-nbase2,
haad-dm-base2,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Changes since 1.144: +3 -3
lines
Diff to previous 1.144 (colored)
Make the emulations, exec formats, coredump, NFS, and the NFS server into modules. By and large this commit: - shuffles header files and ifdefs - splits code out where necessary to be modular - adds module glue for each of the components - adds/replaces hooks for things that can be installed at runtime
Revision 1.144 / (download) - annotate - [select for diffs], Wed Oct 15 06:51:20 2008 UTC (4 years, 7 months ago) by wrstuden
Branch: MAIN
CVS Tags: netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
haad-dm-base1
Branch point for: nick-hppapmap
Changes since 1.143: +4 -2
lines
Diff to previous 1.143 (colored)
Merge wrstuden-revivesa into HEAD.
Revision 1.143 / (download) - annotate - [select for diffs], Tue Jun 24 10:31:05 2008 UTC (4 years, 10 months ago) by gmcgarry
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
simonb-wapbl-nbase,
simonb-wapbl-base
Branch point for: haad-dm
Changes since 1.142: +10 -12
lines
Diff to previous 1.142 (colored)
The conversion to c99-style designated initialisers brought in the gcc extension of specifying an array range. Revert to runtime initialization of limit0. See here for details: http://gcc.gnu.org/onlinedocs/gcc/Designated-Inits.html
Revision 1.142 / (download) - annotate - [select for diffs], Mon May 19 17:06:02 2008 UTC (5 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4,
yamt-pf42-base3,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
hpcarm-cleanup-nbase
Branch point for: simonb-wapbl
Changes since 1.141: +2 -4
lines
Diff to previous 1.141 (colored)
Reduce ifdefs due to MULTIPROCESSOR slightly.
Revision 1.141 / (download) - annotate - [select for diffs], Sat May 3 05:36:02 2008 UTC (5 years ago) by yamt
Branch: MAIN
CVS Tags: yamt-pf42-base2,
yamt-nfs-mp-base2
Branch point for: wrstuden-revivesa
Changes since 1.140: +4 -4
lines
Diff to previous 1.140 (colored)
enterpgrp: 0 -> NULL for pointers. no functional changes.
Revision 1.140 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:03 2008 UTC (5 years ago) by martin
Branch: MAIN
Changes since 1.139: +2 -9
lines
Diff to previous 1.139 (colored)
Remove clause 3 and 4 from TNF licenses
Revision 1.139 / (download) - annotate - [select for diffs], Sun Apr 27 10:56:28 2008 UTC (5 years ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.138: +6 -7
lines
Diff to previous 1.138 (colored)
Adjust previous: orphang() shouldn't have been playing about with tty_lock. It was a bit of code that I accidenally left in.
Revision 1.138 / (download) - annotate - [select for diffs], Sun Apr 27 01:12:27 2008 UTC (5 years ago) by christos
Branch: MAIN
Changes since 1.137: +5 -5
lines
Diff to previous 1.137 (colored)
orphanpg wants the tty lock held.
Revision 1.137 / (download) - annotate - [select for diffs], Thu Apr 24 18:39:24 2008 UTC (5 years ago) by ad
Branch: MAIN
Changes since 1.136: +7 -8
lines
Diff to previous 1.136 (colored)
Merge proc::p_mutex and proc::p_smutex into a single adaptive mutex, since we no longer need to guard against access from hardware interrupt handlers. Additionally, if cloning a process with CLONE_SIGHAND, arrange to have the child process share the parent's lock so that signal state may be kept in sync. Partially addresses PR kern/37437.
Revision 1.136 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:29 2008 UTC (5 years ago) by ad
Branch: MAIN
Changes since 1.135: +49 -127
lines
Diff to previous 1.135 (colored)
Network protocol interrupts can now block on locks, so merge the globals proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock). Implications: - Inspecting process state requires thread context, so signals can no longer be sent from a hardware interrupt handler. Signal activity must be deferred to a soft interrupt or kthread. - As the proc state locking is simplified, it's now safe to take exit() and wait() out from under kernel_lock. - The system spends less time at IPL_SCHED, and there is less lock activity.
Revision 1.135 / (download) - annotate - [select for diffs], Thu Apr 17 14:16:22 2008 UTC (5 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.134: +4 -5
lines
Diff to previous 1.134 (colored)
pidtbl_dump: use queue.h macros. no functional change.
Revision 1.134 / (download) - annotate - [select for diffs], Thu Apr 17 14:14:20 2008 UTC (5 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.133: +3 -4
lines
Diff to previous 1.133 (colored)
enterpgrp: update a comment.
Revision 1.133 / (download) - annotate - [select for diffs], Sat Mar 22 17:53:34 2008 UTC (5 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
ad-socklock-base1
Changes since 1.132: +7 -3
lines
Diff to previous 1.132 (colored)
LWP_CACHE_CREDS: instead of testing (l_cred != p_cred), use a per-LWP flag bit to indicate a pending cred update. Avoids touching one item of shared state in the syscall path.
Revision 1.132 / (download) - annotate - [select for diffs], Fri Mar 21 21:55:00 2008 UTC (5 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.131: +5 -5
lines
Diff to previous 1.131 (colored)
Catch up with descriptor handling changes. See kern_descrip.c revision 1.173 for details.
Revision 1.131 / (download) - annotate - [select for diffs], Mon Mar 17 00:52:56 2008 UTC (5 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base
Changes since 1.130: +10 -15
lines
Diff to previous 1.130 (colored)
Process group and session structures are allocated so infrequently that there is no point having seperate caches for them. Just use kmem_alloc().
Revision 1.130 / (download) - annotate - [select for diffs], Mon Mar 17 00:18:24 2008 UTC (5 years, 2 months ago) by rmind
Branch: MAIN
Changes since 1.129: +2 -5
lines
Diff to previous 1.129 (colored)
- Initialize uihashtbl in resource_init(); - Make some variables static, remove the externs from header; - Wrap few long lines, misc; No functional changes are intended.
Revision 1.129 / (download) - annotate - [select for diffs], Wed Jan 2 11:48:51 2008 UTC (5 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
matt-armv6-base,
hpcarm-cleanup-base,
bouyer-xeni386-nbase,
bouyer-xeni386-base
Branch point for: mjf-devfs2,
keiichi-mipv6
Changes since 1.128: +3 -3
lines
Diff to previous 1.128 (colored)
Merge vmlocking2 to head.
Revision 1.128 / (download) - annotate - [select for diffs], Wed Dec 26 16:01:36 2007 UTC (5 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.127: +36 -53
lines
Diff to previous 1.127 (colored)
Merge more changes from vmlocking2, mainly: - Locking improvements. - Use pool_cache for more items.
Revision 1.127 / (download) - annotate - [select for diffs], Wed Dec 5 07:06:53 2007 UTC (5 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-kmem,
vmlocking2-base2,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
jmcneill-pm-base,
cube-autoconf-base,
cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.126: +7 -7
lines
Diff to previous 1.126 (colored)
Match the docs: MUTEX_DRIVER/SPIN are now only for porting code written for Solaris.
Revision 1.126 / (download) - annotate - [select for diffs], Tue Dec 4 16:56:17 2007 UTC (5 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.125: +4 -3
lines
Diff to previous 1.125 (colored)
Use atomics to maintain nprocs.
Revision 1.125 / (download) - annotate - [select for diffs], Mon Dec 3 20:26:25 2007 UTC (5 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: vmlocking2-base1
Branch point for: vmlocking2
Changes since 1.124: +3 -3
lines
Diff to previous 1.124 (colored)
Soft interrupts can now take proclist_lock, so there is no need to double-lock alllwp or allproc.
Revision 1.124 / (download) - annotate - [select for diffs], Sun Nov 11 23:22:24 2007 UTC (5 years, 6 months ago) by matt
Branch: MAIN
CVS Tags: vmlocking-nbase,
bouyer-xenamd64-base2,
bouyer-xenamd64-base
Changes since 1.123: +2 -4
lines
Diff to previous 1.123 (colored)
Change some initialization of static queues to compile time. (xxx_INIT to xxx_HEAD_INITIALIZER). Drop code which inits non-auto (global or static) variables to 0 since that's already implied by being non-auto. Init some static/global cpu_simple_locks at compile time.
Revision 1.123 / (download) - annotate - [select for diffs], Wed Nov 7 16:51:28 2007 UTC (5 years, 6 months ago) by matt
Branch: MAIN
Changes since 1.122: +70 -62
lines
Diff to previous 1.122 (colored)
Use C99 structures initializers when possible. [from matt-armv6]
Revision 1.122 / (download) - annotate - [select for diffs], Wed Nov 7 00:23:22 2007 UTC (5 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.121: +3 -62
lines
Diff to previous 1.121 (colored)
Merge from vmlocking: - pool_cache changes. - Debugger/procfs locking fixes. - Other minor changes.
Revision 1.121 / (download) - annotate - [select for diffs], Tue Nov 6 00:42:42 2007 UTC (5 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: jmcneill-base
Changes since 1.120: +6 -6
lines
Diff to previous 1.120 (colored)
Merge scheduler changes from the vmlocking branch. All discussed on tech-kern: - Invert priority space so that zero is the lowest priority. Rearrange number and type of priority levels into bands. Add new bands like 'kernel real time'. - Ignore the priority level passed to tsleep. Compute priority for sleep dynamically. - For SCHED_4BSD, make priority adjustment per-LWP, not per-process.
Revision 1.120 / (download) - annotate - [select for diffs], Wed Oct 24 14:50:41 2007 UTC (5 years, 6 months ago) by ad
Branch: MAIN
Branch point for: mjf-devfs
Changes since 1.119: +3 -8
lines
Diff to previous 1.119 (colored)
Make ras_lookup() lockless.
Revision 1.119 / (download) - annotate - [select for diffs], Tue Oct 23 14:15:48 2007 UTC (5 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.118: +4 -4
lines
Diff to previous 1.118 (colored)
proc0_init: change lwp0's priority from PRIBIO to PUSER so that init and its children has a user priority. uvm_scheduler adjusts its own priority later.
Revision 1.118 / (download) - annotate - [select for diffs], Fri Oct 12 14:29:38 2007 UTC (5 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
vmlocking-base
Branch point for: bouyer-xenamd64
Changes since 1.117: +5 -8
lines
Diff to previous 1.117 (colored)
Merge from vmlocking: fix a deadlock with (threaded) soft interrupts and process exit.
Revision 1.117 / (download) - annotate - [select for diffs], Sat Sep 29 12:22:31 2007 UTC (5 years, 7 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-x86pmap-base2
Changes since 1.116: +15 -18
lines
Diff to previous 1.116 (colored)
Change the way p->p_limit (and hence p->p_rlimit) is locked. Should fix PR/36939 and make the rlimit code MP safe. Posted for comment to tech-kern (non received!) The p_limit field (for a process) is only be changed once (on the first write), and a reference to the old structure is kept (for code paths that have cached the pointer). Only p->p_limit is now locked by p->p_mutex, and since the referenced memory will not go away, is only needed if the pointer is to be changed. The contents of 'struct plimit' are all locked by pl_mutex, except that the code doesn't bother to acquire it for reads (which are basically atomic). Add FORK_SHARELIMIT that causes fork1() to share the limits between parent and child, use it for the IRIX_PR_SULIMIT. Fix borked test for both IRIX_PR_SUMASK and IRIX_PR_SDIR being set.
Revision 1.116 / (download) - annotate - [select for diffs], Fri Sep 21 19:19:20 2007 UTC (5 years, 7 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-x86pmap-base
Branch point for: yamt-x86pmap
Changes since 1.115: +8 -8
lines
Diff to previous 1.115 (colored)
Rename members of 'struct plimit' so that the fields are 'pl_xxx' and no longer have the same names as members of 'struct proc'.
Revision 1.115 / (download) - annotate - [select for diffs], Thu Sep 6 23:58:57 2007 UTC (5 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base5
Changes since 1.114: +4 -3
lines
Diff to previous 1.114 (colored)
- Fix sleepq_block() to return EINTR if the LWP is cancelled. Pointed out by yamt@. - Introduce SOBJ_SLEEPQ_LIFO, and use for LWPs sleeping via _lwp_park. libpthread enqueues most waiters in LIFO order to try and wake LWPs that ran recently, since their working set is more likely to be in cache. Matching the order of insertion reduces the time spent searching queues in the kernel. - Do not boost the priority of LWPs sleeping in _lwp_park, just let them sleep at their user priority level. LWPs waiting for some I/O event in the kernel still wait with kernel priority and get woken more quickly. This needs more evaluation and is to be revisited, but the effect on a variety of benchmarks is positive. - When waking LWPs, do not send an IPI to remote CPUs or arrange for the current LWP to be preempted unless (a) the thread being awoken has kernel priority and has higher priority than the currently running thread or (b) the remote CPU is idle.
Revision 1.114 / (download) - annotate - [select for diffs], Fri Aug 10 21:50:48 2007 UTC (5 years, 9 months ago) by dyoung
Branch: MAIN
Branch point for: matt-armv6
Changes since 1.113: +4 -4
lines
Diff to previous 1.113 (colored)
Fix kernel compilation with 'options KSTACK_CHECK_MAGIC': change 'void *' to 'char *' so pointer arithmetic will work.
Revision 1.113 / (download) - annotate - [select for diffs], Mon Jul 9 21:10:53 2007 UTC (5 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base,
mjf-ufs-trans-base,
matt-mips64-base,
matt-mips64,
hpcarm-cleanup
Branch point for: nick-csl-alignment,
jmcneill-pm
Changes since 1.112: +11 -10
lines
Diff to previous 1.112 (colored)
Merge some of the less invasive changes from the vmlocking branch: - kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
Revision 1.112 / (download) - annotate - [select for diffs], Fri Jun 15 20:17:08 2007 UTC (5 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.111: +3 -3
lines
Diff to previous 1.111 (colored)
splstatclock, spllock -> splhigh
Revision 1.111 / (download) - annotate - [select for diffs], Thu Jun 14 14:29:50 2007 UTC (5 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.110: +5 -3
lines
Diff to previous 1.110 (colored)
proc_drainrefs: fix the case of exec failure.
Revision 1.110 / (download) - annotate - [select for diffs], Thu May 17 14:51:40 2007 UTC (6 years ago) by yamt
Branch: MAIN
Changes since 1.109: +5 -4
lines
Diff to previous 1.109 (colored)
merge yamt-idlelwp branch. asked by core@. some ports still needs work. from doc/BRANCHES: idle lwp, and some changes depending on it. 1. separate context switching and thread scheduling. (cf. gmcgarry_ctxsw) 2. implement idle lwp. 3. clean up related MD/MI interfaces. 4. make scheduler(s) modular.
Revision 1.109 / (download) - annotate - [select for diffs], Mon Apr 30 20:11:41 2007 UTC (6 years ago) by dsl
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Changes since 1.108: +2 -4
lines
Diff to previous 1.108 (colored)
Remove proc->p_ru and the 'rusage' pool. I think it existed to cache the numbers in kernel memory of a zombie when proc->p_stats was part of the 'u' area - so got freed earlier and wouldn't (easily) be accessible from a separate process. However since both the p_ru and p_stats fields are freed at the same time it is no longer needed. Ride the recent 4.99.19 version change.
Revision 1.108 / (download) - annotate - [select for diffs], Mon Mar 12 18:18:33 2007 UTC (6 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup
Branch point for: mjf-ufs-trans
Changes since 1.107: +8 -8
lines
Diff to previous 1.107 (colored)
Pass an ipl argument to pool_init/POOL_INIT to be used when initializing the pool's lock.
Revision 1.107 / (download) - annotate - [select for diffs], Fri Mar 9 14:11:25 2007 UTC (6 years, 2 months ago) by ad
Branch: MAIN
Branch point for: vmlocking
Changes since 1.106: +84 -72
lines
Diff to previous 1.106 (colored)
- Make the proclist_lock a mutex. The write:read ratio is unfavourable, and mutexes are cheaper use than RW locks. - LOCK_ASSERT -> KASSERT in some places. - Hold proclist_lock/kernel_lock longer in a couple of places.
Revision 1.106 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:05 2007 UTC (6 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.105: +6 -6
lines
Diff to previous 1.105 (colored)
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.105 / (download) - annotate - [select for diffs], Mon Feb 26 09:20:53 2007 UTC (6 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: ad-audiomp-base,
ad-audiomp
Changes since 1.104: +4 -2
lines
Diff to previous 1.104 (colored)
implement priority inheritance.
Revision 1.104 / (download) - annotate - [select for diffs], Wed Feb 21 23:48:14 2007 UTC (6 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.103: +3 -3
lines
Diff to previous 1.103 (colored)
Pick up some additional files that were missed before due to conflicts with newlock2 merge: Replace the Mach-derived boolean_t type with the C99 bool type. A future commit will replace use of TRUE and FALSE with true and false.
Revision 1.103 / (download) - annotate - [select for diffs], Sun Feb 18 16:58:16 2007 UTC (6 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.102: +5 -2
lines
Diff to previous 1.102 (colored)
Add code to support per-system call statistics: option SYSCALL_STATS counts the number of times each system call is made option SYSCALL_TIMES counts the amount of time spent in each system call Currently the counting hooks have only been added to the i386 system call handler, and the time spent in interrupts is not subtracted. It ought also be possible to add the times to the processes profiling counters in order to get a more accurate user/system/interrupt split. The counts themselves are readable via the sysctl interface.
Revision 1.102 / (download) - annotate - [select for diffs], Sat Feb 17 22:31:43 2007 UTC (6 years, 3 months ago) by pavel
Branch: MAIN
Changes since 1.101: +8 -8
lines
Diff to previous 1.101 (colored)
Change the process/lwp flags seen by userland via sysctl back to the P_*/L_* naming convention, and rename the in-kernel flags to avoid conflict. (P_ -> PK_, L_ -> LW_ ). Add back the (now unused) LSDEAD constant. Restores source compatibility with pre-newlock2 tools like ps or top. Reviewed by Andrew Doran.
Revision 1.101 / (download) - annotate - [select for diffs], Sat Feb 17 21:46:13 2007 UTC (6 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.100: +11 -6
lines
Diff to previous 1.100 (colored)
Acquire proclist_lock in pgid_in_session() so we don't reference potentially stale proc & pgrp pointers.
Revision 1.100 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:31 2007 UTC (6 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Branch point for: yamt-idlelwp
Changes since 1.99: +348 -213
lines
Diff to previous 1.99 (colored)
Merge newlock2 to head.
Revision 1.99 / (download) - annotate - [select for diffs], Sat Oct 21 17:01:56 2006 UTC (6 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
yamt-splraiseipl-base2,
newlock2-nbase,
newlock2-base,
netbsd-4-base
Branch point for: netbsd-4
Changes since 1.98: +3 -3
lines
Diff to previous 1.98 (colored)
pool_get(): use PR_WAITOK, not M_WAITOK (which happens to be PR_NOWAIT ..) XXX: not the first time this mistake has been made
Revision 1.98 / (download) - annotate - [select for diffs], Wed Oct 11 04:51:06 2006 UTC (6 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.97: +19 -6
lines
Diff to previous 1.97 (colored)
Don't free specificdata in lwp_exit2(); it's not safe to block there. Instead, free an LWP's specificdata from lwp_exit() (if it is not the last LWP) or exit1() (if it is the last LWP). For consistency, free the proc's specificdata from exit1() as well. Add lwp_finispecific() and proc_finispecific() functions to make this more convenient.
Revision 1.97 / (download) - annotate - [select for diffs], Mon Oct 9 00:39:06 2006 UTC (6 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.96: +3 -3
lines
Diff to previous 1.96 (colored)
Remove unused variables.
Revision 1.96 / (download) - annotate - [select for diffs], Sun Oct 8 22:57:11 2006 UTC (6 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.95: +14 -5
lines
Diff to previous 1.95 (colored)
add {proc,lwp}_initspecific and use them to init proc0 and lwp0.
Revision 1.95 / (download) - annotate - [select for diffs], Sun Oct 8 04:28:44 2006 UTC (6 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.94: +60 -10
lines
Diff to previous 1.94 (colored)
Add specificdata support to procs and lwps, each providing their own
wrappers around the speicificdata subroutines. Also:
- Call the new lwpinit() function from main() after calling procinit().
- Move some pool initialization out of kern_proc.c and into files that
are directly related to the pools in question (kern_lwp.c and kern_ras.c).
- Convert uipc_sem.c to proc_{get,set}specific(), and eliminate the p_ksems
member from struct proc.
Revision 1.94 / (download) - annotate - [select for diffs], Sun Jul 30 21:58:11 2006 UTC (6 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9,
yamt-pdpolicy-base8,
yamt-pdpolicy-base7,
rpaulo-netinet-merge-pcb-base,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Branch point for: yamt-splraiseipl,
newlock2
Changes since 1.93: +43 -4
lines
Diff to previous 1.93 (colored)
Single-thread updates to the process credential.
Revision 1.93 / (download) - annotate - [select for diffs], Thu Jul 27 00:04:08 2006 UTC (6 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.92: +3 -3
lines
Diff to previous 1.92 (colored)
PR/34094: Jorge Acereda: Kernel option KSTACK_CHECK_MAGIC doesn't build
Revision 1.92 / (download) - annotate - [select for diffs], Wed Jul 19 21:11:37 2006 UTC (6 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.91: +3 -2
lines
Diff to previous 1.91 (colored)
- Hold a reference to the process credentials in each struct lwp. - Update the reference on syscall and user trap if p_cred has changed. - Collect accounting flags in the LWP, and collate on LWP exit.
Revision 1.91 / (download) - annotate - [select for diffs], Sun Jun 25 08:12:54 2006 UTC (6 years, 10 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6
Changes since 1.90: +2 -10
lines
Diff to previous 1.90 (colored)
move SA related pools to where they are used. make them static.
Revision 1.90 / (download) - annotate - [select for diffs], Sun Jun 11 07:32:18 2006 UTC (6 years, 11 months ago) by rjs
Branch: MAIN
CVS Tags: gdamore-uart-base,
chap-midi-nbase,
chap-midi-base
Branch point for: gdamore-uart
Changes since 1.89: +4 -2
lines
Diff to previous 1.89 (colored)
Add includes of opt_multiprocessor.h and opt_lockdebug.h where missing.
Revision 1.89 / (download) - annotate - [select for diffs], Sun May 14 21:15:11 2006 UTC (7 years ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5,
simonb-timecounters-base
Branch point for: chap-midi
Changes since 1.88: +6 -9
lines
Diff to previous 1.88 (colored)
integrate kauth.
Revision 1.88 / (download) - annotate - [select for diffs], Mon Apr 10 11:16:22 2006 UTC (7 years, 1 month ago) by onoe
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4,
elad-kernelauth-base
Changes since 1.87: +3 -2
lines
Diff to previous 1.87 (colored)
Move "opt_maxuprc.h" from init_main.c to kern_proc.c, as the definition of maxuprc has been moved to kern_proc.c (rev. 1.80).
Revision 1.87 / (download) - annotate - [select for diffs], Sun Mar 12 10:32:47 2006 UTC (7 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base3,
yamt-pdpolicy-base2,
peter-altq-base
Branch point for: peter-altq
Changes since 1.86: +5 -3
lines
Diff to previous 1.86 (colored)
proc_vmspace_getref: treat curproc specially to fix coredump problem pointed by Christos Zoulas.
Revision 1.86 / (download) - annotate - [select for diffs], Wed Mar 1 12:38:21 2006 UTC (7 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base
Branch point for: yamt-pdpolicy,
elad-kernelauth
Changes since 1.85: +19 -2
lines
Diff to previous 1.85 (colored)
merge yamt-uio_vmspace branch. - use vmspace rather than proc or lwp where appropriate. the latter is more natural to specify an address space. (and less likely to be abused for random purposes.) - fix a swdmover race.
Revision 1.85 / (download) - annotate - [select for diffs], Mon Dec 26 18:45:27 2005 UTC (7 years, 4 months ago) by perry
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5
Branch point for: yamt-uio_vmspace,
simonb-timecounters,
rpaulo-netinet-merge-pcb
Changes since 1.84: +11 -11
lines
Diff to previous 1.84 (colored)
u_intN_t -> uintN_t
Revision 1.84 / (download) - annotate - [select for diffs], Sat Dec 24 19:12:23 2005 UTC (7 years, 4 months ago) by perry
Branch: MAIN
Changes since 1.83: +3 -3
lines
Diff to previous 1.83 (colored)
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
Revision 1.83 / (download) - annotate - [select for diffs], Sat Nov 26 05:26:33 2005 UTC (7 years, 5 months ago) by simonb
Branch: MAIN
CVS Tags: yamt-readahead-base3,
ktrace-lwp-base
Changes since 1.82: +2 -4
lines
Diff to previous 1.82 (colored)
Convert malloc/free of struct ptimers to pools. Move the ptimer pool to kern_time.c to keep like pools together, and it wasn't used in kern_proc.c
Revision 1.82 / (download) - annotate - [select for diffs], Fri Aug 5 11:05:44 2005 UTC (7 years, 9 months ago) by junyoung
Branch: MAIN
CVS Tags: yamt-vop-base3,
yamt-vop-base2,
yamt-vop-base,
yamt-vop,
yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base2,
yamt-readahead-base,
thorpej-vnode-attr-base,
thorpej-vnode-attr
Branch point for: yamt-readahead
Changes since 1.81: +5 -5
lines
Diff to previous 1.81 (colored)
Cosmetic changes.
Revision 1.81 / (download) - annotate - [select for diffs], Fri Aug 5 11:03:18 2005 UTC (7 years, 9 months ago) by junyoung
Branch: MAIN
Changes since 1.80: +149 -37
lines
Diff to previous 1.80 (colored)
Move proc0 initialization from main() in init_main.c and proc0_insert() in kern_proc.c into a new function proc0_init() in kern_proc.c, as suggested on tech-kern@ days ago.
Revision 1.80 / (download) - annotate - [select for diffs], Sun Oct 3 22:26:35 2004 UTC (8 years, 7 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-km-base4,
yamt-km-base3,
yamt-km-base2,
yamt-km-base,
yamt-km,
netbsd-3-base,
netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0,
netbsd-3,
matt-timespec,
kent-audio2-base,
kent-audio2,
kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Branch point for: yamt-lazymbuf
Changes since 1.79: +7 -2
lines
Diff to previous 1.79 (colored)
proclist_foreach_call: tweak an assertion to deal with the case that spinlockmgr is no-op. PR/27125 from Andreas Wrede.
Revision 1.79 / (download) - annotate - [select for diffs], Fri Oct 1 16:30:53 2004 UTC (8 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.78: +35 -2
lines
Diff to previous 1.78 (colored)
introduce a function, proclist_foreach_call, to iterate all procs on a proclist and call the specified function for each of them. primarily to fix a procfs locking problem, but i think that it's useful for others as well. while i'm here, introduce PROCLIST_FOREACH macro, which is similar to LIST_FOREACH but skips marker entries which are used by proclist_foreach_call.
Revision 1.78 / (download) - annotate - [select for diffs], Thu May 6 22:20:30 2004 UTC (9 years ago) by pk
Branch: MAIN
Changes since 1.77: +17 -11
lines
Diff to previous 1.77 (colored)
Provide a mutex for the process limits data structure.
Revision 1.77 / (download) - annotate - [select for diffs], Sun Apr 25 16:42:41 2004 UTC (9 years ago) by simonb
Branch: MAIN
Changes since 1.76: +35 -50
lines
Diff to previous 1.76 (colored)
Initialise (most) pools from a link set instead of explicit calls to pool_init. Untouched pools are ones that either in arch-specific code, or aren't initialiased during initial system startup. Convert struct session, ucred and lockf to pools.
Revision 1.76 / (download) - annotate - [select for diffs], Sat Apr 17 15:15:29 2004 UTC (9 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.75: +2 -52
lines
Diff to previous 1.75 (colored)
PR/9347: Eric E. Fair: socket buffer pool exhaustion leads to system deadlock and unkillable processes. 1. Introduce new SBSIZE resource limit from FreeBSD to limit socket buffer size resource. 2. make sokvareserve interruptible, so processes ltsleeping on it can be killed.
Revision 1.75 / (download) - annotate - [select for diffs], Sun Mar 14 01:08:47 2004 UTC (9 years, 2 months ago) by cl
Branch: MAIN
CVS Tags: netbsd-2-base,
netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-1,
netbsd-2-0-base,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE,
netbsd-2-0,
netbsd-2
Changes since 1.74: +5 -2
lines
Diff to previous 1.74 (colored)
add kernel part of concurrency support for SA on MP systems - move per VP data into struct sadata_vp referenced from l->l_savp * VP id * lock on VP data * LWP on VP * recently blocked LWP on VP * queue of LWPs woken which ran on this VP before sleep * faultaddr * LWP cache for upcalls * upcall queue - add current concurrency and requested concurrency variables - make process exit run LWP on all VPs - make signal delivery consider all VPs - make timer events consider all VPs - add sa_newsavp to allocate new sadata_vp structure - add sa_increaseconcurrency to prepare new VP - make sys_sa_setconcurrency request new VP or wakeup idle VP - make sa_yield lower current concurrency - set sa_cpu = VP id in upcalls - maintain cached LWPs per VP
Revision 1.74 / (download) - annotate - [select for diffs], Fri Feb 27 02:43:25 2004 UTC (9 years, 2 months ago) by junyoung
Branch: MAIN
Changes since 1.73: +5 -5
lines
Diff to previous 1.73 (colored)
More typos in comments.
Revision 1.73 / (download) - annotate - [select for diffs], Thu Feb 26 11:29:41 2004 UTC (9 years, 2 months ago) by junyoung
Branch: MAIN
Changes since 1.72: +2 -5
lines
Diff to previous 1.72 (colored)
pgrpdump() is gone.
Revision 1.72 / (download) - annotate - [select for diffs], Thu Feb 26 11:20:08 2004 UTC (9 years, 2 months ago) by junyoung
Branch: MAIN
Changes since 1.71: +20 -21
lines
Diff to previous 1.71 (colored)
- Fix typos. - De-__P(). - Remove trailing spaces.
Revision 1.71 / (download) - annotate - [select for diffs], Fri Feb 6 06:59:33 2004 UTC (9 years, 3 months ago) by pk
Branch: MAIN
Changes since 1.70: +20 -13
lines
Diff to previous 1.70 (colored)
pg_delete: re-arrange SESSRELE() calls to allow for better code generation.
Revision 1.70 / (download) - annotate - [select for diffs], Sun Jan 4 11:33:31 2004 UTC (9 years, 4 months ago) by jdolecek
Branch: MAIN
Changes since 1.69: +2 -17
lines
Diff to previous 1.69 (colored)
Rearrange process exit path to avoid need to free resources from different
process context ('reaper').
From within the exiting process context:
* deactivate pmap and free vmspace while we can still block
* introduce MD cpu_lwp_free() - this cleans all MD-specific context (such
as FPU state), and is the last potentially blocking operation;
all of cpu_wait(), and most of cpu_exit(), is now folded into cpu_lwp_free()
* process is now immediatelly marked as zombie and made available for pickup
by parent; the remaining last lwp continues the exit as fully detached
* MI (rather than MD) code bumps uvmexp.swtch, cpu_exit() is now same
for both 'process' and 'lwp' exit
uvm_lwp_exit() is modified to never block; the u-area memory is now
always just linked to the list of available u-areas. Introduce (blocking)
uvm_uarea_drain(), which is called to release the excessive u-area memory;
this is called by parent within wait4(), or by pagedaemon on memory shortage.
uvm_uarea_free() is now private function within uvm_glue.c.
MD process/lwp exit code now always calls lwp_exit2() immediatelly after
switching away from the exiting lwp.
g/c now unneeded routines and variables, including the reaper kernel thread
Revision 1.69 / (download) - annotate - [select for diffs], Mon Nov 17 22:52:09 2003 UTC (9 years, 6 months ago) by cl
Branch: MAIN
Changes since 1.68: +5 -3
lines
Diff to previous 1.68 (colored)
- use list to keep track of free stacks. - use splay tree for the pagefault check if the thread was running on an upcall stack. => removes the limitation that all upcall stacks need to be adjoining and that all upcall stacks have to be loaded with the 1st sys_sa_stacks call. => enables keeping information associated with a stack in the kernel which makes it simpler to find out which LWP is using a stack. => allows increasing the SA_MAXNUMSTACKS without having to allocate an array of that size.
Revision 1.68 / (download) - annotate - [select for diffs], Wed Nov 12 21:07:38 2003 UTC (9 years, 6 months ago) by dsl
Branch: MAIN
Changes since 1.67: +43 -29
lines
Diff to previous 1.67 (colored)
- Count number of zombies and stopped children and requeue them at the top of the sibling list so that find_stopped_child can be optimised to avoid traversing the entire sibling list - helps when a process has a lot of children. - Modify locking in pfind() and pgfind() to that the caller can rely on the result being valid, allow caller to request that zombies be findable. - Rename pfind() to p_find() to ensure we break binary compatibility. - Remove svr4_pfind since p_find willnow do the job. - Modify some of the SMP locking of the proc lists - signals are still stuffed. Welcome to 1.6ZF
Revision 1.67 / (download) - annotate - [select for diffs], Tue Nov 4 10:33:15 2003 UTC (9 years, 6 months ago) by dsl
Branch: MAIN
Changes since 1.66: +3 -3
lines
Diff to previous 1.66 (colored)
Remove p_nras from struct proc - use LIST_EMPTY(&p->p_raslist) instead. Remove p_raslock and rename p_lwplock p_lock (one lock is enough). Simplify window test when adding a ras and correct test on VM_MAXUSER_ADDRESS. Avoid unpredictable branch in i386 locore.S (pad fields left in struct proc to avoid kernel bump)
Revision 1.66 / (download) - annotate - [select for diffs], Tue Sep 16 12:05:49 2003 UTC (9 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.65: +5 -2
lines
Diff to previous 1.65 (colored)
add initialization of siginfo lock and queue. Also initialize the lock for lwps, although it is not used for proc0 for code consistency.
Revision 1.65 / (download) - annotate - [select for diffs], Thu Aug 7 16:31:47 2003 UTC (9 years, 9 months ago) by agc
Branch: MAIN
Changes since 1.64: +3 -7
lines
Diff to previous 1.64 (colored)
Move UCB-licensed code from 4-clause to 3-clause licence. Patches provided by Joel Baker in PR 22364, verified by myself.
Revision 1.64 / (download) - annotate - [select for diffs], Wed Mar 19 20:35:04 2003 UTC (10 years, 2 months ago) by dsl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.63: +6 -6
lines
Diff to previous 1.63 (colored)
Indentation fixes
Revision 1.63 / (download) - annotate - [select for diffs], Wed Mar 19 16:47:36 2003 UTC (10 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.62: +12 -11
lines
Diff to previous 1.62 (colored)
- use __predict_false for DIAGNOSTIC code. - #ifdef out a DIAGNOSTIC printf() that was too annoying (rule of thumb, don't make DIAGNOSTIC printfs() that print *very* frequently...) - fix DIAGNOSTIC test that would always get triggered on a new session.
Revision 1.62 / (download) - annotate - [select for diffs], Wed Mar 19 16:02:31 2003 UTC (10 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.61: +3 -3
lines
Diff to previous 1.61 (colored)
make this compile again (-DDIAGNOSTIC)
Revision 1.61 / (download) - annotate - [select for diffs], Wed Mar 19 11:36:34 2003 UTC (10 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.60: +533 -99
lines
Diff to previous 1.60 (colored)
Alternative pid/proc allocater, removes all searches associated with pid lookup and allocation, and any dependency on NPROC or MAXUSERS. NO_PID changed to -1 (and renamed NO_PGID) to remove artificial limit on PID_MAX. As discussed on tech-kern.
Revision 1.60 / (download) - annotate - [select for diffs], Wed Mar 12 22:54:44 2003 UTC (10 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.59: +28 -2
lines
Diff to previous 1.59 (colored)
Add pgid_in_session() for validating TIOCSPGRP requests (approved by christos)
Revision 1.59 / (download) - annotate - [select for diffs], Wed Mar 12 16:39:01 2003 UTC (10 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.58: +18 -35
lines
Diff to previous 1.58 (colored)
KNF function prototypes
Revision 1.58 / (download) - annotate - [select for diffs], Sat Feb 15 18:10:16 2003 UTC (10 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.57: +3 -2
lines
Diff to previous 1.57 (colored)
Fix support of 15 and 16 character lognames. Warn if the logname is changed within a session - usually a missing setsid. (approved by christos)
Revision 1.57 / (download) - annotate - [select for diffs], Sat Feb 1 06:23:43 2003 UTC (10 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.56: +7 -2
lines
Diff to previous 1.56 (colored)
Add extensible malloc types, adapted from FreeBSD. This turns malloc types into a structure, a pointer to which is passed around, instead of an int constant. Allow the limit to be adjusted when the malloc type is defined, or with a function call, as suggested by Jonathan Stone.
Revision 1.56 / (download) - annotate - [select for diffs], Wed Jan 22 12:52:16 2003 UTC (10 years, 3 months ago) by yamt
Branch: MAIN
Changes since 1.55: +22 -20
lines
Diff to previous 1.55 (colored)
make KSTACK_CHECK_* compile after sa merge.
Revision 1.55 / (download) - annotate - [select for diffs], Sat Jan 18 10:06:28 2003 UTC (10 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.54: +29 -3
lines
Diff to previous 1.54 (colored)
Merge the nathanw_sa branch.
Revision 1.54 / (download) - annotate - [select for diffs], Fri Sep 27 15:37:45 2002 UTC (10 years, 7 months ago) by provos
Branch: MAIN
CVS Tags: nathanw_sa_before_merge,
nathanw_sa_base,
kqueue-beforemerge,
kqueue-base,
kqueue-aftermerge,
gmcgarry_ucred_base,
gmcgarry_ctxsw_base,
gmcgarry_ctxsw,
fvdl_fs64_base
Branch point for: gmcgarry_ucred
Changes since 1.53: +3 -3
lines
Diff to previous 1.53 (colored)
remove trailing \n in panic(). approved perry.
Revision 1.53 / (download) - annotate - [select for diffs], Wed Sep 25 22:21:43 2002 UTC (10 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.52: +2 -3
lines
Diff to previous 1.52 (colored)
Don't include <sys/map.h>.
Revision 1.52 / (download) - annotate - [select for diffs], Wed Sep 4 01:32:33 2002 UTC (10 years, 8 months ago) by matt
Branch: MAIN
Changes since 1.51: +15 -16
lines
Diff to previous 1.51 (colored)
Use the queue macros from <sys/queue.h> instead of referring to the queue members directly. Use *_FOREACH whenever possible.
Revision 1.51 / (download) - annotate - [select for diffs], Wed Aug 28 07:16:38 2002 UTC (10 years, 8 months ago) by gmcgarry
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.50: +6 -2
lines
Diff to previous 1.50 (colored)
MI kernel support for user-level Restartable Atomic Sequences (RAS).
Revision 1.50 / (download) - annotate - [select for diffs], Fri Jul 26 06:04:57 2002 UTC (10 years, 9 months ago) by enami
Branch: MAIN
Changes since 1.49: +10 -7
lines
Diff to previous 1.49 (colored)
Cosmetic changes.
Revision 1.49 / (download) - annotate - [select for diffs], Fri Jul 26 06:04:12 2002 UTC (10 years, 9 months ago) by enami
Branch: MAIN
Changes since 1.48: +11 -6
lines
Diff to previous 1.48 (colored)
Add some necessary but missing resource deallocation.
Revision 1.48 / (download) - annotate - [select for diffs], Tue Jul 2 20:27:46 2002 UTC (10 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.47: +79 -2
lines
Diff to previous 1.47 (colored)
add KSTACK_CHECK_MAGIC. discussed on tech-kern.
Revision 1.47 / (download) - annotate - [select for diffs], Fri Apr 12 17:02:33 2002 UTC (11 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002,
netbsd-1-6-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001,
netbsd-1-6
Branch point for: gehenna-devsw
Changes since 1.46: +4 -9
lines
Diff to previous 1.46 (colored)
Use SESSHOLD and SESSRELE consistently. Add SESSHOLD and SESSRELE to the t_session, so that we don't have dangling references [inspired by OpenBSD].
Revision 1.46 / (download) - annotate - [select for diffs], Fri Mar 8 20:48:40 2002 UTC (11 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: newlock-base,
eeh-devprop-base,
eeh-devprop
Branch point for: newlock
Changes since 1.45: +7 -7
lines
Diff to previous 1.45 (colored)
Pool deals fairly well with physical memory shortage, but it doesn't deal with shortages of the VM maps where the backing pages are mapped (usually kmem_map). Try to deal with this: * Group all information about the backend allocator for a pool in a separate structure. The pool references this structure, rather than the individual fields. * Change the pool_init() API accordingly, and adjust all callers. * Link all pools using the same backend allocator on a list. * The backend allocator is responsible for waiting for physical memory to become available, but will still fail if it cannot callocate KVA space for the pages. If this happens, carefully drain all pools using the same backend allocator, so that some KVA space can be freed. * Change pool_reclaim() to indicate if it actually succeeded in freeing some pages, and use that information to make draining easier and more efficient. * Get rid of PR_URGENT. There was only one use of it, and it could be dealt with by the caller. From art@openbsd.org.
Revision 1.45 / (download) - annotate - [select for diffs], Mon Nov 12 15:25:13 2001 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base,
ifpoll-base,
ifpoll
Changes since 1.44: +4 -1
lines
Diff to previous 1.44 (colored)
add RCSIDs
Revision 1.44 / (download) - annotate - [select for diffs], Sun Feb 4 22:32:24 2001 UTC (12 years, 3 months ago) by pk
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase,
thorpej_scsipi_beforemerge,
thorpej_scsipi_base,
thorpej-devvp-base3,
thorpej-devvp-base2,
thorpej-devvp-base,
thorpej-devvp,
pre-chs-ubcperf,
post-chs-ubcperf
Branch point for: thorpej-mips-cache,
nathanw_sa,
kqueue
Changes since 1.43: +7 -2
lines
Diff to previous 1.43 (colored)
When freeing a session, remove the reference to it from the associated tty.
Revision 1.43 / (download) - annotate - [select for diffs], Wed Nov 8 14:28:13 2000 UTC (12 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.42: +7 -4
lines
Diff to previous 1.42 (colored)
Update for hashinit() change.
Revision 1.42 / (download) - annotate - [select for diffs], Thu Aug 17 14:37:54 2000 UTC (12 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.41: +3 -8
lines
Diff to previous 1.41 (colored)
If maniuplating a read lock on the proc list, we no longer need to go to splclock() -- spinlockmgr() handles the interrupt blocking while holding the interlock for us, now.
Revision 1.41 / (download) - annotate - [select for diffs], Sat May 27 00:40:45 2000 UTC (12 years, 11 months ago) by sommerfeld
Branch: MAIN
CVS Tags: netbsd-1-5-base,
netbsd-1-5-RELEASE,
netbsd-1-5-PATCH001,
netbsd-1-5-BETA2,
netbsd-1-5-BETA,
netbsd-1-5-ALPHA2,
minoura-xpg4dl-base,
minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.40: +5 -4
lines
Diff to previous 1.40 (colored)
Reduce use of curproc in several places: - Change ktrace interface to pass in the current process, rather than p->p_tracep, since the various ktr* function need curproc anyway. - Add curproc as a parameter to mi_switch() since all callers had it handy anyway. - Add a second proc argument for inferior() since callers all had curproc handy. Also, miscellaneous cleanups in ktrace: - ktrace now always uses file-based, rather than vnode-based I/O (simplifies, increases type safety); eliminate KTRFLAG_FD & KTRFAC_FD. Do non-blocking I/O, and yield a finite number of times when receiving EWOULDBLOCK before giving up. - move code duplicated between sys_fktrace and sys_ktrace into ktrace_common. - simplify interface to ktrwrite()
Revision 1.40 / (download) - annotate - [select for diffs], Mon May 8 20:07:37 2000 UTC (13 years ago) by thorpej
Branch: MAIN
Changes since 1.39: +7 -7
lines
Diff to previous 1.39 (colored)
__predict_false() the DIAGNOSTIC error checks.
Revision 1.39 / (download) - annotate - [select for diffs], Thu Mar 30 09:27:12 2000 UTC (13 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.38: +20 -20
lines
Diff to previous 1.38 (colored)
Get rid of register declarations.
Revision 1.38 / (download) - annotate - [select for diffs], Sat Jan 22 16:53:50 2000 UTC (13 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.37: +5 -5
lines
Diff to previous 1.37 (colored)
After some discussion with Mycroft, change splstatclock() to splclock(). The rule is that you don't get to call scheduler-related functions (e.g. wakeup()) above the clock interrupt. Going to statclock unnecessarily hoses e.g. serial interrupts on the SPARC.
Revision 1.37 / (download) - annotate - [select for diffs], Sat Jan 22 16:32:02 2000 UTC (13 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.36: +6 -5
lines
Diff to previous 1.36 (colored)
Back out rev 1.36... what was I thinking? Also, update the comment that led me astray to reflect reality.
Revision 1.36 / (download) - annotate - [select for diffs], Thu Jan 13 21:55:36 2000 UTC (13 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.35: +4 -4
lines
Diff to previous 1.35 (colored)
Per my comment earlier in the file, we only need to go do splsoftclock() when write-locking the proclist; splstatclock() is a wee bit overkill.
Revision 1.35 / (download) - annotate - [select for diffs], Tue Sep 28 14:47:03 1999 UTC (13 years, 7 months ago) by bouyer
Branch: MAIN
CVS Tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
wrstuden-devbsize,
fvdl-softdep-base,
fvdl-softdep,
comdex-fall-1999-base,
comdex-fall-1999
Branch point for: thorpej_scsipi
Changes since 1.34: +24 -1
lines
Diff to previous 1.34 (colored)
Remplace kern.shortcorename sysctl with a more flexible sheme, core filename format, which allow to change the name of the core dump, and to relocate it in a directory. Credits to Bill Sommerfeld for giving me the idea :) The default core filename format can be changed by options DEFCORENAME and/or kern.defcorename Create a new sysctl tree, proc, which holds per-process values (for now the corename format, and resources limits). Process is designed by its pid at the second level name. These values are inherited on fork, and the corename fomat is reset to defcorename on suid/sgid exec. Create a p_sugid() function, to take appropriate actions on suid/sgid exec (for now set the P_SUGID flag and reset the per-proc corename). Adjust dosetrlimit() to allow changing limits of one proc by another, with credential controls.
Revision 1.34 / (download) - annotate - [select for diffs], Sun Jul 25 06:30:34 1999 UTC (13 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.33: +13 -33
lines
Diff to previous 1.33 (colored)
Turn the proclist lock into a read/write spinlock. Update proclist locking calls to reflect this. Also, block statclock rather than softclock during in the proclist locking functions, to address a problem reported on current-users by Sean Doran.
Revision 1.33 / (download) - annotate - [select for diffs], Thu Jul 22 21:08:31 1999 UTC (13 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.32: +141 -4
lines
Diff to previous 1.32 (colored)
Add a read/write lock to the proclists and PID hash table. Use the write lock when doing PID allocation, and during the process exit path. Use a read lock every where else, including within schedcpu() (interrupt context). Note that holding the write lock implies blocking schedcpu() from running (blocks softclock). PID allocation is now MP-safe. Note this actually fixes a bug on single processor systems that was probably extremely difficult to tickle; it was possible that schedcpu() would run off a bad pointer if the right clock interrupt happened to come in the middle of a LIST_INSERT_HEAD() or LIST_REMOVE() to/from allproc.
Revision 1.32 / (download) - annotate - [select for diffs], Thu Jul 22 18:13:37 1999 UTC (13 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.31: +15 -4
lines
Diff to previous 1.31 (colored)
Rework the process exit path, in preparation for making process exit and PID allocation MP-safe. A new process state is added: SDEAD. This state indicates that a process is dead, but not yet a zombie (has not yet been processed by the process reaper). SDEAD processes exist on both the zombproc list (via p_list) and deadproc (via p_hash; the proc has been removed from the pidhash earlier in the exit path). When the reaper deals with a process, it changes the state to SZOMB, so that wait4 can process it. Add a P_ZOMBIE() macro, which treats a proc in SZOMB or SDEAD as a zombie, and update various parts of the kernel to reflect the new state.
Revision 1.31 / (download) - annotate - [select for diffs], Tue Sep 8 23:47:49 1998 UTC (14 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-4-base,
netbsd-1-4-RELEASE,
netbsd-1-4-PATCH003,
netbsd-1-4-PATCH002,
netbsd-1-4-PATCH001,
netbsd-1-4,
kenh-if-detach-base,
kenh-if-detach,
kame_14_19990705,
kame_14_19990628,
kame_141_19991130,
kame,
chs-ubc-base,
chs-ubc
Branch point for: chs-ubc2
Changes since 1.30: +22 -4
lines
Diff to previous 1.30 (colored)
- Add a new proclist, deadproc, which holds dead-but-not-yet-zombie processes. - Create a new data structure, the proclist_desc, which contains a pointer to a proclist, and eventually, a pointer to the lock for that proclist. Declare a static array of proclist_descs, proclists[], consisting of allproc, deadproc, and zombproc.
Revision 1.30 / (download) - annotate - [select for diffs], Tue Sep 1 01:02:33 1998 UTC (14 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.29: +4 -1
lines
Diff to previous 1.29 (colored)
Use the pool allocator and the "nointr" pool page allocator for rusage structures.
Revision 1.29 / (download) - annotate - [select for diffs], Tue Sep 1 00:08:44 1998 UTC (14 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.28: +6 -4
lines
Diff to previous 1.28 (colored)
Use the pool allocator and the "nointr" pool page allocator for pgrp structures.
Revision 1.28 / (download) - annotate - [select for diffs], Mon Aug 31 23:20:16 1998 UTC (14 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.27: +8 -1
lines
Diff to previous 1.27 (colored)
Use the pool allocator and "nointr" pool page allocator for pcred and plimit structures.
Revision 1.27 / (download) - annotate - [select for diffs], Fri Aug 28 21:20:05 1998 UTC (14 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.26: +2 -2
lines
Diff to previous 1.26 (colored)
Use the "nointr" pool page allocator.
Revision 1.26 / (download) - annotate - [select for diffs], Tue Aug 18 06:12:34 1998 UTC (14 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.25: +7 -4
lines
Diff to previous 1.25 (colored)
Add some braces to make egcs happy (ambiguous else warning).
Revision 1.25 / (download) - annotate - [select for diffs], Tue Aug 4 04:03:13 1998 UTC (14 years, 9 months ago) by perry
Branch: MAIN
Changes since 1.24: +2 -2
lines
Diff to previous 1.24 (colored)
Abolition of bcopy, ovbcopy, bcmp, and bzero, phase one. bcopy(x, y, z) -> memcpy(y, x, z) ovbcopy(x, y, z) -> memmove(y, x, z) bcmp(x, y, z) -> memcmp(x, y, z) bzero(x, y) -> memset(x, 0, y)
Revision 1.24 / (download) - annotate - [select for diffs], Sun Aug 2 04:41:32 1998 UTC (14 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.23: +5 -1
lines
Diff to previous 1.23 (colored)
Use a pool for proc structures.
Revision 1.23 / (download) - annotate - [select for diffs], Sun Mar 1 02:22:29 1998 UTC (15 years, 2 months ago) by fvdl
Branch: MAIN
CVS Tags: eeh-paddr_t-base,
eeh-paddr_t
Changes since 1.22: +2 -2
lines
Diff to previous 1.22 (colored)
Merge with Lite2 + local changes
Revision 1.22 / (download) - annotate - [select for diffs], Sat Feb 14 19:34:12 1998 UTC (15 years, 3 months ago) by kleink
Branch: MAIN
Changes since 1.21: +2 -2
lines
Diff to previous 1.21 (colored)
Fix variable declarations: register -> register int.
Revision 1.21 / (download) - annotate - [select for diffs], Sat Feb 14 00:37:32 1998 UTC (15 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.20: +2 -1
lines
Diff to previous 1.20 (colored)
Prevent the session ID from disappearing if the session leader exits (thus causing s_leader to become NULL) by storing the session ID separately in the session structure. Export the session ID to userspace in the eproc structure. Submitted by Tom Proett <proett@nas.nasa.gov>.
Revision 1.20 / (download) - annotate - [select for diffs], Sat Feb 7 02:44:46 1998 UTC (15 years, 3 months ago) by chs
Branch: MAIN
Changes since 1.19: +4 -4
lines
Diff to previous 1.19 (colored)
add flags arg to hashinit(), to pass to malloc().
Revision 1.19 / (download) - annotate - [select for diffs], Wed May 21 19:56:50 1997 UTC (16 years ago) by gwr
Branch: MAIN
CVS Tags: thorpej-signal-base,
thorpej-signal,
netbsd-1-3-base,
netbsd-1-3-RELEASE,
netbsd-1-3-PATCH003-CANDIDATE2,
netbsd-1-3-PATCH003-CANDIDATE1,
netbsd-1-3-PATCH003-CANDIDATE0,
netbsd-1-3-PATCH003,
netbsd-1-3-PATCH002,
netbsd-1-3-PATCH001,
netbsd-1-3-BETA,
netbsd-1-3,
marc-pcmcia-bp,
marc-pcmcia-base,
marc-pcmcia,
bouyer-scsipi
Changes since 1.18: +1 -94
lines
Diff to previous 1.18 (colored)
Moved db_kill_proc() and db_show_all_procs() to ddb/db_xxx.c
Revision 1.18 / (download) - annotate - [select for diffs], Thu May 8 17:22:05 1997 UTC (16 years ago) by kleink
Branch: MAIN
Changes since 1.17: +4 -1
lines
Diff to previous 1.17 (colored)
Pull in the declarations of db_expression() and db_error(), used by db_kill_proc().
Revision 1.17 / (download) - annotate - [select for diffs], Wed May 7 18:48:15 1997 UTC (16 years ago) by gwr
Branch: MAIN
Changes since 1.16: +91 -1
lines
Diff to previous 1.16 (colored)
Add db_kill_proc() for DDB (and move db_show_all_procs here so all the "proc" debugging stuff is here in one place).
Revision 1.16 / (download) - annotate - [select for diffs], Sun Oct 13 02:32:33 1996 UTC (16 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-setroot,
mrg-vm-swap,
is-newarp-before-merge,
is-newarp-base,
is-newarp
Changes since 1.15: +4 -4
lines
Diff to previous 1.15 (colored)
backout previous kprintf change
Revision 1.15 / (download) - annotate - [select for diffs], Thu Oct 10 22:46:17 1996 UTC (16 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.14: +4 -4
lines
Diff to previous 1.14 (colored)
printf -> kprintf, sprintf -> ksprintf
Revision 1.14 / (download) - annotate - [select for diffs], Fri Feb 9 18:59:41 1996 UTC (17 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base,
netbsd-1-2-RELEASE,
netbsd-1-2-PATCH001,
netbsd-1-2-BETA,
netbsd-1-2
Changes since 1.13: +6 -2
lines
Diff to previous 1.13 (colored)
More proto fixes
Revision 1.13 / (download) - annotate - [select for diffs], Sun Feb 4 02:15:55 1996 UTC (17 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.12: +3 -3
lines
Diff to previous 1.12 (colored)
First pass at prototyping
Revision 1.12 / (download) - annotate - [select for diffs], Sun Mar 19 23:44:49 1995 UTC (18 years, 2 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base,
netbsd-1-1-RELEASE,
netbsd-1-1-PATCH001,
netbsd-1-1
Changes since 1.11: +3 -3
lines
Diff to previous 1.11 (colored)
Use %p.
Revision 1.11 / (download) - annotate - [select for diffs], Sat Dec 24 15:07:27 1994 UTC (18 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.10: +7 -2
lines
Diff to previous 1.10 (colored)
various cleanups for -Wall. some inspired by James Jegers.
Revision 1.10 / (download) - annotate - [select for diffs], Tue Aug 30 03:05:38 1994 UTC (18 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.9: +60 -92
lines
Diff to previous 1.9 (colored)
Convert process, file, and namei lists and hash tables to use queue.h.
Revision 1.9 / (download) - annotate - [select for diffs], Wed Jun 29 06:32:36 1994 UTC (18 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base,
netbsd-1-0-RELEASE,
netbsd-1-0-PATCH1,
netbsd-1-0-PATCH06,
netbsd-1-0-PATCH05,
netbsd-1-0-PATCH04,
netbsd-1-0-PATCH03,
netbsd-1-0-PATCH02,
netbsd-1-0-PATCH0,
netbsd-1-0
Changes since 1.8: +3 -2
lines
Diff to previous 1.8 (colored)
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
Revision 1.8 / (download) - annotate - [select for diffs], Wed Jun 8 11:28:40 1994 UTC (18 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.7: +2 -2
lines
Diff to previous 1.7 (colored)
Update to 4.4-Lite fs code.
Revision 1.7 / (download) - annotate - [select for diffs], Thu May 19 05:57:50 1994 UTC (19 years ago) by cgd
Branch: MAIN
Changes since 1.6: +104 -31
lines
Diff to previous 1.6 (colored)
update to lite
Revision 1.6 / (download) - annotate - [select for diffs], Wed May 4 03:41:56 1994 UTC (19 years ago) by cgd
Branch: MAIN
Changes since 1.5: +3 -3
lines
Diff to previous 1.5 (colored)
Rename a lot of process flags.
Revision 1.5 / (download) - annotate - [select for diffs], Sat Dec 18 04:20:57 1993 UTC (19 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.4: +16 -15
lines
Diff to previous 1.4 (colored)
Canonicalize all #includes.
Revision 1.4 / (download) - annotate - [select for diffs], Sun Jun 27 06:01:40 1993 UTC (19 years, 10 months ago) by andrew
Branch: MAIN
CVS Tags: netbsd-0-9-patch-001,
netbsd-0-9-base,
netbsd-0-9-RELEASE,
netbsd-0-9-BETA,
netbsd-0-9-ALPHA2,
netbsd-0-9-ALPHA,
netbsd-0-9,
magnum-base
Branch point for: magnum
Changes since 1.3: +13 -5
lines
Diff to previous 1.3 (colored)
ANSIfications - removed all implicit function return types and argument definitions. Ensured that all files include "systm.h" to gain access to general prototypes. Casts where necessary.
Revision 1.3 / (download) - annotate - [select for diffs], Sat May 22 11:41:40 1993 UTC (20 years ago) by cgd
Branch: MAIN
Changes since 1.2: +1 -2
lines
Diff to previous 1.2 (colored)
add include of select.h if necessary for protos, or delete if extraneous
Revision 1.2 / (download) - annotate - [select for diffs], Tue May 18 18:19:17 1993 UTC (20 years ago) by cgd
Branch: MAIN
Changes since 1.1: +3 -1
lines
Diff to previous 1.1 (colored)
make kernel select interface be one-stop shopping & clean it all up.
Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (20 years, 2 months ago) by cgd
Branch: MAIN
Initial revision