Up to [cvs.NetBSD.org] / src / sys / kern
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.305 / (download) - annotate - [select for diffs], Sun Sep 2 16:00:00 2012 UTC (9 months, 2 weeks ago) by mlelstv
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.304: +6 -2
lines
Diff to previous 1.304 (colored)
The field ci_curlwp is only defined for MULTIPROCESSOR kernels.
Revision 1.304 / (download) - annotate - [select for diffs], Thu Aug 30 02:26:38 2012 UTC (9 months, 2 weeks ago) by matt
Branch: MAIN
Changes since 1.303: +8 -2
lines
Diff to previous 1.303 (colored)
Add a new more KASSERT/KASSERTMSG
Revision 1.303 / (download) - annotate - [select for diffs], Sat Aug 18 08:54:06 2012 UTC (10 months ago) by christos
Branch: MAIN
Changes since 1.302: +13 -9
lines
Diff to previous 1.302 (colored)
PR/46811: Tetsua Isaki: Don't handle cpu limits when runtime is negative.
Revision 1.302 / (download) - annotate - [select for diffs], Fri Jul 27 05:36:13 2012 UTC (10 months, 3 weeks ago) by matt
Branch: MAIN
Changes since 1.301: +2 -16
lines
Diff to previous 1.301 (colored)
Remove safepri and use IPL_SAFEPRI instead. This may be defined in a MD header file (if not, a value of 0 is assmued).
Revision 1.301 / (download) - annotate - [select for diffs], Sat Apr 21 22:38:25 2012 UTC (13 months, 4 weeks ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base5,
jmcneill-usbmp-base9,
jmcneill-usbmp-base10
Changes since 1.300: +4 -3
lines
Diff to previous 1.300 (colored)
Improve the assert message.
Revision 1.300 / (download) - annotate - [select for diffs], Wed Apr 18 13:44:19 2012 UTC (14 months ago) by yamt
Branch: MAIN
Changes since 1.299: +6 -2
lines
Diff to previous 1.299 (colored)
comment
Revision 1.299 / (download) - annotate - [select for diffs], Sat Mar 3 00:22:24 2012 UTC (15 months, 2 weeks ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base4,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base4
Changes since 1.298: +6 -2
lines
Diff to previous 1.298 (colored)
If IPL_SAFEPRI is defined, use it to initialize safepri.
Revision 1.298 / (download) - annotate - [select for diffs], Sun Feb 19 21:06:54 2012 UTC (15 months, 4 weeks ago) by rmind
Branch: MAIN
CVS Tags: jmcneill-usbmp-base5,
jmcneill-usbmp-base3
Changes since 1.297: +2 -31
lines
Diff to previous 1.297 (colored)
Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3! Approved by core@.
Revision 1.297 / (download) - annotate - [select for diffs], Sat Jan 28 12:22:33 2012 UTC (16 months, 3 weeks ago) by rmind
Branch: MAIN
CVS Tags: netbsd-6-base,
jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.296: +5 -45
lines
Diff to previous 1.296 (colored)
Remove obsolete ltsleep(9) and wakeup_one(9).
Revision 1.296 / (download) - annotate - [select for diffs], Sun Nov 6 14:11:00 2011 UTC (19 months, 1 week ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base3,
yamt-pagecache-base2,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: jmcneill-usbmp
Changes since 1.295: +3 -3
lines
Diff to previous 1.295 (colored)
time_t isn't necessarily "long". PR 45577 from taca@
Revision 1.295 / (download) - annotate - [select for diffs], Wed Oct 5 20:37:40 2011 UTC (20 months, 2 weeks ago) by njoly
Branch: MAIN
CVS Tags: yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.294: +3 -2
lines
Diff to previous 1.294 (colored)
Include sys/syslog.h for log(9).
Revision 1.294 / (download) - annotate - [select for diffs], Wed Oct 5 14:28:08 2011 UTC (20 months, 2 weeks ago) by apb
Branch: MAIN
Changes since 1.293: +3 -3
lines
Diff to previous 1.293 (colored)
revert revision 1.291. log(LOG_WARNING) is not strictly more noisy than printf().
Revision 1.293 / (download) - annotate - [select for diffs], Wed Oct 5 13:22:13 2011 UTC (20 months, 2 weeks ago) by apb
Branch: MAIN
Changes since 1.292: +12 -5
lines
Diff to previous 1.292 (colored)
When killing a process due to RLIMIT_CPU, also log a message with LOG_NOTICE, and print a message to the user with uprintf. From PR 45421 by Greg Woods, but I changed the log priority (the user might think it's an error, but the kernel is just doing its job) and the wording of the message, and I edited a nearby comment.
Revision 1.292 / (download) - annotate - [select for diffs], Wed Oct 5 13:05:49 2011 UTC (20 months, 2 weeks ago) by apb
Branch: MAIN
Changes since 1.291: +3 -3
lines
Diff to previous 1.291 (colored)
Print "WARNING: negative runtime; monotonic clock has gone backwards\n" using log(LOG_WARNING, ...), not just printf(...). From PR 45421 by Greg Woods.
Revision 1.291 / (download) - annotate - [select for diffs], Tue Sep 27 01:02:38 2011 UTC (20 months, 3 weeks ago) by jym
Branch: MAIN
Changes since 1.290: +4 -4
lines
Diff to previous 1.290 (colored)
Modify *ASSERTMSG() so they are now used as variadic macros. The main goal is to provide routines that do as KASSERT(9) says: append a message to the panic format string when the assertion triggers, with optional arguments. Fix call sites to reflect the new definition. Discussed on tech-kern@. See http://mail-index.netbsd.org/tech-kern/2011/09/07/msg011427.html
Revision 1.290 / (download) - annotate - [select for diffs], Sat Jul 30 17:01:04 2011 UTC (22 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.289: +6 -2
lines
Diff to previous 1.289 (colored)
Add an implementation of passive serialization as described in expired US patent 4809168. This is a reader / writer synchronization mechanism, designed for lock-less read operations.
Revision 1.289 / (download) - annotate - [select for diffs], Fri May 13 22:16:43 2011 UTC (2 years, 1 month ago) by rmind
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase,
rmind-uvmplock-base,
cherry-xenmp-base,
cherry-xenmp
Changes since 1.288: +10 -8
lines
Diff to previous 1.288 (colored)
Sprinkle __cacheline_aligned and __read_mostly.
Revision 1.288 / (download) - annotate - [select for diffs], Mon May 2 00:29:53 2011 UTC (2 years, 1 month ago) by rmind
Branch: MAIN
Changes since 1.287: +3 -2
lines
Diff to previous 1.287 (colored)
Extend PCU: - Add pcu_ops_t::pcu_state_release() operation for PCU_RELEASE case. - Add pcu_switchpoint() to perform release operation on context switch. - Sprinkle const, misc. Also, sync MIPS with changes. Per discussions with matt@.
Revision 1.287 / (download) - annotate - [select for diffs], Thu Apr 14 05:33:20 2011 UTC (2 years, 2 months ago) by matt
Branch: MAIN
Changes since 1.286: +5 -2
lines
Diff to previous 1.286 (colored)
Add an assert to make sure no unexpected spinlocks are held in mi_switch
Revision 1.286 / (download) - annotate - [select for diffs], Mon Jan 3 13:22:32 2011 UTC (2 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: jruoho-x86intr-base,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.285: +3 -4
lines
Diff to previous 1.285 (colored)
update comment
Revision 1.285 / (download) - annotate - [select for diffs], Sat Dec 18 01:13:36 2010 UTC (2 years, 6 months ago) by rmind
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Changes since 1.284: +9 -5
lines
Diff to previous 1.284 (colored)
mi_switch: remove invalid assert and add a note that preemption/interrupt may happen while migrating LWP is set. Reported by Manuel Bouyer.
Revision 1.284 / (download) - annotate - [select for diffs], Tue Nov 2 15:17:37 2010 UTC (2 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: uebayasi-xip-base4
Changes since 1.283: +4 -2
lines
Diff to previous 1.283 (colored)
KASSERT we don't kpause indefinitely without interruptability. XXX: using timo == 0 to mean "sleep as long as you like, and forever if you're really tired" is not the smartest interface considering the the hz/n idiom used to specify timo. This leads to unwanted behaviour when hz gets below some impossible-to-know limit. With a usec2ticks() routine it at least be a little more tolerable.
Revision 1.283 / (download) - annotate - [select for diffs], Fri Apr 30 10:02:00 2010 UTC (3 years, 1 month ago) by martin
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base3,
uebayasi-xip-base2
Changes since 1.282: +3 -2
lines
Diff to previous 1.282 (colored)
Add a CTASSERT to make sure the cexp and ldavg arrays are kept in sync
Revision 1.282 / (download) - annotate - [select for diffs], Tue Apr 20 16:49:48 2010 UTC (3 years, 2 months ago) by rmind
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.281: +15 -14
lines
Diff to previous 1.281 (colored)
sched_pstats: fix previous, exclude system/softintr threads from loadavg.
Revision 1.281 / (download) - annotate - [select for diffs], Fri Apr 16 03:21:49 2010 UTC (3 years, 2 months ago) by rmind
Branch: MAIN
Changes since 1.280: +59 -22
lines
Diff to previous 1.280 (colored)
- Merge sched_pstats() and uvm_meter()/uvm_loadav(). Avoids double loop through all LWPs and duplicate locking overhead. - Move sched_pstats() from soft-interrupt context to process 0 main loop. Avoids blocking effect on real-time threads. Mostly fixes PR/38792. Note: it might be worth to move the loop above PRI_PGDAEMON. Also, sched_pstats() might be cleaned-up slightly.
Revision 1.280 / (download) - annotate - [select for diffs], Wed Mar 3 00:47:31 2010 UTC (3 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Changes since 1.279: +2 -8
lines
Diff to previous 1.279 (colored)
remove redundant checks of PK_MARKER.
Revision 1.279 / (download) - annotate - [select for diffs], Tue Feb 23 22:19:27 2010 UTC (3 years, 3 months ago) by darran
Branch: MAIN
Changes since 1.278: +11 -17
lines
Diff to previous 1.278 (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.278 / (download) - annotate - [select for diffs], Sun Feb 21 07:39:18 2010 UTC (3 years, 3 months ago) by darran
Branch: MAIN
Changes since 1.277: +4 -4
lines
Diff to previous 1.277 (colored)
DTrace: Add __predict_false() to the DTrace hooks per rmind's suggestion.
Revision 1.277 / (download) - annotate - [select for diffs], Sun Feb 21 07:01:57 2010 UTC (3 years, 3 months ago) by darran
Branch: MAIN
Changes since 1.276: +3 -2
lines
Diff to previous 1.276 (colored)
Added a defflag option for KDTRACE_HOOKS and included opt_dtrace.h in the relevant files. (Per Quentin Garnier - thanks!).
Revision 1.276 / (download) - annotate - [select for diffs], Sun Feb 21 02:11:40 2010 UTC (3 years, 3 months ago) by darran
Branch: MAIN
Changes since 1.275: +30 -2
lines
Diff to previous 1.275 (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.275 / (download) - annotate - [select for diffs], Thu Feb 18 20:58:23 2010 UTC (3 years, 4 months ago) by skrll
Branch: MAIN
Changes since 1.274: +4 -4
lines
Diff to previous 1.274 (colored)
Fix comment(s). OK'ed by rmind
Revision 1.274 / (download) - annotate - [select for diffs], Wed Dec 30 23:54:30 2009 UTC (3 years, 5 months ago) by rmind
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.273: +4 -4
lines
Diff to previous 1.273 (colored)
- nextlwp: do not set l_cpu, it should be returned correct (add assert). - resched_cpu: avoid double set of ci.
Revision 1.273 / (download) - annotate - [select for diffs], Sat Dec 5 22:38:19 2009 UTC (3 years, 6 months ago) by pooka
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.272: +3 -3
lines
Diff to previous 1.272 (colored)
tsleep() on lbolt is now illegal. Convert cv_wakeup(&lbolt) to cv_broadcast(&lbolt) and get rid of the prior.
Revision 1.272 / (download) - annotate - [select for diffs], Sat Dec 5 22:34:43 2009 UTC (3 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.271: +4 -2
lines
Diff to previous 1.271 (colored)
Convert tsleep(&lbolt) to kpause(). Make ltsleep/mtsleep on lbolt illegal. I examined all places where lbolt is referenced to make sure there were pointer aliases of it passed to tsleep, but put a KASSERT in m/ltsleep() just to be sure.
Revision 1.271 / (download) - annotate - [select for diffs], Wed Oct 21 21:12:06 2009 UTC (3 years, 7 months ago) by rmind
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.270: +11 -25
lines
Diff to previous 1.270 (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.270 / (download) - annotate - [select for diffs], Sat Oct 3 22:32:56 2009 UTC (3 years, 8 months ago) by elad
Branch: MAIN
Changes since 1.269: +3 -58
lines
Diff to previous 1.269 (colored)
- Move sched_listener and co. from kern_synch.c to sys_sched.c, where it really belongs (suggested by rmind@), - Rename sched_init() to synch_init(), and introduce a new sched_init() in sys_sched.c where we (a) initialize the sysctl node (no more link-set) and (b) listen on the process scope with sched_listener. Reviewed by and okay rmind@.
Revision 1.269 / (download) - annotate - [select for diffs], Sat Oct 3 21:21:56 2009 UTC (3 years, 8 months ago) by elad
Branch: MAIN
Changes since 1.268: +3 -3
lines
Diff to previous 1.268 (colored)
Oops, forgot to make sched_listener static. Pointed out by rmind@, thansk!
Revision 1.268 / (download) - annotate - [select for diffs], Sat Oct 3 01:30:25 2009 UTC (3 years, 8 months ago) by elad
Branch: MAIN
Changes since 1.267: +57 -2
lines
Diff to previous 1.267 (colored)
Move sched policy back to the subsystem.
Revision 1.267 / (download) - annotate - [select for diffs], Sun Jul 19 10:11:55 2009 UTC (3 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
jymxensuspend-base
Changes since 1.266: +4 -2
lines
Diff to previous 1.266 (colored)
set LP_RUNNING when starting lwp0 and idle lwps. add assertions.
Revision 1.266 / (download) - annotate - [select for diffs], Mon Jun 29 23:39:00 2009 UTC (3 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6
Changes since 1.265: +3 -3
lines
Diff to previous 1.265 (colored)
update a comment
Revision 1.265 / (download) - annotate - [select for diffs], Sun Jun 28 15:18:50 2009 UTC (3 years, 11 months ago) by rmind
Branch: MAIN
Changes since 1.264: +4 -2
lines
Diff to previous 1.264 (colored)
Ephemeral mapping (emap) implementation. Concept is based on the idea that activity of other threads will perform the TLB flush for the processes using emap as a side effect. To track that, global and per-CPU generation numbers are used. This idea was suggested by Andrew Doran; various improvements to it by me. Notes: - For now, zero-copy on pipe is not yet enabled. - TCP socket code would likely need more work. - Additional UVM loaning improvements are needed. Proposed on <tech-kern>, silence there. Quickly reviewed by <ad>.
Revision 1.264 / (download) - annotate - [select for diffs], Thu Apr 16 21:19:23 2009 UTC (4 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base,
jym-xensuspend-base
Changes since 1.263: +21 -20
lines
Diff to previous 1.263 (colored)
kpreempt: fix another bug, uintptr_t -> bool truncation.
Revision 1.263 / (download) - annotate - [select for diffs], Thu Apr 16 00:17:19 2009 UTC (4 years, 2 months ago) by rmind
Branch: MAIN
Changes since 1.262: +2 -6
lines
Diff to previous 1.262 (colored)
Avoid few #ifdef KSTACK_CHECK_MAGIC.
Revision 1.262 / (download) - annotate - [select for diffs], Wed Apr 15 11:44:20 2009 UTC (4 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.261: +4 -2
lines
Diff to previous 1.261 (colored)
kpreempt: report a failure of cpu_kpreempt_enter. otherwise x86 trap() loops infinitely. PR/41202.
Revision 1.261 / (download) - annotate - [select for diffs], Sat Mar 28 21:43:16 2009 UTC (4 years, 2 months ago) by rmind
Branch: MAIN
Changes since 1.260: +15 -17
lines
Diff to previous 1.260 (colored)
- kpreempt_disabled: constify l. - Few predictions. - KNF.
Revision 1.260 / (download) - annotate - [select for diffs], Wed Feb 4 21:29:54 2009 UTC (4 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Changes since 1.259: +10 -5
lines
Diff to previous 1.259 (colored)
Warn once and no more about backwards monotonic clock.
Revision 1.259 / (download) - annotate - [select for diffs], Wed Jan 28 22:59:46 2009 UTC (4 years, 4 months ago) by rmind
Branch: MAIN
Changes since 1.258: +8 -3
lines
Diff to previous 1.258 (colored)
sched_pstats: add few checks to catch the problem. OK by <ad>.
Revision 1.258 / (download) - annotate - [select for diffs], Sun Dec 21 13:26:58 2008 UTC (4 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: mjf-devfs2-base
Changes since 1.257: +2 -19
lines
Diff to previous 1.257 (colored)
Redo previous. Don't count deferrals due to raised IPL. It's not that meaningful.
Revision 1.257 / (download) - annotate - [select for diffs], Sat Dec 20 23:06:14 2008 UTC (4 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.256: +11 -2
lines
Diff to previous 1.256 (colored)
Don't increment the 'kpreempt defer: IPL' counter if a preemption is pending and we try to process it from interrupt context. We can't process it, and will be handled at EOI anyway. Can happen when kernel_lock is released.
Revision 1.256 / (download) - annotate - [select for diffs], Sat Dec 13 20:43:38 2008 UTC (4 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.255: +3 -10
lines
Diff to previous 1.255 (colored)
PR kern/36183 problem with ptrace and multithreaded processes Fix the famous "gdb + threads = panic" problem. Also, fix another revivesa merge botch.
Revision 1.255 / (download) - annotate - [select for diffs], Sat Nov 15 10:54:32 2008 UTC (4 years, 7 months ago) by skrll
Branch: MAIN
CVS Tags: haad-nbase2,
haad-dm-base2,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Changes since 1.254: +10 -10
lines
Diff to previous 1.254 (colored)
s/process/LWP/ in comments where appropriate.
Revision 1.254 / (download) - annotate - [select for diffs], Wed Oct 29 21:35:27 2008 UTC (4 years, 7 months ago) by smb
Branch: MAIN
CVS Tags: netbsd-5-base,
netbsd-5-0-RC1
Branch point for: netbsd-5
Changes since 1.253: +2 -2
lines
Diff to previous 1.253 (colored)
Fix a type -- a comment started with /m instead of /* ....
Revision 1.253 / (download) - annotate - [select for diffs], Wed Oct 29 20:18:20 2008 UTC (4 years, 7 months ago) by skrll
Branch: MAIN
Changes since 1.252: +3 -3
lines
Diff to previous 1.252 (colored)
Typo in comment.
Revision 1.252 / (download) - annotate - [select for diffs], Wed Oct 15 06:51:20 2008 UTC (4 years, 8 months ago) by wrstuden
Branch: MAIN
CVS Tags: matt-mips64-base2,
haad-dm-base1
Branch point for: nick-hppapmap
Changes since 1.251: +31 -2
lines
Diff to previous 1.251 (colored)
Merge wrstuden-revivesa into HEAD.
Revision 1.251 / (download) - annotate - [select for diffs], Fri Jul 25 00:48:59 2008 UTC (4 years, 10 months ago) by uwe
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
simonb-wapbl-nbase,
simonb-wapbl-base
Changes since 1.250: +3 -2
lines
Diff to previous 1.250 (colored)
Declare lwp_exit_switchaway() __dead. Add infinite loop at the end of lwp_exit_switchaway() to convince gcc that cpu_switchto(NULL, ...) is really not going to return in that case. Exposed by gcc4.3. Reported on tech-kern by Alexander Shishkin.
Revision 1.250 / (download) - annotate - [select for diffs], Wed Jul 2 19:44:10 2008 UTC (4 years, 11 months ago) by rmind
Branch: MAIN
Branch point for: haad-dm
Changes since 1.249: +10 -50
lines
Diff to previous 1.249 (colored)
Remove outdated comments, and historical CCPU_SHIFT. Make resched_cpu static, const-ify ccpu. Note: resched_cpu is not correct, should be revisited. OK by <ad>.
Revision 1.249 / (download) - annotate - [select for diffs], Wed Jul 2 19:38:37 2008 UTC (4 years, 11 months ago) by rmind
Branch: MAIN
Changes since 1.248: +24 -23
lines
Diff to previous 1.248 (colored)
Remove locking of p_stmutex from sched_pstats(), protect l_pctcpu with p_lock, and make l_cpticks lock-less. Should fix PR/38296. Reviewed (slightly different version) by <ad>.
Revision 1.248 / (download) - annotate - [select for diffs], Sat May 31 21:26:01 2008 UTC (5 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4,
yamt-pf42-base3,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base
Branch point for: simonb-wapbl
Changes since 1.247: +10 -10
lines
Diff to previous 1.247 (colored)
PR kern/38812 race between lwp_exit_switchaway and exit1/coredump Move the LWP RUNNING and TIMEINTR flags into the thread-private flag word.
Revision 1.247 / (download) - annotate - [select for diffs], Thu May 29 23:29:59 2008 UTC (5 years ago) by ad
Branch: MAIN
Changes since 1.246: +3 -3
lines
Diff to previous 1.246 (colored)
lwp_exit_switchaway: set l_lwpctl->lc_curcpu = EXITED, not NONE.
Revision 1.246 / (download) - annotate - [select for diffs], Thu May 29 22:33:27 2008 UTC (5 years ago) by rmind
Branch: MAIN
Changes since 1.245: +17 -48
lines
Diff to previous 1.245 (colored)
Simplifcation for running LWP migration. Removes double-locking in mi_switch(), migration for LSONPROC is now performed via idle loop. Handles/fixes on-CPU case in lwp_migrate(), misc. Closes PR/38169, idea of migration via idle loop by Andrew Doran.
Revision 1.245 / (download) - annotate - [select for diffs], Tue May 27 17:51:17 2008 UTC (5 years ago) by ad
Branch: MAIN
Changes since 1.244: +140 -29
lines
Diff to previous 1.244 (colored)
Move lwp_exit_switchaway() into kern_synch.c. Instead of always switching to the idle loop, pick a new LWP from the run queue.
Revision 1.244 / (download) - annotate - [select for diffs], Mon May 26 12:08:38 2008 UTC (5 years ago) by ad
Branch: MAIN
Changes since 1.243: +17 -12
lines
Diff to previous 1.243 (colored)
Take the mutex pointer and waiters count out of sleepq_t: the values can be or are maintained elsewhere. Now a sleepq_t is just a TAILQ_HEAD.
Revision 1.243 / (download) - annotate - [select for diffs], Mon May 19 17:06:02 2008 UTC (5 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: hpcarm-cleanup-nbase
Changes since 1.242: +2 -4
lines
Diff to previous 1.242 (colored)
Reduce ifdefs due to MULTIPROCESSOR slightly.
Revision 1.242 / (download) - annotate - [select for diffs], Mon May 19 12:48:54 2008 UTC (5 years, 1 month ago) by rmind
Branch: MAIN
Changes since 1.241: +3 -3
lines
Diff to previous 1.241 (colored)
- Make periodical balancing mandatory. - Fix priority raising in M2 (broken after making runqueues mandatory).
Revision 1.241 / (download) - annotate - [select for diffs], Wed Apr 30 12:44:27 2008 UTC (5 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base2,
yamt-nfs-mp-base2
Branch point for: wrstuden-revivesa
Changes since 1.240: +7 -3
lines
Diff to previous 1.240 (colored)
Avoid unneeded AST faults.
Revision 1.240 / (download) - annotate - [select for diffs], Wed Apr 30 00:52:22 2008 UTC (5 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.239: +3 -3
lines
Diff to previous 1.239 (colored)
kpreempt: fix a block that should only have compiled as C++... I gues there is a parsing bug in gcc that let it through.
Revision 1.239 / (download) - annotate - [select for diffs], Wed Apr 30 00:30:56 2008 UTC (5 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.238: +6 -6
lines
Diff to previous 1.238 (colored)
Reapply 1.235 which was lost with a subsequent merge.
Revision 1.238 / (download) - annotate - [select for diffs], Tue Apr 29 15:51:23 2008 UTC (5 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.237: +8 -3
lines
Diff to previous 1.237 (colored)
Ignore processes with PK_MARKER set.
Revision 1.237 / (download) - annotate - [select for diffs], Tue Apr 29 14:35:20 2008 UTC (5 years, 1 month ago) by rmind
Branch: MAIN
Changes since 1.236: +23 -712
lines
Diff to previous 1.236 (colored)
Split the runqueue management code into the separate file. OK by <ad>.
Revision 1.236 / (download) - annotate - [select for diffs], Tue Apr 29 13:56:14 2008 UTC (5 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.235: +4 -6
lines
Diff to previous 1.235 (colored)
Suspended LWPs are no longer created with l_mutex == spc_mutex. Remove workaround in setrunnable. Fixes PR kern/38222.
Revision 1.235 / (download) - annotate - [select for diffs], Mon Apr 28 22:15:47 2008 UTC (5 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.234: +6 -6
lines
Diff to previous 1.234 (colored)
EVCNT_TYPE_INTR -> EVCNT_TYPE_MISC
Revision 1.234 / (download) - annotate - [select for diffs], Mon Apr 28 21:17:16 2008 UTC (5 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.233: +14 -41
lines
Diff to previous 1.233 (colored)
Make the preemption switch a __HAVE instead of an option.
Revision 1.233 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:03 2008 UTC (5 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.232: +2 -9
lines
Diff to previous 1.232 (colored)
Remove clause 3 and 4 from TNF licenses
Revision 1.232 / (download) - annotate - [select for diffs], Mon Apr 28 15:38:03 2008 UTC (5 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.231: +7 -2
lines
Diff to previous 1.231 (colored)
Even if PREEMPTION is defined, disable it by default until any preemption safety issues have been ironed out. Can be enabled at runtime with sysctl.
Revision 1.231 / (download) - annotate - [select for diffs], Mon Apr 28 15:36:01 2008 UTC (5 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.230: +231 -25
lines
Diff to previous 1.230 (colored)
Add MI code to support in-kernel preemption. Preemption is deferred by one of the following: - Holding kernel_lock (indicating that the code is not MT safe). - Bracketing critical sections with kpreempt_disable/kpreempt_enable. - Holding the interrupt priority level above IPL_NONE. Statistics on kernel preemption are reported via event counters, and where preemption is deferred for some reason, it's also reported via lockstat. The LWP priority at which preemption is triggered is tuneable via sysctl.
Revision 1.230 / (download) - annotate - [select for diffs], Sun Apr 27 11:37:48 2008 UTC (5 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.229: +33 -2
lines
Diff to previous 1.229 (colored)
- Rename crit_enter/crit_exit to kpreempt_disable/kpreempt_enable. DragonflyBSD uses the crit names for something quite different. - Add a kpreempt_disabled function for diagnostic assertions. - Add inline versions of kpreempt_enable/kpreempt_disable for primitives. - Make some more changes for preemption safety to the x86 pmap.
Revision 1.229 / (download) - annotate - [select for diffs], Thu Apr 24 18:39:24 2008 UTC (5 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.228: +8 -8
lines
Diff to previous 1.228 (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.228 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:29 2008 UTC (5 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.227: +7 -10
lines
Diff to previous 1.227 (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.227 / (download) - annotate - [select for diffs], Sun Apr 13 22:54:19 2008 UTC (5 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.226: +4 -3
lines
Diff to previous 1.226 (colored)
sched_print_runqueue: add __printf__ attribute to the 'pr' argument.
Revision 1.226 / (download) - annotate - [select for diffs], Sun Apr 13 22:53:31 2008 UTC (5 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.225: +4 -5
lines
Diff to previous 1.225 (colored)
sched_print_runqueue: fix printf formats.
Revision 1.225 / (download) - annotate - [select for diffs], Sun Apr 13 16:22:14 2008 UTC (5 years, 2 months ago) by dogcow
Branch: MAIN
Changes since 1.224: +6 -2
lines
Diff to previous 1.224 (colored)
Since nobody else has fixed it yet: fix case of GDB && !MULTIPROCESSOR.
Revision 1.224 / (download) - annotate - [select for diffs], Sat Apr 12 17:16:09 2008 UTC (5 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.223: +6 -6
lines
Diff to previous 1.223 (colored)
Move the LW_BOUND flag into the thread-private flag word. It can be tested by other threads/CPUs but that is only done when the LWP is known to be in a quiescent state (for example, on a run queue).
Revision 1.223 / (download) - annotate - [select for diffs], Sat Apr 12 17:02:08 2008 UTC (5 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.222: +652 -7
lines
Diff to previous 1.222 (colored)
Take the run queue management code from the M2 scheduler, and make it mandatory. Remove the 4BSD run queue code. Effects: - Pluggable scheduler is only responsible for co-ordinating timeshared jobs. - All systems run with per-CPU run queues. - 4BSD scheduler gets processor sets / affinity. - 4BSD scheduler gets a significant peformance boost on some workloads. Discussed on tech-kern@.
Revision 1.222 / (download) - annotate - [select for diffs], Wed Apr 2 17:38:16 2008 UTC (5 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.221: +2 -9
lines
Diff to previous 1.221 (colored)
yield: don't drop priority to zero. libpthread doesn't make much use of this any more but applications do and it now pessimizes benchmarks.
Revision 1.221 / (download) - annotate - [select for diffs], Mon Mar 17 16:54:51 2008 UTC (5 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
ad-socklock-base1
Changes since 1.220: +6 -6
lines
Diff to previous 1.220 (colored)
Add a boolean parameter to syncobj_t::sobj_unsleep. If true we want the existing behaviour: the unsleep method unlocks and wakes the swapper if needs be. If false, the caller is doing a batch operation and will take care of that later. This is kind of ugly, but it's difficult for the caller to know which lock to release in some situations.
Revision 1.220 / (download) - annotate - [select for diffs], Sun Mar 16 23:11:30 2008 UTC (5 years, 3 months ago) by rmind
Branch: MAIN
Changes since 1.219: +8 -3
lines
Diff to previous 1.219 (colored)
Workaround the case, when l_cpu changes to l_target_cpu, and causes the locking against oneself. Will be revisited. OK by <ad>.
Revision 1.219 / (download) - annotate - [select for diffs], Wed Mar 12 11:00:43 2008 UTC (5 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.218: +5 -3
lines
Diff to previous 1.218 (colored)
Add a preemption counter to lwpctl_t, to allow user threads to detect that they have been preempted.
Revision 1.218 / (download) - annotate - [select for diffs], Tue Mar 11 02:24:43 2008 UTC (5 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.217: +5 -5
lines
Diff to previous 1.217 (colored)
Make context switch + syscall counters optionally per-CPU and accumulate in schedclock() at "about 16 hz".
Revision 1.217 / (download) - annotate - [select for diffs], Thu Feb 14 14:26:57 2008 UTC (5 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
hpcarm-cleanup-base
Branch point for: mjf-devfs2,
keiichi-mipv6
Changes since 1.216: +7 -7
lines
Diff to previous 1.216 (colored)
Make schedstate_percpu::spc_lwplock an exernally allocated item. Remove the hacks in sparc/cpu.c to reinitialize it. This should be in its own cache line but that's another change.
Revision 1.216 / (download) - annotate - [select for diffs], Tue Jan 15 03:37:11 2008 UTC (5 years, 5 months ago) by rmind
Branch: MAIN
CVS Tags: bouyer-xeni386-nbase,
bouyer-xeni386-base
Changes since 1.215: +42 -9
lines
Diff to previous 1.215 (colored)
Implementation of processor-sets, affinity and POSIX real-time extensions. Add schedctl(8) - a program to control scheduling of processes and threads. Notes: - This is supported only by SCHED_M2; - Migration of LWP mechanism will be revisited; Proposed on: <tech-kern>. Reviewed by: <ad>.
Revision 1.215 / (download) - annotate - [select for diffs], Fri Jan 4 21:18:10 2008 UTC (5 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base
Changes since 1.214: +3 -2
lines
Diff to previous 1.214 (colored)
Start detangling lock.h from intr.h. This is likely to cause short term breakage, but the mess of dependencies has been regularly breaking the build recently anyhow.
Revision 1.214 / (download) - annotate - [select for diffs], Wed Jan 2 11:48:51 2008 UTC (5 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.213: +3 -3
lines
Diff to previous 1.213 (colored)
Merge vmlocking2 to head.
Revision 1.213 / (download) - annotate - [select for diffs], Thu Dec 27 22:13:19 2007 UTC (5 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.212: +4 -2
lines
Diff to previous 1.212 (colored)
sched_pstats: need proclist_mutex to send signals.
Revision 1.212 / (download) - annotate - [select for diffs], Sat Dec 22 01:14:54 2007 UTC (5 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.211: +13 -22
lines
Diff to previous 1.211 (colored)
use binuptime for l_stime/l_rtime.
Revision 1.211 / (download) - annotate - [select for diffs], Mon Dec 3 20:26:26 2007 UTC (5 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-kmem,
vmlocking2-base2,
vmlocking2-base1,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
jmcneill-pm-base,
cube-autoconf-base,
cube-autoconf
Branch point for: vmlocking2,
bouyer-xeni386
Changes since 1.210: +4 -4
lines
Diff to previous 1.210 (colored)
Soft interrupts can now take proclist_lock, so there is no need to double-lock alllwp or allproc.
Revision 1.210 / (download) - annotate - [select for diffs], Mon Dec 3 17:15:00 2007 UTC (5 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: vmlocking-nbase
Changes since 1.209: +2 -33
lines
Diff to previous 1.209 (colored)
For the slow path soft interrupts, arrange to have the priority of a borrowed user LWP raised into the 'kernel RT' range if the LWP sleeps (which is unlikely).
Revision 1.209 / (download) - annotate - [select for diffs], Sun Dec 2 14:55:32 2007 UTC (5 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.208: +63 -49
lines
Diff to previous 1.208 (colored)
- mi_switch: adjust so that we don't have to hold the old LWP locked across context switch, since cpu_switchto() can be slow under certain conditions. From rmind@ with adjustments by me. - lwpctl: allow LWPs to reregister instead of returning EINVAL. Just return their existing lwpctl user address.
Revision 1.208 / (download) - annotate - [select for diffs], Thu Nov 29 15:41:07 2007 UTC (5 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.207: +3 -2
lines
Diff to previous 1.207 (colored)
cv_init(&lbolt, "lbolt");
Revision 1.207 / (download) - annotate - [select for diffs], Mon Nov 12 23:11:59 2007 UTC (5 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: bouyer-xenamd64-base2,
bouyer-xenamd64-base
Changes since 1.206: +16 -5
lines
Diff to previous 1.206 (colored)
Add _lwp_ctl() system call: provides a bidirectional, per-LWP communication area between processes and the kernel.
Revision 1.206 / (download) - annotate - [select for diffs], Sat Nov 10 17:45:10 2007 UTC (5 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.205: +6 -6
lines
Diff to previous 1.205 (colored)
Put back equivalent change to rev 1.189 which was lost: setrunnable: adjust to slightly different locking strategy post yamt-idlewlp. Should fix kern/36398. Untested due to connectivity issues.
Revision 1.205 / (download) - annotate - [select for diffs], Tue Nov 6 17:57:46 2007 UTC (5 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.204: +15 -8
lines
Diff to previous 1.204 (colored)
Fix merge error. Spotted by rmind@.
Revision 1.204 / (download) - annotate - [select for diffs], Tue Nov 6 00:42:43 2007 UTC (5 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: jmcneill-base
Changes since 1.203: +95 -109
lines
Diff to previous 1.203 (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.203 / (download) - annotate - [select for diffs], Sun Nov 4 11:43:07 2007 UTC (5 years, 7 months ago) by rmind
Branch: MAIN
Branch point for: mjf-devfs
Changes since 1.202: +15 -8
lines
Diff to previous 1.202 (colored)
- Migrate all threads when the state of CPU is changed to offline; - Fix inverted logic with r_mcount in M2; - setrunnable: perform sched_takecpu() when making the LWP runnable; - setrunnable: l_mutex cannot be spc_mutex here; This makes cpuctl(8) work with SCHED_M2. OK by <ad>.
Revision 1.202 / (download) - annotate - [select for diffs], Mon Oct 29 12:16:54 2007 UTC (5 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.201: +3 -2
lines
Diff to previous 1.201 (colored)
reduce dependencies on opt_sched.h.
Revision 1.201 / (download) - annotate - [select for diffs], Sat Oct 13 00:30:26 2007 UTC (5 years, 8 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-x86pmap-base4,
yamt-x86pmap-base3
Branch point for: bouyer-xenamd64
Changes since 1.200: +4 -3
lines
Diff to previous 1.200 (colored)
- Fix a comment: LSIDL is covered by spc_mutex, not spc_lwplock. - mi_switch: Add a comment that spc_lwplock might not necessary be held.
Revision 1.200 / (download) - annotate - [select for diffs], Tue Oct 9 19:00:14 2007 UTC (5 years, 8 months ago) by rmind
Branch: MAIN
CVS Tags: vmlocking-base
Changes since 1.199: +17 -6
lines
Diff to previous 1.199 (colored)
Import of SCHED_M2 - the implementation of new scheduler, which is based on the original approach of SVR4 with some inspirations about balancing and migration from Solaris. It implements per-CPU runqueues, provides a real-time (RT) and time-sharing (TS) queues, ready to support a POSIX real-time extensions, and also prepared for the support of CPU affinity. The following lines in the kernel config enables the SCHED_M2: no options SCHED_4BSD options SCHED_M2 The scheduler seems to be stable. Further work will come soon. http://mail-index.netbsd.org/tech-kern/2007/10/04/0001.html http://www.netbsd.org/~rmind/m2/mysql_bench_ro_4x_local.png Thanks <ad> for the benchmarks!
Revision 1.199 / (download) - annotate - [select for diffs], Mon Oct 8 20:06:19 2007 UTC (5 years, 8 months ago) by ad
Branch: MAIN
Changes since 1.198: +56 -29
lines
Diff to previous 1.198 (colored)
Merge run time accounting changes from the vmlocking branch. These make the LWP "start time" per-thread instead of per-CPU.
Revision 1.198 / (download) - annotate - [select for diffs], Wed Oct 3 11:20:09 2007 UTC (5 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base2
Changes since 1.197: +9 -6
lines
Diff to previous 1.197 (colored)
- sched_yield: When yielding, drop the priority to MAXPRI ensuring that the calling thread really does yield. The scheduler will adjust it back to a reasonable level within 1 second. This contradicts POSIX, which specifies that sched_yield() put the thread onto the back of its current runqueue. However, POSIX doesn't really have any business specifying what should happen for SCHED_OTHER (i.e. a timesharing scheduler like ours), and Java, MySQL and libpthread rely on sched_yield() doing something useful. - mi_switch: adjust spc_curpriority and newl->l_priority if we avoided the runqueues and are doing a direct switch. Since nothing currently does that, there should be no functional change.
Revision 1.197 / (download) - annotate - [select for diffs], Tue Oct 2 13:17:16 2007 UTC (5 years, 8 months ago) by ad
Branch: MAIN
Changes since 1.196: +3 -3
lines
Diff to previous 1.196 (colored)
Fix assertion that broke debug kernels.
Revision 1.196 / (download) - annotate - [select for diffs], Mon Oct 1 22:14:23 2007 UTC (5 years, 8 months ago) by ad
Branch: MAIN
Changes since 1.195: +11 -9
lines
Diff to previous 1.195 (colored)
Enter mi_switch() from the idle loop if ci_want_resched is set. If there are no jobs to run it will clear it while under lock. Should fix idle.
Revision 1.195 / (download) - annotate - [select for diffs], Tue Sep 25 21:38:57 2007 UTC (5 years, 8 months ago) by ad
Branch: MAIN
Changes since 1.194: +3 -3
lines
Diff to previous 1.194 (colored)
curlwp appears to be set by all active copies of cpu_switchto - remove the MI assignments and assert that it's set in mi_switch().
Revision 1.194 / (download) - annotate - [select for diffs], Mon Aug 6 11:48:23 2007 UTC (5 years, 10 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-x86pmap-base,
nick-csl-alignment-base5,
matt-mips64-base
Branch point for: yamt-x86pmap,
matt-mips64,
matt-armv6
Changes since 1.193: +2 -8
lines
Diff to previous 1.193 (colored)
suspendsched: reduce #ifdef.
Revision 1.193 / (download) - annotate - [select for diffs], Sat Aug 4 11:03:01 2007 UTC (5 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.192: +3 -3
lines
Diff to previous 1.192 (colored)
Add cpuctl(8). For now this is not much more than a toy for debugging and benchmarking that allows taking CPUs online/offline.
Revision 1.192 / (download) - annotate - [select for diffs], Thu Aug 2 01:48:44 2007 UTC (5 years, 10 months ago) by rmind
Branch: MAIN
Branch point for: jmcneill-pm
Changes since 1.191: +3 -2
lines
Diff to previous 1.191 (colored)
sys__lwp_suspend: implement waiting for target LWP status changes (or process exiting). Removes XXXLWP. Reviewed by <ad> some time ago..
Revision 1.191 / (download) - annotate - [select for diffs], Wed Aug 1 23:21:15 2007 UTC (5 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.190: +3 -3
lines
Diff to previous 1.190 (colored)
Ressurect cv_wakeup() and use it on lbolt. Should fix PR kern/36714. (background/foreground signal lossage in -current with various programs).
Revision 1.190 / (download) - annotate - [select for diffs], Mon Jul 9 21:10:54 2007 UTC (5 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base,
mjf-ufs-trans-base,
hpcarm-cleanup
Branch point for: nick-csl-alignment
Changes since 1.189: +48 -29
lines
Diff to previous 1.189 (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.189 / (download) - annotate - [select for diffs], Thu May 31 22:06:09 2007 UTC (6 years ago) by ad
Branch: MAIN
Changes since 1.188: +7 -6
lines
Diff to previous 1.188 (colored)
setrunnable: adjust to slightly different locking strategy post yamt-idlewlp. Should fix kern/36398. Untested due to connectivity issues.
Revision 1.188 / (download) - annotate - [select for diffs], Thu May 17 14:51:40 2007 UTC (6 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.187: +298 -726
lines
Diff to previous 1.187 (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.187 / (download) - annotate - [select for diffs], Sun Mar 11 21:36:49 2007 UTC (6 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: yamt-idlelwp-base8,
thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup
Branch point for: mjf-ufs-trans
Changes since 1.186: +30 -2
lines
Diff to previous 1.186 (colored)
Put back mtsleep() temporarily. Converting everything over to condvars at once will take too much time..
Revision 1.186 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:06 2007 UTC (6 years, 3 months ago) by christos
Branch: MAIN
Branch point for: vmlocking
Changes since 1.185: +3 -3
lines
Diff to previous 1.185 (colored)
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.185 / (download) - annotate - [select for diffs], Tue Feb 27 15:07:29 2007 UTC (6 years, 3 months ago) by yamt
Branch: MAIN
Changes since 1.184: +9 -9
lines
Diff to previous 1.184 (colored)
typedef pri_t and use it instead of int and u_char.
Revision 1.184 / (download) - annotate - [select for diffs], Mon Feb 26 09:20:53 2007 UTC (6 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: ad-audiomp-base,
ad-audiomp
Changes since 1.183: +41 -12
lines
Diff to previous 1.183 (colored)
implement priority inheritance.
Revision 1.183 / (download) - annotate - [select for diffs], Fri Feb 23 16:51:47 2007 UTC (6 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.182: +6 -12
lines
Diff to previous 1.182 (colored)
setrunnable(): don't require that sleeps be interruptable. This breaks smbfs. Fixes PR/35787.
Revision 1.182 / (download) - annotate - [select for diffs], Wed Feb 21 23:48:15 2007 UTC (6 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.181: +3 -3
lines
Diff to previous 1.181 (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.181 / (download) - annotate - [select for diffs], Mon Feb 19 22:14:15 2007 UTC (6 years, 4 months ago) by dsl
Branch: MAIN
Changes since 1.180: +8 -10
lines
Diff to previous 1.180 (colored)
Revert 'optimisation' added in rev 1.179. On i386 (at least) gcc manages two generate two forwards branches which are not usually taken for the old code, and one forwards branch that is usually taken for my 'improved version'. Since (IIRC) both athlon and P4 will predict forwards branches 'not taken' the old code is likely to be faster :-( Faster variants exist, especially ones using the cmov instruction.
Revision 1.180 / (download) - annotate - [select for diffs], Sun Feb 18 16:58:16 2007 UTC (6 years, 4 months ago) by dsl
Branch: MAIN
Changes since 1.179: +6 -2
lines
Diff to previous 1.179 (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.179 / (download) - annotate - [select for diffs], Sun Feb 18 16:03:06 2007 UTC (6 years, 4 months ago) by dsl
Branch: MAIN
Changes since 1.178: +11 -8
lines
Diff to previous 1.178 (colored)
Optimise canonicalisation of l_rtime for the case when the start and stop times are in the same second.
Revision 1.178 / (download) - annotate - [select for diffs], Sat Feb 17 22:31:43 2007 UTC (6 years, 4 months ago) by pavel
Branch: MAIN
Changes since 1.177: +11 -11
lines
Diff to previous 1.177 (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.177 / (download) - annotate - [select for diffs], Thu Feb 15 20:21:13 2007 UTC (6 years, 4 months ago) by ad
Branch: MAIN
Branch point for: yamt-idlelwp
Changes since 1.176: +3 -3
lines
Diff to previous 1.176 (colored)
Add uvm_kick_scheduler() (MP safe) to replace wakeup(&proc0).
Revision 1.176 / (download) - annotate - [select for diffs], Sat Feb 10 14:02:01 2007 UTC (6 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.175: +2 -3
lines
Diff to previous 1.175 (colored)
remove function prototypes of sa_awaken.
Revision 1.175 / (download) - annotate - [select for diffs], Sat Feb 10 02:55:18 2007 UTC (6 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.174: +6 -9
lines
Diff to previous 1.174 (colored)
avoid using struct proc in the perfctrs case, where the variable might not be used.
Revision 1.174 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:31 2007 UTC (6 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Changes since 1.173: +504 -659
lines
Diff to previous 1.173 (colored)
Merge newlock2 to head.
Revision 1.173 / (download) - annotate - [select for diffs], Fri Nov 3 20:46:00 2006 UTC (6 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
newlock2-nbase,
newlock2-base,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
matt-nb4-arm-base,
matt-nb4-arm
Branch point for: wrstuden-fixsa,
netbsd-4
Changes since 1.172: +20 -12
lines
Diff to previous 1.172 (colored)
- ltsleep(): for now, stay at splsched() when releasing sched_lock, or we may allow wakeup() to occur before switching away. PR/32962. - mi_switch(): don't inspect p->p_cred or send signals without holding the kernel lock.
Revision 1.172 / (download) - annotate - [select for diffs], Thu Nov 2 16:26:25 2006 UTC (6 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.171: +2 -1
lines
Diff to previous 1.171 (colored)
ltsleep: fix a race with wakeup().
Revision 1.171 / (download) - annotate - [select for diffs], Wed Nov 1 10:17:58 2006 UTC (6 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.170: +1 -1
lines
Diff to previous 1.170 (colored)
remove some __unused from function parameters.
Revision 1.170 / (download) - annotate - [select for diffs], Wed Nov 1 09:46:14 2006 UTC (6 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.169: +3 -1
lines
Diff to previous 1.169 (colored)
kill signal "dolock" hacks. related to PR/32962 and PR/34895. reviewed by matthew green.
Revision 1.169 / (download) - annotate - [select for diffs], Wed Nov 1 09:32:52 2006 UTC (6 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.168: +25 -27
lines
Diff to previous 1.168 (colored)
mi_switch: move rlimit and autonice handling out of sched_lock in order to simplify locking. related to PR/32962 and PR/34895. reviewed by matthew green.
Revision 1.168 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:17 2006 UTC (6 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.167: +3 -3
lines
Diff to previous 1.167 (colored)
- sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
Revision 1.167 / (download) - annotate - [select for diffs], Thu Sep 7 18:41:28 2006 UTC (6 years, 9 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9,
rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl
Changes since 1.166: +5 -4
lines
Diff to previous 1.166 (colored)
make the bpendtsleep: label only active if KERN_SYNCH_BPENDTSLEEP_LABEL is defined. if this option is present in the Makefile CFLAGS and we are using GCC4, build kern_synch.c with -fno-reorder-blocks, so that this actually works. XXX be nice if KERN_SYNCH_BPENDTSLEEP_LABEL was a normal 'defflag' option XXX but for now take the easy way out and make it checkable in CFLAGS.
Revision 1.166 / (download) - annotate - [select for diffs], Sat Sep 2 06:32:09 2006 UTC (6 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pdpolicy-base8
Branch point for: newlock2
Changes since 1.165: +6 -4
lines
Diff to previous 1.165 (colored)
deal with empty if bodies
Revision 1.165 / (download) - annotate - [select for diffs], Wed Aug 30 17:28:32 2006 UTC (6 years, 9 months ago) by tsutsui
Branch: MAIN
Changes since 1.164: +9 -3
lines
Diff to previous 1.164 (colored)
Disable asm statement which defines bpendtsleep symbol as "handy breakpoint" on all m68k ports since it may cause a multiple symble definition error by code duplication of gcc4 optimizer. Also note about this in comment.
Revision 1.164 / (download) - annotate - [select for diffs], Thu Aug 17 17:11:28 2006 UTC (6 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.163: +3 -3
lines
Diff to previous 1.163 (colored)
Fix all the -D*DEBUG* code that it was rotting away and did not even compile. Mostly from Arnaud Lacombe, many thanks!
Revision 1.163 / (download) - annotate - [select for diffs], Sat Jul 8 00:23:29 2006 UTC (6 years, 11 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Changes since 1.162: +3 -3
lines
Diff to previous 1.162 (colored)
Don't define bpendtsleep on vax (gcc4 optimizer will duplicate the asm that contains it result in a multiple symbol definition in gas).
Revision 1.162 / (download) - annotate - [select for diffs], Sat Jun 24 05:23:06 2006 UTC (6 years, 11 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6
Changes since 1.161: +3 -3
lines
Diff to previous 1.161 (colored)
don't put the bpendtsleep handy breakpoint in sun2 kernels as the output asm includes it twice causing multiply-defined symbols.
Revision 1.161 / (download) - annotate - [select for diffs], Sun May 14 21:15:11 2006 UTC (7 years, 1 month ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5,
simonb-timecounters-base,
gdamore-uart-base,
chap-midi-nbase,
chap-midi-base,
chap-midi
Branch point for: gdamore-uart
Changes since 1.160: +5 -4
lines
Diff to previous 1.160 (colored)
integrate kauth.
Revision 1.160 / (download) - annotate - [select for diffs], Tue Dec 27 04:06:46 2005 UTC (7 years, 5 months ago) by chs
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5,
yamt-uio_vmspace,
yamt-pdpolicy-base4,
yamt-pdpolicy-base3,
yamt-pdpolicy-base2,
yamt-pdpolicy-base,
peter-altq-base,
elad-kernelauth-base
Branch point for: yamt-pdpolicy,
simonb-timecounters,
rpaulo-netinet-merge-pcb,
peter-altq,
elad-kernelauth
Changes since 1.159: +3 -5
lines
Diff to previous 1.159 (colored)
changes for making DIAGNOSTIC not change the kernel ABI: - for structure fields that are conditionally present, make those fields always present. - for functions which are conditionally inline, make them never inline. - remove some other functions which are conditionally defined but don't actually do anything anymore. - make a lock-debugging function conditional on only LOCKDEBUG. as discussed on tech-kern some time back.
Revision 1.159 / (download) - annotate - [select for diffs], Mon Dec 26 18:45:27 2005 UTC (7 years, 5 months ago) by perry
Branch: MAIN
Changes since 1.158: +3 -3
lines
Diff to previous 1.158 (colored)
u_intN_t -> uintN_t
Revision 1.158 / (download) - annotate - [select for diffs], Sat Dec 24 19:12:23 2005 UTC (7 years, 5 months ago) by perry
Branch: MAIN
Changes since 1.157: +13 -13
lines
Diff to previous 1.157 (colored)
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
Revision 1.157 / (download) - annotate - [select for diffs], Sat Dec 24 12:57:14 2005 UTC (7 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.156: +43 -20
lines
Diff to previous 1.156 (colored)
fix a long-standing scheduler problem that p_estcpu is doubled for each fork-wait cycles. - updatepri: factor out the code to decay estcpu so that it can be used by scheduler_wait_hook. - scheduler_fork_hook: record how much estcpu is inherited from the parent process. - scheduler_wait_hook: don't add back inherited estcpu to the parent.
Revision 1.156 / (download) - annotate - [select for diffs], Tue Dec 20 19:26:15 2005 UTC (7 years, 6 months ago) by rpaulo
Branch: MAIN
Changes since 1.155: +7 -5
lines
Diff to previous 1.155 (colored)
Fix comments for preempt() using rev. 1.101.2.31 log of nathanw_sa by thorpej.
Revision 1.155 / (download) - annotate - [select for diffs], Thu Dec 15 13:43:49 2005 UTC (7 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.154: +8 -6
lines
Diff to previous 1.154 (colored)
updatepri: - don't compare a scaled value with a unscaled value. - actually, 7 times the loadfactor is necessary to decay p_estcpu enough, even before the recent p_estcpu changes. after the recent p_estcpu change, 8 times loadavg decay is needed. - fix a comment to match with the recent reality.
Revision 1.154 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:29 2005 UTC (7 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.153: +6 -6
lines
Diff to previous 1.153 (colored)
merge ktrace-lwp.
Revision 1.153 / (download) - annotate - [select for diffs], Tue Nov 1 09:07:53 2005 UTC (7 years, 7 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-vop-base3,
yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base3,
yamt-readahead-base2,
yamt-readahead-base,
yamt-readahead,
ktrace-lwp-base
Changes since 1.152: +35 -15
lines
Diff to previous 1.152 (colored)
make scheduler work better when a system has many runnable processes by making p_estcpu fixpt_t. PR/31542. 1. schedcpu() decreases p_estcpu of all processes every seconds, by at least 1 regardless of load average. 2. schedclock() increases p_estcpu of curproc by 1, at about 16 hz. in the consequence, if a system has >16 processes with runnable lwps, their p_estcpu are not likely increased. by making p_estcpu fixpt_t, we can decay it more slowly when loadavg is high. (ie. solve #1.) i left kinfo_proc2::p_estcpu (ie. ps -O cpu) scaled because i have no idea about its absolute value's usage other than debugging, for which raw values are more valuable.
Revision 1.152 / (download) - annotate - [select for diffs], Sun Oct 30 20:28:56 2005 UTC (7 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.151: +20 -4
lines
Diff to previous 1.151 (colored)
- localize some definitions. - use PPQ macro where appropriate.
Revision 1.151 / (download) - annotate - [select for diffs], Thu Oct 6 07:02:14 2005 UTC (7 years, 8 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-vop-base2,
yamt-vop-base,
thorpej-vnode-attr-base,
thorpej-vnode-attr
Branch point for: yamt-vop
Changes since 1.150: +27 -2
lines
Diff to previous 1.150 (colored)
uninline scheduler hooks.
Revision 1.150 / (download) - annotate - [select for diffs], Sun Oct 2 17:51:27 2005 UTC (7 years, 8 months ago) by chs
Branch: MAIN
Changes since 1.149: +16 -3
lines
Diff to previous 1.149 (colored)
avoid calling into the pool code while holding sched_lock since both pool_get() and pool_put() can call wakeup(). instead, allocate the struct sadata_upcall before taking sched_lock in mi_switch() and free it after releasing sched_lock. clean up some modularity warts by adding a callback to struct sadata_upcall for freeing sa_arg.
Revision 1.149 / (download) - annotate - [select for diffs], Sun May 29 22:24:15 2005 UTC (8 years ago) by christos
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.148: +6 -6
lines
Diff to previous 1.148 (colored)
- add const. - remove unnecessary casts. - add __UNCONST casts and mark them with XXXUNCONST as necessary.
Revision 1.148 / (download) - annotate - [select for diffs], Wed Mar 2 11:05:34 2005 UTC (8 years, 3 months ago) by mycroft
Branch: MAIN
CVS Tags: yamt-km-base4,
yamt-km-base3,
netbsd-3-base,
kent-audio2-base
Branch point for: netbsd-3
Changes since 1.147: +5 -3
lines
Diff to previous 1.147 (colored)
Copyright maintenance.
Revision 1.147 / (download) - annotate - [select for diffs], Sat Feb 26 21:34:55 2005 UTC (8 years, 3 months ago) by perry
Branch: MAIN
Changes since 1.146: +3 -3
lines
Diff to previous 1.146 (colored)
nuke trailing whitespace
Revision 1.146 / (download) - annotate - [select for diffs], Thu Dec 9 21:52:24 2004 UTC (8 years, 6 months ago) by matt
Branch: MAIN
CVS Tags: yamt-km-base2,
yamt-km-base,
matt-timespec,
kent-audio1-beforemerge
Branch point for: yamt-km,
kent-audio2
Changes since 1.145: +74 -3
lines
Diff to previous 1.145 (colored)
Add some debug code to validate the runqueues if RQDEBUG is defined.
Revision 1.145 / (download) - annotate - [select for diffs], Fri Oct 1 16:30:55 2004 UTC (8 years, 8 months ago) by yamt
Branch: MAIN
CVS Tags: kent-audio1-base,
kent-audio1
Changes since 1.144: +3 -3
lines
Diff to previous 1.144 (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.144 / (download) - annotate - [select for diffs], Tue May 18 11:59:11 2004 UTC (9 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.143: +5 -13
lines
Diff to previous 1.143 (colored)
use lockstatus() instead of L_BIGLOCK to check if we're holding a biglock. fix PR/25595.
Revision 1.143 / (download) - annotate - [select for diffs], Wed May 12 20:13:58 2004 UTC (9 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.142: +4 -4
lines
Diff to previous 1.142 (colored)
use callout_schedule() for schedcpu().
Revision 1.142 / (download) - annotate - [select for diffs], Sun Mar 14 01:08:47 2004 UTC (9 years, 3 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.141: +4 -5
lines
Diff to previous 1.141 (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.141 / (download) - annotate - [select for diffs], Fri Feb 13 11:36:23 2004 UTC (9 years, 4 months ago) by wiz
Branch: MAIN
Changes since 1.140: +5 -5
lines
Diff to previous 1.140 (colored)
Uppercase CPU, plural is CPUs.
Revision 1.140 / (download) - annotate - [select for diffs], Sun Jan 4 13:27:53 2004 UTC (9 years, 5 months ago) by kleink
Branch: MAIN
Changes since 1.139: +3 -3
lines
Diff to previous 1.139 (colored)
; may be a comment character in assembly, use \n as a separator instead.
Revision 1.139 / (download) - annotate - [select for diffs], Sun Nov 2 16:26:10 2003 UTC (9 years, 7 months ago) by cl
Branch: MAIN
Changes since 1.138: +21 -12
lines
Diff to previous 1.138 (colored)
Cleanup signal delivery for SA processes: General idea: only consider the LWP on the VP for signal delivery, all other LWPs are either asleep or running from waking up until repossessing the VP. - in kern_sig.c:kpsignal2: handle all states the LWP on the VP can be in - in kern_sig.c:proc_stop: only try to stop the LWP on the VP. All other LWPs will suspend in sa_vp_repossess() until the VP-LWP donates the VP. Restore original behaviour (before SA-specific hacks were added) for non-SA processes. - in kern_sig.c:proc_unstop: only return the LWP on the VP - handle sa_yield as case 0 in sa_switch instead of clearing L_SA, add an L_SA_YIELD flag - replace sa_idle by L_SA_IDLE flag since it was either NULL or == sa_vp Also don't output itimerfire overrun warning if the process is already exiting. Also g/c sa_woken because it's not used. Also g/c some #if 0 code.
Revision 1.138 / (download) - annotate - [select for diffs], Sun Oct 26 20:55:57 2003 UTC (9 years, 7 months ago) by fvdl
Branch: MAIN
Changes since 1.137: +3 -3
lines
Diff to previous 1.137 (colored)
Fix (bogus) unitialized variable warning.
Revision 1.137 / (download) - annotate - [select for diffs], Mon Sep 8 11:14:18 2003 UTC (9 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.136: +5 -4
lines
Diff to previous 1.136 (colored)
truncated output from pty problem. fix by enami http://mail-index.netbsd.org/tech-kern/2003/09/06/0002.html
Revision 1.136 / (download) - annotate - [select for diffs], Thu Aug 7 16:31:50 2003 UTC (9 years, 10 months ago) by agc
Branch: MAIN
Changes since 1.135: +3 -7
lines
Diff to previous 1.135 (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.135 / (download) - annotate - [select for diffs], Mon Jul 28 23:35:20 2003 UTC (9 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.134: +21 -11
lines
Diff to previous 1.134 (colored)
Improve _lwp_wakeup so when it wakes a thread, the target thread thinks ltsleep has been interrupted and thus the target will not think it was a spurious wakeup. (this makes syscalls cancellable for libpthread).
Revision 1.134 / (download) - annotate - [select for diffs], Fri Jul 18 01:02:31 2003 UTC (9 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.133: +19 -11
lines
Diff to previous 1.133 (colored)
Add support for storing the priority mask in sched_whichqs in MSB order (enabled by defining __HAVE_BIGENDIAN_BITOPS in <machine/types.h>). The default is still LSB ordering. This change will allow the powerpc MD implementations of setrunqueue/remrunqueue to be nuked.
Revision 1.133 / (download) - annotate - [select for diffs], Thu Jul 17 18:16:59 2003 UTC (9 years, 11 months ago) by fvdl
Branch: MAIN
Changes since 1.132: +6 -4
lines
Diff to previous 1.132 (colored)
Changes from Stephan Uphoff to patch problems with LWPs blocking when they shouldn't, and MP.
Revision 1.132 / (download) - annotate - [select for diffs], Sun Jun 29 22:31:23 2003 UTC (9 years, 11 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.131: +4 -4
lines
Diff to previous 1.131 (colored)
Back out the lwp/ktrace changes. They contained a lot of colateral damage, and need to be examined and discussed more.
Revision 1.131 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:55 2003 UTC (9 years, 11 months ago) by darrenr
Branch: MAIN
Changes since 1.130: +6 -6
lines
Diff to previous 1.130 (colored)
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can be inserted into ktrace records. The general change has been to replace "struct proc *" with "struct lwp *" in various function prototypes, pass the lwp through and use l_proc to get the process pointer when needed. Bump the kernel rev up to 1.6V
Revision 1.130 / (download) - annotate - [select for diffs], Thu Jun 26 02:09:27 2003 UTC (9 years, 11 months ago) by nathanw
Branch: MAIN
Changes since 1.129: +18 -18
lines
Diff to previous 1.129 (colored)
Whitespace police.
Revision 1.129 / (download) - annotate - [select for diffs], Thu Jun 26 02:08:19 2003 UTC (9 years, 11 months ago) by nathanw
Branch: MAIN
Changes since 1.128: +8 -2
lines
Diff to previous 1.128 (colored)
For now, disable voluntary mid-operation preempt() for SA processes; it doesn't interact well with SA's idea of what's running.
Revision 1.128 / (download) - annotate - [select for diffs], Tue May 20 13:48:08 2003 UTC (10 years, 1 month ago) by simonb
Branch: MAIN
Changes since 1.127: +5 -5
lines
Diff to previous 1.127 (colored)
Sprinkle a little white-space.
Revision 1.127 / (download) - annotate - [select for diffs], Thu May 8 02:04:11 2003 UTC (10 years, 1 month ago) by matt
Branch: MAIN
Changes since 1.126: +3 -3
lines
Diff to previous 1.126 (colored)
In setrunnable, give more infomrmation in the panic message so we can figure out WTF went wrong.
Revision 1.126 / (download) - annotate - [select for diffs], Tue Feb 4 20:15:59 2003 UTC (10 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.125: +10 -8
lines
Diff to previous 1.125 (colored)
ltsleep(): deal with PNOEXITERR after re-taking the interlock (if necessary).
Revision 1.125 / (download) - annotate - [select for diffs], Tue Feb 4 13:41:50 2003 UTC (10 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.124: +6 -6
lines
Diff to previous 1.124 (colored)
constify wait channels of ltsleep/wakeup. they are never dereferenced.
Revision 1.124 / (download) - annotate - [select for diffs], Wed Jan 22 12:52:15 2003 UTC (10 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.123: +3 -3
lines
Diff to previous 1.123 (colored)
make KSTACK_CHECK_* compile after sa merge.
Revision 1.123 / (download) - annotate - [select for diffs], Tue Jan 21 00:02:07 2003 UTC (10 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.122: +3 -3
lines
Diff to previous 1.122 (colored)
step 4: don't de-reference l, if you are going to test if it is NULL a couple of lines below.
Revision 1.122 / (download) - annotate - [select for diffs], Sat Jan 18 10:06:30 2003 UTC (10 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.121: +280 -204
lines
Diff to previous 1.121 (colored)
Merge the nathanw_sa branch.
Revision 1.121 / (download) - annotate - [select for diffs], Wed Jan 15 07:12:20 2003 UTC (10 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: nathanw_sa_before_merge,
nathanw_sa_base
Changes since 1.120: +6 -6
lines
Diff to previous 1.120 (colored)
Pass the process priority we want to compare to resched_proc(). Restores resetpriority() behavior. Thanks to Enami Tsugutomo for pointing out my mistake.
Revision 1.120 / (download) - annotate - [select for diffs], Sun Jan 12 01:48:56 2003 UTC (10 years, 5 months ago) by pk
Branch: MAIN
Changes since 1.119: +6 -6
lines
Diff to previous 1.119 (colored)
schedcpu(): after updating the process CPU tick counters, we no longer need to run at splstatclock(); continue at splsched().
Revision 1.119 / (download) - annotate - [select for diffs], Sun Dec 29 17:40:26 2002 UTC (10 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.118: +40 -22
lines
Diff to previous 1.118 (colored)
* Move the resched check from setrunnable() and resetpriority() to a new inline, resched_proc(). * When performing the resched check, check the priority against the current priority on the CPU the process last ran on, not always the current CPU.
Revision 1.118 / (download) - annotate - [select for diffs], Sun Dec 29 02:08:39 2002 UTC (10 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.117: +4 -2
lines
Diff to previous 1.117 (colored)
Add a comment about affinity to awaken().
Revision 1.117 / (download) - annotate - [select for diffs], Sat Dec 21 23:52:06 2002 UTC (10 years, 6 months ago) by gmcgarry
Branch: MAIN
Changes since 1.116: +23 -2
lines
Diff to previous 1.116 (colored)
Re-add yield(). Only used by compat code at the moment.
Revision 1.116 / (download) - annotate - [select for diffs], Fri Dec 20 05:43:09 2002 UTC (10 years, 6 months ago) by gmcgarry
Branch: MAIN
Changes since 1.115: +2 -22
lines
Diff to previous 1.115 (colored)
Remove yield() until the scheduler supports the sched_yield(2) system call.
Revision 1.115 / (download) - annotate - [select for diffs], Sun Nov 3 13:59:12 2002 UTC (10 years, 7 months ago) by nisimura
Branch: MAIN
CVS Tags: gmcgarry_ucred_base,
gmcgarry_ucred,
gmcgarry_ctxsw_base
Branch point for: gmcgarry_ctxsw
Changes since 1.114: +11 -2
lines
Diff to previous 1.114 (colored)
Add some informative comments about setrunqueue and remrunqueue.
Revision 1.114 / (download) - annotate - [select for diffs], Sun Sep 29 21:11:36 2002 UTC (10 years, 8 months ago) by gmcgarry
Branch: MAIN
CVS Tags: kqueue-beforemerge,
kqueue-base,
kqueue-aftermerge
Changes since 1.113: +20 -134
lines
Diff to previous 1.113 (colored)
Back out __HAVE_CHOOSEPROC stuff.
Revision 1.113 / (download) - annotate - [select for diffs], Sun Sep 22 05:36:48 2002 UTC (10 years, 9 months ago) by gmcgarry
Branch: MAIN
Changes since 1.112: +189 -30
lines
Diff to previous 1.112 (colored)
Separate the scheduler from the context switching code. This is done by adding an extra argument to mi_switch() and cpu_switch() which specifies the new process. If NULL is passed, then the new function chooseproc() is invoked to wait for a new process to appear on the run queue. Also provides an opportunity for optimisations if "switching to self". Also added are C versions of the setrunqueue() and remrunqueue() low-level primitives if __HAVE_MD_RUNQUEUE is not defined by MD code. All these changes are contingent upon the __HAVE_CHOOSEPROC flag being defined by MD code to indicate that cpu_switch() supports the changes.
Revision 1.112 / (download) - annotate - [select for diffs], Wed Sep 4 01:32:39 2002 UTC (10 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.111: +3 -3
lines
Diff to previous 1.111 (colored)
Use the queue macros from <sys/queue.h> instead of referring to the queue members directly. Use *_FOREACH whenever possible.
Revision 1.111 / (download) - annotate - [select for diffs], Wed Aug 7 11:13:40 2002 UTC (10 years, 10 months ago) by briggs
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.110: +4 -2
lines
Diff to previous 1.110 (colored)
Only include sys/pmc.h if PERFCTRS is defined.
Revision 1.110 / (download) - annotate - [select for diffs], Wed Aug 7 05:16:25 2002 UTC (10 years, 10 months ago) by briggs
Branch: MAIN
Changes since 1.109: +20 -2
lines
Diff to previous 1.109 (colored)
Implement pmc(9) -- An interface to hardware performance monitoring counters. These counters do not exist on all CPUs, but where they do exist, can be used for counting events such as dcache misses that would otherwise be difficult or impossible to instrument by code inspection or hardware simulation. pmc(9) is meant to be a general interface. Initially, the Intel XScale counters are the only ones supported.
Revision 1.109 / (download) - annotate - [select for diffs], Tue Jul 2 20:27:46 2002 UTC (10 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.108: +7 -2
lines
Diff to previous 1.108 (colored)
add KSTACK_CHECK_MAGIC. discussed on tech-kern.
Revision 1.108 / (download) - annotate - [select for diffs], Tue May 21 01:38:27 2002 UTC (11 years, 1 month ago) by thorpej
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
Changes since 1.107: +2 -5
lines
Diff to previous 1.107 (colored)
Move kernel_lock manipulation info functions so that they will show up in a profile.
Revision 1.107 / (download) - annotate - [select for diffs], Fri Nov 30 16:21:16 2001 UTC (11 years, 6 months ago) by kleink
Branch: MAIN
CVS Tags: newlock-base,
ifpoll-base,
ifpoll,
eeh-devprop-base,
eeh-devprop
Branch point for: newlock,
gehenna-devsw
Changes since 1.106: +3 -3
lines
Diff to previous 1.106 (colored)
asm -> __asm.
Revision 1.106 / (download) - annotate - [select for diffs], Mon Nov 12 15:25:16 2001 UTC (11 years, 7 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.105: +4 -1
lines
Diff to previous 1.105 (colored)
add RCSIDs
Revision 1.105 / (download) - annotate - [select for diffs], Tue Sep 25 01:38:38 2001 UTC (11 years, 8 months ago) by chs
Branch: MAIN
CVS Tags: thorpej-devvp-base3,
thorpej-devvp-base2
Branch point for: thorpej-mips-cache
Changes since 1.104: +2 -1
lines
Diff to previous 1.104 (colored)
in ltsleep(), assert that the interlock is held (if one is given).
Revision 1.104 / (download) - annotate - [select for diffs], Mon May 28 22:20:03 2001 UTC (12 years ago) by chs
Branch: MAIN
CVS Tags: thorpej-devvp-base,
pre-chs-ubcperf,
post-chs-ubcperf
Branch point for: thorpej-devvp,
kqueue
Changes since 1.103: +2 -2
lines
Diff to previous 1.103 (colored)
don't define bpendtsleep in profiling kernels since it confuses gprof.
Revision 1.103 / (download) - annotate - [select for diffs], Fri Apr 27 08:00:03 2001 UTC (12 years, 1 month ago) by jdolecek
Branch: MAIN
Changes since 1.102: +2 -2
lines
Diff to previous 1.102 (colored)
Slighly improve comment for ltsleep(), the previous formulation might be understood incorrectly (at least, it confused me at first, before I looked at the actual code).
Revision 1.102 / (download) - annotate - [select for diffs], Fri Apr 20 17:58:49 2001 UTC (12 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase,
thorpej_scsipi_beforemerge,
thorpej_scsipi_base
Changes since 1.101: +2 -1
lines
Diff to previous 1.101 (colored)
Make sure there is there is a curproc in ltsleep().
Revision 1.101 / (download) - annotate - [select for diffs], Sun Jan 14 22:31:59 2001 UTC (12 years, 5 months ago) by thorpej
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.100: +2 -2
lines
Diff to previous 1.100 (colored)
Whenever ps_sigcheck is set to true, signotify() the process, and wrap this all up in a CHECKSIGS() macro. Also, in psignal1(), signotify() SRUN and SIDL processes if __HAVE_AST_PERPROC is defined. Per discussion w/ mycroft.
Revision 1.100 / (download) - annotate - [select for diffs], Mon Jan 1 16:02:51 2001 UTC (12 years, 5 months ago) by sommerfeld
Branch: MAIN
Changes since 1.99: +7 -3
lines
Diff to previous 1.99 (colored)
MULTIPROCESSOR: The two calls to psignal() inside mi_switch() are inside the scheduler lock perimeter and should be sched_psignal() instead.
Revision 1.99 / (download) - annotate - [select for diffs], Fri Dec 22 22:59:00 2000 UTC (12 years, 5 months ago) by jdolecek
Branch: MAIN
Changes since 1.98: +3 -3
lines
Diff to previous 1.98 (colored)
split off thread specific stuff from struct sigacts to struct sigctx, leaving
only signal handler array sharable between threads
move other random signal stuff from struct proc to struct sigctx
This addresses kern/10981 by Matthew Orgass.
Revision 1.98 / (download) - annotate - [select for diffs], Sun Nov 12 18:17:56 2000 UTC (12 years, 7 months ago) by jdolecek
Branch: MAIN
Changes since 1.97: +2 -2
lines
Diff to previous 1.97 (colored)
use SIGACTION() macro to get on appropriate sigaction structure
Revision 1.97 / (download) - annotate - [select for diffs], Sat Sep 23 01:00:35 2000 UTC (12 years, 8 months ago) by enami
Branch: MAIN
Changes since 1.96: +22 -23
lines
Diff to previous 1.96 (colored)
Stop runnable but swapped out user processes also in suspendsched().
Revision 1.96 / (download) - annotate - [select for diffs], Fri Sep 15 06:36:25 2000 UTC (12 years, 9 months ago) by enami
Branch: MAIN
Changes since 1.95: +4 -4
lines
Diff to previous 1.95 (colored)
The struct prochd isn't a proc. Start scaning from prochd.ph_link instead of &prochd.
Revision 1.95 / (download) - annotate - [select for diffs], Thu Sep 14 19:13:29 2000 UTC (12 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.94: +7 -5
lines
Diff to previous 1.94 (colored)
Make sure to lock the proclist when we're traversing allproc.
Revision 1.94 / (download) - annotate - [select for diffs], Tue Sep 5 16:27:52 2000 UTC (12 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.93: +35 -0
lines
Diff to previous 1.93 (colored)
Implement suspendsched() by putting all sleeping and runnable processes in SSTOP state, execpt P_SYSTEM and curproc processes. We have to way to find the original state of the process so we can't restart scheduling, so this can only be used at shutdown time. XXX suspendsched() should also deal with processes running on other CPUs. I don't know how to do that, and as long as we have a kernel big lock, this shouldn't be a problem.
Revision 1.93 / (download) - annotate - [select for diffs], Tue Sep 5 16:20:28 2000 UTC (12 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.92: +21 -100
lines
Diff to previous 1.92 (colored)
Back out the suspendsched()/resumesched() thing, per request of Jason Thorpe & Bill Sommerfeld. suspendsched() will be implemented in a different way.
Revision 1.92 / (download) - annotate - [select for diffs], Fri Sep 1 17:14:04 2000 UTC (12 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.91: +2 -2
lines
Diff to previous 1.91 (colored)
wakeup()->sched_wakeup()
Revision 1.91 / (download) - annotate - [select for diffs], Thu Aug 31 14:36:21 2000 UTC (12 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.90: +100 -21
lines
Diff to previous 1.90 (colored)
Add the sched_suspend/sched_resume functions, as discussed on tech-kern, with the following modifications to the initial patch: - rename SHOLD and P_HOST to SSUSPEND and P_SUSPEND to avoid confusion with PHOLD() - don't deal with SSUSPEND/P_SUSPEND in fork1(), if we come here while scheduler is suspended we're forking proc0, which can't have P_SUSPEND set. sched_suspend() suspends the scheduling of users process, by removing all processes from the run queues and changing their state from SRUN to SSUSPEND. Also mark all user process but curproc P_SUSPEND. When a process has to be put in SRUN and is marked P_SUSPEND, it's placed in the SSUSPEND state instead. sched_resume() places all SSUSPEND processes back in SRUN, clear the P_SUSPEND flag.
Revision 1.90 / (download) - annotate - [select for diffs], Sat Aug 26 19:26:43 2000 UTC (12 years, 9 months ago) by sommerfeld
Branch: MAIN
Changes since 1.89: +15 -53
lines
Diff to previous 1.89 (colored)
Since the spinlock count is per-cpu, we don't need atomic operations to update it, so don't bother with <machine/atomic.h> Flush kernel_lock_release_all() and kernel_lock_acquire_count() (which didn't do spinlock accounting correctly), and replace them with spinlock_release_all() and spinlock_acquire_count().
Revision 1.89 / (download) - annotate - [select for diffs], Sat Aug 26 04:01:17 2000 UTC (12 years, 9 months ago) by sommerfeld
Branch: MAIN
Changes since 1.88: +3 -3
lines
Diff to previous 1.88 (colored)
On second thought.. pass cpu_info * to roundrobin() explicitly.
Revision 1.88 / (download) - annotate - [select for diffs], Sat Aug 26 03:34:37 2000 UTC (12 years, 9 months ago) by sommerfeld
Branch: MAIN
Changes since 1.87: +6 -9
lines
Diff to previous 1.87 (colored)
More MP clock/scheduler changes: - Periodically invoke roundrobin() from hardclock() on all cpu's rather than from a timer callout; this allows time-slicing on non-primary cpu's. - Make pscnt per-cpu. - Notice psdiv changes on each cpu, and adjust pscnt at that point. Also, invoke setstatclockrate() from the clock interrupt when each cpu notices the divisor change, rather than when starting/stopping the profiling clock.
Revision 1.87 / (download) - annotate - [select for diffs], Fri Aug 25 01:04:12 2000 UTC (12 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.86: +11 -19
lines
Diff to previous 1.86 (colored)
Make need_resched() take a "struct cpu_info *" argument. This causes gives a primitive form of processor affinity. Its use in roundrobin() still needs some work.
Revision 1.86 / (download) - annotate - [select for diffs], Thu Aug 24 06:14:34 2000 UTC (12 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.85: +3 -2
lines
Diff to previous 1.85 (colored)
Correct a comment.
Revision 1.85 / (download) - annotate - [select for diffs], Thu Aug 24 02:37:27 2000 UTC (12 years, 9 months ago) by sommerfeld
Branch: MAIN
Changes since 1.84: +28 -41
lines
Diff to previous 1.84 (colored)
Move kernel_lock release/switch/reacquire from ltsleep() to mi_switch(), so we don't botch the locking around preempt() or yield().
Revision 1.84 / (download) - annotate - [select for diffs], Tue Aug 22 17:28:29 2000 UTC (12 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.83: +51 -12
lines
Diff to previous 1.83 (colored)
Define the MI parts of the "big kernel lock" perimeter. From Bill Sommerfeld.
Revision 1.83 / (download) - annotate - [select for diffs], Sun Aug 20 21:50:11 2000 UTC (12 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.82: +87 -25
lines
Diff to previous 1.82 (colored)
Add a lock around the scheduler, and use it as necessary, including in the non-MULTIPROCESSOR case (LOCKDEBUG requires it). Scheduler lock is held upon entry to mi_switch() and cpu_switch(), and cpu_switch() releases the lock before returning. Largely from Bill Sommerfeld, with some minor bug fixes and machine-dependent code hacking from me.
Revision 1.82 / (download) - annotate - [select for diffs], Mon Aug 7 22:10:53 2000 UTC (12 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.81: +5 -1
lines
Diff to previous 1.81 (colored)
Add a DIAGNOSTIC or LOCKDEBUG check for held spin locks.
Revision 1.81 / (download) - annotate - [select for diffs], Mon Aug 7 21:55:23 2000 UTC (12 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.80: +3 -8
lines
Diff to previous 1.80 (colored)
It doesn't make sense to charge simple locks to proc's, because simple locks are held by CPUs. Remove p_simple_locks (which was unused anyway, really), and add a LOCKDEBUG check for held simple locks in mi_switch(). Grow p_locks to an int to take up the space previously used by p_simple_locks so that the proc structure doens't change size.
Revision 1.80 / (download) - annotate - [select for diffs], Wed Aug 2 20:21:36 2000 UTC (12 years, 10 months ago) by nathanw
Branch: MAIN
Changes since 1.79: +2 -2
lines
Diff to previous 1.79 (colored)
principal -> principle (in a comment)
Revision 1.79 / (download) - annotate - [select for diffs], Tue Jun 27 17:41:27 2000 UTC (12 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.78: +1 -2
lines
Diff to previous 1.78 (colored)
remove include of <vm/vm.h>
Revision 1.78 / (download) - annotate - [select for diffs], Sat Jun 10 18:44:44 2000 UTC (13 years ago) by sommerfeld
Branch: MAIN
CVS Tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Changes since 1.77: +10 -3
lines
Diff to previous 1.77 (colored)
Fix assorted bugs around shutdown/reboot/panic time. - add a new global variable, doing_shutdown, which is nonzero if vfs_shutdown() or panic() have been called. - in panic, set RB_NOSYNC if doing_shutdown is already set on entry so we don't reenter vfs_shutdown if we panic'ed there. - in vfs_shutdown, don't use proc0's process for sys_sync unless curproc is NULL. - in lockmgr, attribute successful locks to proc0 if doing_shutdown && curproc==NULL, and panic if we can't get the lock right away; avoids the spurious lockmgr DIAGNOSTIC panic from the ddb reboot command. - in subr_pool, deal with curproc==NULL in the doing_shutdown case. - in mfs_strategy, bitbucket writes if doing_shutdown, so we don't wedge waiting for the mfs process. - in ltsleep, treat ((curproc == NULL) && doing_shutdown) like the panicstr case. Appears to fix: kern/9239, kern/10187, kern/9367. May also fix kern/10122.
Revision 1.77 / (download) - annotate - [select for diffs], Thu Jun 8 05:50:37 2000 UTC (13 years ago) by thorpej
Branch: MAIN
Changes since 1.76: +121 -55
lines
Diff to previous 1.76 (colored)
Change tsleep() to ltsleep(), which takes an interlock argument. The interlock is released once the scheduler is locked, so that a race between a sleeper and an awakener is prevented in a multiprocessor environment. Provide a tsleep() macro that provides the old API.
Revision 1.76 / (download) - annotate - [select for diffs], Wed May 31 05:02:33 2000 UTC (13 years ago) by thorpej
Branch: MAIN
Changes since 1.75: +46 -7
lines
Diff to previous 1.75 (colored)
Track which process a CPU is running/has last run on by adding a p_cpu member to struct proc. Use this in certain places when accessing scheduler state, etc. For the single-processor case, just initialize p_cpu in fork1() to avoid having to set it in the low-level context switch code on platforms which will never have multiprocessing. While I'm here, comment a few places where there are known issues for the SMP implementation.
Revision 1.75 / (download) - annotate - [select for diffs], Sat May 27 05:00:48 2000 UTC (13 years ago) by thorpej
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.74: +1 -65
lines
Diff to previous 1.74 (colored)
All users of the old sleep() are now gone; nuke it.
Revision 1.74 / (download) - annotate - [select for diffs], Sat May 27 00:40:46 2000 UTC (13 years ago) by sommerfeld
Branch: MAIN
Changes since 1.73: +13 -13
lines
Diff to previous 1.73 (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.73 / (download) - annotate - [select for diffs], Fri May 26 21:20:31 2000 UTC (13 years ago) by thorpej
Branch: MAIN
Changes since 1.72: +29 -37
lines
Diff to previous 1.72 (colored)
First sweep at scheduler state cleanup. Collect MI scheduler state into global and per-CPU scheduler state: - Global state: sched_qs (run queues), sched_whichqs (bitmap of non-empty run queues), sched_slpque (sleep queues). NOTE: These may collectively move into a struct schedstate at some point in the future. - Per-CPU state, struct schedstate_percpu: spc_runtime (time process on this CPU started running), spc_flags (replaces struct proc's p_schedflags), and spc_curpriority (usrpri of processes on this CPU). - Every platform must now supply a struct cpu_info and a curcpu() macro. Simplify existing cpu_info declarations where appropriate. - All references to per-CPU scheduler state now made through curcpu(). NOTE: this will likely be adjusted in the future after further changes to struct proc are made. Tested on i386 and Alpha. Changes are mostly mechanical, but apologies in advance if it doesn't compile on a particular platform.
Revision 1.72 / (download) - annotate - [select for diffs], Fri May 26 00:36:52 2000 UTC (13 years ago) by thorpej
Branch: MAIN
Changes since 1.71: +12 -10
lines
Diff to previous 1.71 (colored)
Introduce a new process state distinct from SRUN called SONPROC which indicates that the process is actually running on a processor. Test against SONPROC as appropriate rather than combinations of SRUN and curproc. Update all context switch code to properly set SONPROC when the process becomes the current process on the CPU.
Revision 1.71 / (download) - annotate - [select for diffs], Thu Mar 30 09:27:12 2000 UTC (13 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.70: +29 -29
lines
Diff to previous 1.70 (colored)
Get rid of register declarations.
Revision 1.70 / (download) - annotate - [select for diffs], Tue Mar 28 22:04:46 2000 UTC (13 years, 2 months ago) by simonb
Branch: MAIN
Changes since 1.69: +1 -2
lines
Diff to previous 1.69 (colored)
endtsleep() is prototyped at the top of the file, delete duplicate declaration inside tsleep().
Revision 1.69 / (download) - annotate - [select for diffs], Thu Mar 23 20:37:59 2000 UTC (13 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.68: +67 -2
lines
Diff to previous 1.68 (colored)
Track if a process has been through a round-robin cycle without yielding the CPU, and mark that it should yield if that happens. Based on a discussion with Artur Grabowski.
Revision 1.68 / (download) - annotate - [select for diffs], Thu Mar 23 06:30:12 2000 UTC (13 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.67: +9 -5
lines
Diff to previous 1.67 (colored)
New callout mechanism with two major improvements over the old timeout()/untimeout() API: - Clients supply callout handle storage, thus eliminating problems of resource allocation. - Insertion and removal of callouts is constant time, important as this facility is used quite a lot in the kernel. The old timeout()/untimeout() API has been removed from the kernel.
Revision 1.67 / (download) - annotate - [select for diffs], Mon Nov 15 18:49:09 1999 UTC (13 years, 7 months ago) by fvdl
Branch: MAIN
CVS Tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
chs-ubc2-newbase
Changes since 1.66: +2 -2
lines
Diff to previous 1.66 (colored)
Add Kirk McKusick's soft updates code to the trunk. Not enabled by default, as the copyright on the main file (ffs_softdep.c) is such that is has been put into gnusrc. options SOFTDEP will pull this in. This code also contains the trickle syncer. Bump version number to 1.4O
Revision 1.66 / (download) - annotate - [select for diffs], Thu Oct 14 05:59:57 1999 UTC (13 years, 8 months ago) by ross
Branch: MAIN
CVS Tags: fvdl-softdep-base,
comdex-fall-1999-base,
comdex-fall-1999
Branch point for: thorpej_scsipi,
fvdl-softdep
Changes since 1.65: +6 -5
lines
Diff to previous 1.65 (colored)
Back out a small and unfinished piece of the old scheduler rototill.
Revision 1.65 / (download) - annotate - [select for diffs], Fri Sep 17 20:09:05 1999 UTC (13 years, 9 months ago) by thorpej
Branch: MAIN
Branch point for: wrstuden-devbsize
Changes since 1.64: +1 -3
lines
Diff to previous 1.64 (colored)
Centralize the declaration and clearing of `cold'.
Revision 1.64 / (download) - annotate - [select for diffs], Wed Sep 15 21:54:57 1999 UTC (13 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.63: +7 -3
lines
Diff to previous 1.63 (colored)
Be slightly more informative in the tsleep() diagnostics.
Revision 1.63 / (download) - annotate - [select for diffs], Mon Jul 26 23:00:59 1999 UTC (13 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.62: +128 -18
lines
Diff to previous 1.62 (colored)
Implement wakeup_one(), which wakes up the highest priority process first in line for the specified identifier. For use in places where you don't want a Thundering Herd. While here, add an optimization to wakeup() suggested by Ross Harvey.
Revision 1.62 / (download) - annotate - [select for diffs], Sun Jul 25 06:30:35 1999 UTC (13 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.61: +2 -2
lines
Diff to previous 1.61 (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.61 / (download) - annotate - [select for diffs], Thu Jul 22 21:08:32 1999 UTC (13 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.60: +3 -1
lines
Diff to previous 1.60 (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.60 / (download) - annotate - [select for diffs], Thu Jul 22 18:13:37 1999 UTC (13 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.59: +2 -1
lines
Diff to previous 1.59 (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.59 / (download) - annotate - [select for diffs], Wed Apr 21 02:37:07 1999 UTC (14 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.58: +0 -2
lines
Diff to previous 1.58 (colored)
revert previous. oops.
Revision 1.58 / (download) - annotate - [select for diffs], Wed Apr 21 02:31:50 1999 UTC (14 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.57: +3 -1
lines
Diff to previous 1.57 (colored)
properly test the msgsz as "msgsz - len". from PR#7386
Revision 1.57 / (download) - annotate - [select for diffs], Wed Mar 24 05:51:25 1999 UTC (14 years, 3 months ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-4-base,
netbsd-1-4-RELEASE,
netbsd-1-4-PATCH001,
kame_14_19990705,
kame_14_19990628,
kame_141_19991130,
kame
Branch point for: netbsd-1-4,
chs-ubc2
Changes since 1.56: +1 -12
lines
Diff to previous 1.56 (colored)
completely remove Mach VM support. all that is left is the all the header files as UVM still uses (most of) these.
Revision 1.56 / (download) - annotate - [select for diffs], Sun Feb 28 18:14:57 1999 UTC (14 years, 3 months ago) by ross
Branch: MAIN
Changes since 1.55: +14 -13
lines
Diff to previous 1.55 (colored)
schedclk() -> schedclock(), for consistency with hardclock(), statclock(), ... update comments for recent scheduler mods
Revision 1.55 / (download) - annotate - [select for diffs], Tue Feb 23 02:56:03 1999 UTC (14 years, 3 months ago) by ross
Branch: MAIN
Changes since 1.54: +39 -10
lines
Diff to previous 1.54 (colored)
Scheduler bug fixes and reorganization * fix the ancient nice(1) bug, where nice +20 processes incorrectly steal 10 - 20% of the CPU, (or even more depending on load average) * provide a new schedclk() mechanism at a new clock at schedhz, so high platform hz values don't cause nice +0 processes to look like they are niced * change the algorithm slightly, and reorganize the code a lot * fix percent-CPU calculation bugs, and eliminate some no-op code === nice bug === Correctly divide the scheduler queues between niced and compute-bound processes. The current nice weight of two (sort of, see `algorithm change' below) neatly divides the USRPRI queues in half; this should have been used to clip p_estcpu, instead of UCHAR_MAX. Besides being the wrong amount, clipping an unsigned char to UCHAR_MAX is a no-op, and it was done after decay_cpu() which can only _reduce_ the value. It has to be kept <= NICE_WEIGHT * PRIO_MAX - PPQ or processes can scheduler-penalize themselves onto the same queue as nice +20 processes. (Or even a higher one.) === New schedclk() mechansism === Some platforms should be cutting down stathz before hitting the scheduler, since the scheduler algorithm only works right in the vicinity of 64 Hz. Rather than prescale hz, then scale back and forth by 4 every time p_estcpu is touched (each occurance an abstraction violation), use p_estcpu without scaling and require schedhz to be generated directly at the right frequency. Use a default stathz (well, actually, profhz) / 4, so nothing changes unless a platform defines schedhz and a new clock. Define these for alpha, where hz==1024, and nice was totally broke. === Algorithm change === The nice value used to be added to the exponentially-decayed scheduler history value p_estcpu, in _addition_ to be incorporated directly (with greater wieght) into the priority calculation. At first glance, it appears to be a pointless increase of 1/8 the nice effect (pri = p_estcpu/4 + nice*2), but it's actually at least 3x that because it will ramp up linearly but be decayed only exponentially, thus converging to an additional .75 nice for a loadaverage of one. I killed this, it makes the behavior hard to control, almost impossible to analyze, and the effect (~~nothing at for the first second, then somewhat increased niceness after three seconds or more, depending on load average) pointless. === Other bugs === hz -> profhz in the p_pctcpu = f(p_cpticks) calcuation. Collect scheduler functionality. Try to put each abstraction in just one place.
Revision 1.54 / (download) - annotate - [select for diffs], Wed Nov 4 06:19:56 1998 UTC (14 years, 7 months ago) by chs
Branch: MAIN
CVS Tags: kenh-if-detach-base,
kenh-if-detach,
chs-ubc-base,
chs-ubc
Changes since 1.53: +7 -2
lines
Diff to previous 1.53 (colored)
LOCKDEBUG enhancements for non-MP: keep a list of locked locks. use this to print where the lock was locked when we either go to sleep with a lock held or try to free a locked lock.
Revision 1.53 / (download) - annotate - [select for diffs], Fri Sep 11 12:50:11 1998 UTC (14 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.52: +6 -4
lines
Diff to previous 1.52 (colored)
Substantial signal handling changes: * Increase the size of sigset_t to accomodate 128 signals -- adding new versions of sys_setprocmask(), sys_sigaction(), sys_sigpending() and sys_sigsuspend() to handle the changed arguments. * Abstract the guts of sys_sigaltstack(), sys_setprocmask(), sys_sigaction(), sys_sigpending() and sys_sigsuspend() into separate functions, and call them from all the emulations rather than hard-coding everything. (Avoids uses the stackgap crap for these system calls.) * Add a new flag (p_checksig) to indicate that a process may have signals pending and userret() needs to do the full (slow) check. * Eliminate SAS_ALTSTACK; it's exactly the inverse of SS_DISABLE. * Correct emulation bugs with restoring SS_ONSTACK. * Make the signal mask in the sigcontext always use the emulated mask format. * Store signals internally in sigaction structures, rather than maintaining a bunch of little sigsets for each SA_* bit. * Keep track of where we put the signal trampoline, rather than figuring it out in *_sendsig(). * Issue a warning when a non-emulated sigaction bit is observed. * Add missing emulated signals, and a native SIGPWR (currently not used). * Implement the `not reset when caught' semantics for relevant signals. Note: Only code touched by the i386 port has been modified. Other ports and emulations need to be updated.
Revision 1.52 / (download) - annotate - [select for diffs], Sat Jul 4 22:18:51 1998 UTC (14 years, 11 months ago) by jonathan
Branch: MAIN
CVS Tags: eeh-paddr_t-base,
eeh-paddr_t
Changes since 1.51: +2 -1
lines
Diff to previous 1.51 (colored)
defopt DDB.
Revision 1.51 / (download) - annotate - [select for diffs], Thu Jun 25 21:17:17 1998 UTC (14 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.50: +2 -1
lines
Diff to previous 1.50 (colored)
defopt KTRACE
Revision 1.50 / (download) - annotate - [select for diffs], Sun Mar 1 02:22:30 1998 UTC (15 years, 3 months ago) by fvdl
Branch: MAIN
Changes since 1.49: +6 -2
lines
Diff to previous 1.49 (colored)
Merge with Lite2 + local changes
Revision 1.49 / (download) - annotate - [select for diffs], Thu Feb 12 20:39:41 1998 UTC (15 years, 4 months ago) by kleink
Branch: MAIN
Changes since 1.48: +3 -3
lines
Diff to previous 1.48 (colored)
Fix variable declarations: register -> register int.
Revision 1.48 / (download) - annotate - [select for diffs], Tue Feb 10 14:09:45 1998 UTC (15 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.47: +3 -1
lines
Diff to previous 1.47 (colored)
- add defopt's for UVM, UVMHIST and PMAP_NEW. - remove unnecessary UVMHIST_DECL's.
Revision 1.47 / (download) - annotate - [select for diffs], Thu Feb 5 07:59:55 1998 UTC (15 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.46: +14 -1
lines
Diff to previous 1.46 (colored)
initial import of the new virtual memory system, UVM, into -current. UVM was written by chuck cranor <chuck@maria.wustl.edu>, with some minor portions derived from the old Mach code. i provided some help getting swap and paging working, and other bug fixes/ideas. chuck silvers <chuq@chuq.com> also provided some other fixes. this is the rest of the MI portion changes. this will be KNF'd shortly. :-)
Revision 1.46 / (download) - annotate - [select for diffs], Fri Oct 10 08:19:44 1997 UTC (15 years, 8 months ago) by mycroft
Branch: MAIN
CVS Tags: 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-base
Changes since 1.45: +1 -3
lines
Diff to previous 1.45 (colored)
GC pageproc and bclnlist.
Revision 1.45 / (download) - annotate - [select for diffs], Thu Oct 9 12:49:48 1997 UTC (15 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.44: +2 -2
lines
Diff to previous 1.44 (colored)
Make wmesg arguments to various functions const.
Revision 1.44 / (download) - annotate - [select for diffs], Wed May 7 18:49:10 1997 UTC (16 years, 1 month ago) by gwr
Branch: MAIN
CVS Tags: thorpej-signal-base,
marc-pcmcia-bp,
bouyer-scsipi
Branch point for: thorpej-signal,
marc-pcmcia
Changes since 1.43: +1 -50
lines
Diff to previous 1.43 (colored)
Moved db_show_all_procs() to kern_proc.c
Revision 1.43 / (download) - annotate - [select for diffs], Wed Nov 6 20:20:00 1996 UTC (16 years, 7 months ago) by cgd
Branch: MAIN
CVS Tags: thorpej-setroot,
mrg-vm-swap,
is-newarp-before-merge,
is-newarp-base,
is-newarp
Changes since 1.42: +2 -2
lines
Diff to previous 1.42 (colored)
Fix an inconsistency that came in with Lite: setrq() was renamed to setrunqueue(), but remrq() was never renamed. Rename remrq() to remrunqueue().
Revision 1.42 / (download) - annotate - [select for diffs], Tue Oct 15 23:00:10 1996 UTC (16 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.41: +9 -6
lines
Diff to previous 1.41 (colored)
reorganize tsleep() so the (cold || panicstr) test is done before the ktrace context switch checking. If syncing disks while handling a panic that occurred while 'curproc' was NULL, the old code would dereference NULL and die. The (slight) reorganization was done so that space (one extra splhigh()), rather than time (one extra comparison), would be wasted.
Revision 1.41 / (download) - annotate - [select for diffs], Sun Oct 13 02:32:35 1996 UTC (16 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.40: +2 -2
lines
Diff to previous 1.40 (colored)
backout previous kprintf change
Revision 1.40 / (download) - annotate - [select for diffs], Thu Oct 10 22:46:20 1996 UTC (16 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.39: +2 -2
lines
Diff to previous 1.39 (colored)
printf -> kprintf, sprintf -> ksprintf
Revision 1.39 / (download) - annotate - [select for diffs], Wed Oct 2 18:05:05 1996 UTC (16 years, 8 months ago) by ws
Branch: MAIN
Changes since 1.38: +5 -4
lines
Diff to previous 1.38 (colored)
Fix p_nice vs. NZERO code. Change NZERO to 20 to always make p_nice positive. On Christos' suggestion make p_nice explicitly u_char.
Revision 1.38 / (download) - annotate - [select for diffs], Wed Jul 17 21:54:06 1996 UTC (16 years, 11 months ago) by explorer
Branch: MAIN
Changes since 1.37: +3 -3
lines
Diff to previous 1.37 (colored)
Add compile-time and run-time control over automatic niceing
Revision 1.37 / (download) - annotate - [select for diffs], Mon Apr 22 01:38:37 1996 UTC (17 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base,
netbsd-1-2-RELEASE,
netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.36: +1 -2
lines
Diff to previous 1.36 (colored)
remove include of <sys/cpu.h>
Revision 1.36 / (download) - annotate - [select for diffs], Sat Mar 30 22:23:25 1996 UTC (17 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.35: +4 -4
lines
Diff to previous 1.35 (colored)
Fix db_printf formats.
Revision 1.35 / (download) - annotate - [select for diffs], Fri Feb 9 18:59:50 1996 UTC (17 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.34: +2 -3
lines
Diff to previous 1.34 (colored)
More proto fixes
Revision 1.34 / (download) - annotate - [select for diffs], Sun Feb 4 02:16:17 1996 UTC (17 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.33: +20 -8
lines
Diff to previous 1.33 (colored)
First pass at prototyping
Revision 1.33 / (download) - annotate - [select for diffs], Thu Jun 8 23:51:03 1995 UTC (18 years 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.32: +7 -1
lines
Diff to previous 1.32 (colored)
Fix various signal handling bugs: * If we got a stopping signal while already stopped with the same signal, the second signal would sometimes (but not always) be ignored. * Signals delivered by the debugger always pretended to be stopping signals. * PT_ATTACH still didn't quite work right.
Revision 1.32 / (download) - annotate - [select for diffs], Sat Apr 22 19:42:58 1995 UTC (18 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.31: +3 -3
lines
Diff to previous 1.31 (colored)
- new copyargs routine. - use emul_xxx - deprecate nsysent; use constant SYS_MAXSYSCALL instead. - deprecate ep_setup - call sendsig and setregs indirectly.
Revision 1.31 / (download) - annotate - [select for diffs], Sun Mar 19 23:44:51 1995 UTC (18 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.30: +2 -2
lines
Diff to previous 1.30 (colored)
Use %p.
Revision 1.30 / (download) - annotate - [select for diffs], Sun Oct 30 21:47:43 1994 UTC (18 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.29: +2 -2
lines
Diff to previous 1.29 (colored)
be more careful with types, also pull in headers where necessary.
Revision 1.29 / (download) - annotate - [select for diffs], Tue Aug 30 06:22:10 1994 UTC (18 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.28: +4 -4
lines
Diff to previous 1.28 (colored)
Display emulation type.
Revision 1.28 / (download) - annotate - [select for diffs], Tue Aug 30 05:37:14 1994 UTC (18 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.27: +40 -38
lines
Diff to previous 1.27 (colored)
Clean up some debugging code.
Revision 1.27 / (download) - annotate - [select for diffs], Tue Aug 30 03:05:44 1994 UTC (18 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.26: +5 -5
lines
Diff to previous 1.26 (colored)
Convert process, file, and namei lists and hash tables to use queue.h.
Revision 1.26 / (download) - annotate - [select for diffs], Wed Jun 29 06:32:45 1994 UTC (18 years, 11 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.25: +719 -1
lines
Diff to previous 1.25 (colored)
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
Revision 1.25 / (download) - annotate - [select for diffs], Wed May 18 05:12:42 1994 UTC (19 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.24: +1 -1
lines
Diff to previous 1.24 (colored)
mostly-machine-indepedent switch, and changes to match. also, hack init_main
Revision 1.24 / (download) - annotate - [select for diffs], Sat May 14 19:43:02 1994 UTC (19 years, 1 month ago) by glass
Branch: MAIN
Changes since 1.23: +1 -1
lines
Diff to previous 1.23 (colored)
missing rcsid
Revision 1.23 / (download) - annotate - [select for diffs], Fri May 13 00:51:09 1994 UTC (19 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.22: +1 -1
lines
Diff to previous 1.22 (colored)
setrq -> setrunqueue, sched -> scheduler
Revision 1.22 / (download) - annotate - [select for diffs], Sat May 7 00:57:23 1994 UTC (19 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.21: +1 -1
lines
Diff to previous 1.21 (colored)
function name changes
Revision 1.21 / (download) - annotate - [select for diffs], Fri May 6 22:02:25 1994 UTC (19 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.20: +1 -1
lines
Diff to previous 1.20 (colored)
Put some more code in splstatclock(), just to be safe.
Revision 1.20 / (download) - annotate - [select for diffs], Thu May 5 09:06:10 1994 UTC (19 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.19: +1 -1
lines
Diff to previous 1.19 (colored)
Now setpri() is really toast.
Revision 1.19 / (download) - annotate - [select for diffs], Thu May 5 09:02:30 1994 UTC (19 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.18: +1 -1
lines
Diff to previous 1.18 (colored)
setpri() is toast.
Revision 1.18 / (download) - annotate - [select for diffs], Thu May 5 08:58:07 1994 UTC (19 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.17: +1 -1
lines
Diff to previous 1.17 (colored)
Remove now-bogus casts.
Revision 1.17 / (download) - annotate - [select for diffs], Thu May 5 05:38:18 1994 UTC (19 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.16: +1 -1
lines
Diff to previous 1.16 (colored)
lots of changes: prototype migration, move lots of variables, definitions, and structure elements around. kill some unnecessary type and macro definitions. standardize clock handling. More changes than you'd want.
Revision 1.16 / (download) - annotate - [select for diffs], Wed May 4 03:42:00 1994 UTC (19 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.15: +1 -1
lines
Diff to previous 1.15 (colored)
Rename a lot of process flags.
Revision 1.15 / (download) - annotate - [select for diffs], Fri Apr 29 23:16:21 1994 UTC (19 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.14: +1 -1
lines
Diff to previous 1.14 (colored)
change timeout/untimeout/wakeup/sleep/tsleep args to void *
Revision 1.14 / (download) - annotate - [select for diffs], Wed Dec 22 13:46:28 1993 UTC (19 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.13: +1 -1
lines
Diff to previous 1.13 (colored)
cast to match header (changed back...)
Revision 1.13 / (download) - annotate - [select for diffs], Mon Dec 20 12:42:34 1993 UTC (19 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.12: +1 -1
lines
Diff to previous 1.12 (colored)
load average changes from magnum
Revision 1.12 / (download) - annotate - [select for diffs], Sat Dec 18 04:21:14 1993 UTC (19 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +1 -1
lines
Diff to previous 1.11 (colored)
Canonicalize all #includes.
Revision 1.11 / (download) - annotate - [select for diffs], Wed Sep 15 22:30:40 1993 UTC (19 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: magnum-base
Changes since 1.10: +1 -1
lines
Diff to previous 1.10 (colored)
make allproc be volatile, and cast things accordingly. suggested by torek, because CSRG had problems with reordering of assignments to allproc leading to strange panics from kernels compiled with gcc2...
Revision 1.10 / (download) - annotate - [select for diffs], Sun Aug 29 01:50:51 1993 UTC (19 years, 9 months ago) by cgd
Branch: MAIN
Branch point for: magnum
Changes since 1.9: +1 -1
lines
Diff to previous 1.9 (colored)
print more DIAGNOSITC info, and startrtclock early on the mac (like i386)
Revision 1.9 / (download) - annotate - [select for diffs], Thu Jul 15 18:36:32 1993 UTC (19 years, 11 months ago) by brezak
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
Changes since 1.8: +1 -1
lines
Diff to previous 1.8 (colored)
Add 'ps' command. Add -more- pager to output from Mach ddb.
Revision 1.8 / (download) - annotate - [select for diffs], Sun Jun 27 06:22:32 1993 UTC (19 years, 11 months ago) by andrew
Branch: MAIN
Changes since 1.7: +1 -1
lines
Diff to previous 1.7 (colored)
#endif was somehow missing from the end of a DDB conditional!
Revision 1.7 / (download) - annotate - [select for diffs], Sun Jun 27 06:01:47 1993 UTC (19 years, 11 months ago) by andrew
Branch: MAIN
Changes since 1.6: +1 -1
lines
Diff to previous 1.6 (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.6 / (download) - annotate - [select for diffs], Sun Jun 27 01:05:56 1993 UTC (19 years, 11 months ago) by glass
Branch: MAIN
Changes since 1.5: +1 -1
lines
Diff to previous 1.5 (colored)
another NDDB -> DDB change. why did DDB invade kern/*?
Revision 1.5 / (download) - annotate - [select for diffs], Thu May 20 02:54:42 1993 UTC (20 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.4: +1 -1
lines
Diff to previous 1.4 (colored)
add $Id$ strings, and clean up file headers where necessary
Revision 1.4 / (download) - annotate - [select for diffs], Thu Apr 15 07:15:25 1993 UTC (20 years, 2 months ago) by glass
Branch: MAIN
Changes since 1.3: +1 -1
lines
Diff to previous 1.3 (colored)
i hate NDDB......
Revision 1.3 / (download) - annotate - [select for diffs], Sat Apr 10 12:06:15 1993 UTC (20 years, 2 months ago) by glass
Branch: MAIN
CVS Tags: netbsd-alpha-1,
netbsd-0-8
Changes since 1.2: +1 -1
lines
Diff to previous 1.2 (colored)
fixed to be compliant, subservient, and to take advantage of the newly hacked config(8)
Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 21 18:04:42 1993 UTC (20 years, 3 months ago) by cgd
Branch: MAIN
CVS Tags: patchkit-0-2-2
Changes since 1.1: +1 -1
lines
Diff to previous 1.1 (colored)
after 0.2.2 "stable" patches applied
Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (20 years, 3 months ago) by cgd
Branch: MAIN
Initial revision