Up to [cvs.NetBSD.org] / src / sys / kern
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.151 / (download) - annotate - [select for diffs], Sat Sep 2 17:44:59 2023 UTC (6 months, 2 weeks ago) by riastradh
Branch: MAIN
CVS Tags: triaxx-drm,
thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
HEAD
Changes since 1.150: +2 -5
lines
Diff to previous 1.150 (colored)
heartbeat(9): Move #ifdef HEARTBEAT to sys/heartbeat.h. Less error-prone this way, and the callers are less cluttered.
Revision 1.150 / (download) - annotate - [select for diffs], Fri Jul 7 12:34:50 2023 UTC (8 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.149: +11 -2
lines
Diff to previous 1.149 (colored)
heartbeat(9): New mechanism to check progress of kernel. This uses hard interrupts to check progress of low-priority soft interrupts, and one CPU to check progress of another CPU. If no progress has been made after a configurable number of seconds (kern.heartbeat.max_period, default 15), then the system panics -- preferably on the CPU that is stuck so we get a stack trace in dmesg of where it was stuck, but if the stuckness was detected by another CPU and the stuck CPU doesn't acknowledge the request to panic within one second, the detecting CPU panics instead. This doesn't supplant hardware watchdog timers. It is possible for hard interrupts to be stuck on all CPUs for some reason too; in that case heartbeat(9) has no opportunity to complete. Downside: heartbeat(9) relies on hardclock to run at a reasonably consistent rate, which might cause trouble for the glorious tickless future. However, it could be adapted to take a parameter for an approximate number of units that have elapsed since the last call on the current CPU, rather than treating that as a constant 1. XXX kernel revbump -- changes struct cpu_info layout
Revision 1.149 / (download) - annotate - [select for diffs], Fri Jun 30 21:42:05 2023 UTC (8 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.148: +6 -4
lines
Diff to previous 1.148 (colored)
entropy(9): Reintroduce netbsd<=9 time-delta estimator for unblocking. The system will (in a subsequent change) by default block for this condition before almost all of userland is running (including /etc/rc.d/sshd key generation). That way, a never-blocking getentropy(3) API will never return any data without at least best-effort entropy like netbsd<=9 did to applications except in single-user mode (where you have to be careful about everything anyway) or in the few processes that run before a seed can even be loaded (where blocking indefinitely, e.g. when generating a stack protector cookie in libc, could pose a severe availability problem that can't be configured away, but where the security impact is low). However, (in another subsequent change) we will continue to use _only_ HWRNG driver estimates and seed estimates, and _not_ time-delta estimator, for _warning_ about security in motd, daily security report, etc. And if HWRNG/seed provides enough entropy before time-delta estimator does, that will unblock /dev/random too. The result is: - Machines with HWRNG or seed won't warn about entropy and will essentially never block -- even on first boot without a seed, it will take only as long as the fastest HWRNG to unblock. - Machines with neither HWRNG nor seed: . will warn about entropy, giving feedback about security; and . will avoid returning anything more predictable than netbsd<=9; but . won't block (much) longer than netbsd<=9 would (and won't block again after blocking once, except with kern.entropy.depletion=1 for testing). (The threshold for unblocking is now somewhat higher than before: 512 samples that pass the time-delta estimator, rather than 80 as it used to be.) And, of course, adding a seed (or HWRNG) will prevent both warnings and blocking. The mechanism is: 1. /dev/random will block until _either_ (a) enough bits of entropy (256) from reliable sources have been added to the pool, _or_ (b) enough samples have been added from any sources (512), passing the old time-delta entropy estimator, that the possible security benefit doesn't justify holding up availability any longer (`best effort'), except on systems with higher security requirements like securelevel=2 which can disable non-HWRNG, non-seed sources with rndctl_flags in rc.conf(5). 2. dmesg will report `entropy: ready' when 1(a) is satisfied, but if 1(b) is satisfied first, it will report `entropy: best effort', so the concise log messages will reflect the timing and whether in any period of time any of the system might be relying on best effort entropy. 3. The sysctl knob kern.entropy.needed (and the ioctl RNDGETPOOLSTAT variable rndpoolstat_t::added) still reflects the number of bits of entropy from reliable sources, so we can still use this to suggest regenerating ssh keys. This matters on platforms that can only be reached, after flashing an installation image, by sshing in over a (private) network, like small network appliances or remote virtual machines without (interactive) serial consoles. If we blocked indefinitely at boot when generating ssh keys, such platforms would be unusable. This way, platforms are usable, but operators can still be advised at login time to regenerate keys as soon as they can actually load entropy onto the system, e.g. with rndctl(8) on a seed file copied from a local machine over the (private) network. 4. On machines without HWRNG, using a seed file still suppresses warnings for users who need more confident security. But it is no longer necessary for availability. This is a compromise between availability and security: - The security mechanism of blocking indefinitely on machines without HWRNG hurts availability too much, as painful experience over the multiple years since I made the mistake of introducing it have shown. (Sorry!) - The other main alternative, not having a blocking path at all (as I pushed for, and as OpenBSD has done for a long time) could potentially reduce security vs netbsd<=9, and would run against the expectations set by many popular operating systems to the severe detriment of public perception of NetBSD security. Even though we can't _confidently_ assess enough entropy from, e.g., sampling interrupt timings, this is the traditional behaviour that most operating systems provide -- and the result here is a net nondecrease in security over netbsd<=9, because all paths from the entropy pool to userland now have at least as high a standard before returning data as they did in netbsd<=9. PR kern/55641 PR pkg/55847 PR kern/57185 https://mail-index.netbsd.org/current-users/2020/09/02/msg039470.html https://mail-index.netbsd.org/current-users/2020/11/21/msg039931.html https://mail-index.netbsd.org/current-users/2020/12/05/msg040019.html XXX pullup-10
Revision 1.148 / (download) - annotate - [select for diffs], Sat Mar 19 14:34:47 2022 UTC (2 years ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Branch point for: netbsd-10
Changes since 1.147: +3 -3
lines
Diff to previous 1.147 (colored)
kern: Delete kernel_ticks from kernel ABI. Use getticks() instead.
Revision 1.147 / (download) - annotate - [select for diffs], Fri Mar 18 23:37:14 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.146: +3 -3
lines
Diff to previous 1.146 (colored)
clockrnd(9): Use atomic_load_relaxed for struct clockrnd::needed. This may be set concurrently by clockrnd_get, so let's match the atomic_store_relaxed and avoid the appearance of data races.
Revision 1.146 / (download) - annotate - [select for diffs], Sat Aug 14 21:17:11 2021 UTC (2 years, 7 months ago) by ryo
Branch: MAIN
Changes since 1.145: +3 -3
lines
Diff to previous 1.145 (colored)
fix rumpkernel build failure
Revision 1.145 / (download) - annotate - [select for diffs], Sat Aug 14 17:51:20 2021 UTC (2 years, 7 months ago) by ryo
Branch: MAIN
Changes since 1.144: +9 -2
lines
Diff to previous 1.144 (colored)
Improved the performance of kernel profiling on MULTIPROCESSOR, and possible to get profiling data for each CPU. In the current implementation, locks are acquired at the entrance of the mcount internal function, so the higher the number of cores, the more lock conflict occurs, making profiling performance in a MULTIPROCESSOR environment unusable and slow. Profiling buffers has been changed to be reserved for each CPU, improving profiling performance in MP by several to several dozen times. - Eliminated cpu_simple_lock in mcount internal function, using per-CPU buffers. - Add ci_gmon member to struct cpu_info of each MP arch. - Add kern.profiling.percpu node in sysctl tree. - Add new -c <cpuid> option to kgmon(8) to specify the cpuid, like openbsd. For compatibility, if the -c option is not specified, the entire system can be operated as before, and the -p option will get the total profiling data for all CPUs.
Revision 1.144 / (download) - annotate - [select for diffs], Sat Jan 16 02:20:00 2021 UTC (3 years, 2 months ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-i2c-spi-conf,
thorpej-futex2-base,
thorpej-futex2,
thorpej-futex-base,
thorpej-cfargs2-base,
thorpej-cfargs2,
thorpej-cfargs-base,
thorpej-cfargs,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Changes since 1.143: +73 -2
lines
Diff to previous 1.143 (colored)
entropy: Sample cycle counter or timecounter in hardclock. Only do so when we're short on entropy, in order to minimize performance impact. The sampling should stay close to the time of the actual hardclock timer interrupt, so that the oscillator driving it determines when we sample the cycle counter or timecounter, which we hope is driven by an independent oscillator. If we used a callout, there might be many other influences -- such as spin lock delays possibly synchronized with this core's cycle counter -- that could get between the timer interrupt and the sample. In the glorious tickless future, this should instead be wired up to the timer interrupt handler, however that manifests in the future tickless API.
Revision 1.143 / (download) - annotate - [select for diffs], Sat Dec 5 18:17:01 2020 UTC (3 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.142: +3 -3
lines
Diff to previous 1.142 (colored)
Refactor interval timers to make it possible to support types other than the BSD/POSIX per-process timers: - "struct ptimer" is split into "struct itimer" (common interval timer data) and "struct ptimer" (per-process timer data, which contains a "struct itimer"). - Introduce a new "struct itimer_ops" that supplies information about the specific kind of interval timer, including it's processing queue, the softint handle used to schedule processing, the function to call when the timer fires (which adds it to the queue), and an optional function to call when the CLOCK_REALTIME clock is changed by a call to clock_settime() or settimeofday(). - Rename some fuctions to clearly identify what they're operating on (ptimer vs itimer). - Use kmem(9) to allocate ptimer-related structures, rather than having dedicated pools for them. Welcome to NetBSD 9.99.77.
Revision 1.142 / (download) - annotate - [select for diffs], Sun Oct 11 18:39:09 2020 UTC (3 years, 5 months ago) by thorpej
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.141: +14 -3
lines
Diff to previous 1.141 (colored)
Call cpu_initclocks() before registering the default timecounter, in case it updates hz. If hz changes, recalculate tick and tickadj.
Revision 1.141 / (download) - annotate - [select for diffs], Fri May 8 22:10:09 2020 UTC (3 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.140: +9 -9
lines
Diff to previous 1.140 (colored)
Run Solaris cyclics from statclock() so dtrace isn't locked out by IPL_SCHED (assuming the machine has a separate statclock() which almost all don't).
Revision 1.140 / (download) - annotate - [select for diffs], Thu Apr 2 16:29:30 2020 UTC (3 years, 11 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh
Changes since 1.139: +11 -4
lines
Diff to previous 1.139 (colored)
Hide 'hardclock_ticks' behind a new getticks() function, and use relaxed atomics internally. Only one caller is converted for now. Discussed with riastradh@ and ad@.
Revision 1.139 / (download) - annotate - [select for diffs], Sun Dec 1 15:34:46 2019 UTC (4 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: is-mlppp-base,
is-mlppp,
ad-namecache-base3,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base,
ad-namecache
Changes since 1.138: +4 -4
lines
Diff to previous 1.138 (colored)
Fix false sharing problems with cpu_info. Identified with tprof(8). This was a very nice win in my tests on a 48 CPU box. - Reorganise cpu_data slightly according to usage. - Put cpu_onproc into struct cpu_info alongside ci_curlwp (now is ci_onproc). - On x86, put some items in their own cache lines according to usage, like the IPI bitmask and ci_want_resched.
Revision 1.138 / (download) - annotate - [select for diffs], Mon Sep 3 21:29:30 2018 UTC (5 years, 6 months ago) by riastradh
Branch: MAIN
CVS Tags: phil-wifi-20191119,
phil-wifi-20190609,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
netbsd-9-base,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
isaki-audio2-base,
isaki-audio2
Changes since 1.137: +10 -10
lines
Diff to previous 1.137 (colored)
C99 initializers for intr_timecounter. No functional change.
Revision 1.137 / (download) - annotate - [select for diffs], Thu Jul 12 10:46:48 2018 UTC (5 years, 8 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-0728
Changes since 1.136: +2 -45
lines
Diff to previous 1.136 (colored)
Remove the kernel PMC code. Sent yesterday on tech-kern@. This change: * Removes "options PERFCTRS", the associated includes, and the associated ifdefs. In doing so, it removes several XXXSMPs in the MI code, which is good. * Removes the PMC code of ARM XSCALE. * Removes all the pmc.h files. They were all empty, except for ARM XSCALE. * Reorders the x86 PMC code not to rely on the legacy pmc.h file. The definitions are put in sysarch.h. * Removes the kern/sys_pmc.c file, and along with it, the sys_pmc_control and sys_pmc_get_info syscalls. They are marked as OBSOL in kern, netbsd32 and rump. * Removes the pmc_evid_t and pmc_ctr_t types. * Removes all the associated man pages. The sets are marked as obsolete.
Revision 1.136 / (download) - annotate - [select for diffs], Sun Feb 4 17:31:51 2018 UTC (6 years, 1 month ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-base,
pgoyette-compat-base,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315
Branch point for: phil-wifi,
pgoyette-compat
Changes since 1.135: +3 -2
lines
Diff to previous 1.135 (colored)
Add a proper defflag for GPROF, and include opt_gprof.h, otherwise we're not gonna go very far.
Revision 1.135 / (download) - annotate - [select for diffs], Sun Feb 12 18:43:56 2017 UTC (7 years, 1 month ago) by maxv
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202,
prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
netbsd-8-base,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1
Changes since 1.134: +3 -2
lines
Diff to previous 1.134 (colored)
Add a KASSERT, otherwise it looks like a NULL deref; from Mootja.
Revision 1.134 / (download) - annotate - [select for diffs], Wed Apr 22 16:46:58 2015 UTC (8 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: pgoyette-localcount-base,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
nick-nhusb-base-20170204,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
nick-nhusb-base-20160907,
nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319,
nick-nhusb-base-20151226,
nick-nhusb-base-20150921,
nick-nhusb-base-20150606,
localcount-20160914,
bouyer-socketcan-base
Branch point for: pgoyette-localcount,
bouyer-socketcan
Changes since 1.133: +2 -3
lines
Diff to previous 1.133 (colored)
opt_ntp.h is no longer used in kern_clock.c
Revision 1.133 / (download) - annotate - [select for diffs], Wed Apr 22 16:43:11 2015 UTC (8 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.132: +4 -2
lines
Diff to previous 1.132 (colored)
_KERNEL_OPT wrap
Revision 1.132 / (download) - annotate - [select for diffs], Wed Apr 22 16:42:24 2015 UTC (8 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.131: +39 -2
lines
Diff to previous 1.131 (colored)
move clock sysctls from init_sysctl.c to kern_clock.c
Revision 1.131 / (download) - annotate - [select for diffs], Sun Dec 2 01:05:16 2012 UTC (11 years, 3 months ago) by chs
Branch: MAIN
CVS Tags: yamt-pagecache-base9,
yamt-pagecache-base8,
yamt-pagecache-base7,
tls-maxphys-base,
tls-earlyentropy-base,
tls-earlyentropy,
rmind-smpnet-nbase,
rmind-smpnet-base,
rmind-smpnet,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
nick-nhusb-base-20150406,
nick-nhusb-base,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7,
khorben-n900,
agc-symver-base,
agc-symver
Branch point for: nick-nhusb
Changes since 1.130: +17 -2
lines
Diff to previous 1.130 (colored)
adapt the cyclic module and profile dtrace provider to netbsd. for now, just hook the cyclic callback into hardclock().
Revision 1.130 / (download) - annotate - [select for diffs], Sun Oct 30 01:57:40 2011 UTC (12 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2,
jmcneill-usbmp-base10,
jmcneill-usbmp-base,
jmcneill-usbmp,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: yamt-pagecache,
tls-maxphys
Changes since 1.129: +2 -27
lines
Diff to previous 1.129 (colored)
Back out previous; this should not be done in statclock but when the allocations change or getrusage(). Plus the += seems wrong, we cannot keep adding to the stats.
Revision 1.129 / (download) - annotate - [select for diffs], Sat Oct 29 15:58:38 2011 UTC (12 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.128: +27 -2
lines
Diff to previous 1.128 (colored)
PR/45539: Greg A. Woods: add support for getrusage(2) memory size statistics
Revision 1.128 / (download) - annotate - [select for diffs], Wed Jul 27 14:35:33 2011 UTC (12 years, 7 months ago) by uebayasi
Branch: MAIN
Changes since 1.127: +2 -4
lines
Diff to previous 1.127 (colored)
These don't need uvm/uvm_extern.h.
Revision 1.127 / (download) - annotate - [select for diffs], Mon Dec 20 00:25:46 2010 UTC (13 years, 3 months ago) by matt
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase,
rmind-uvmplock-base,
matt-mips64-premerge-20101231,
jruoho-x86intr-base,
jruoho-x86intr,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Changes since 1.126: +2 -14
lines
Diff to previous 1.126 (colored)
Move counting of faults, traps, intrs, soft[intr]s, syscalls, and nswtch from uvmexp to per-cpu cpu_data and move them to 64bits. Remove unneeded includes of <uvm/uvm_extern.h> and/or <uvm/uvm.h>.
Revision 1.126 / (download) - annotate - [select for diffs], Sun Oct 5 21:57:20 2008 UTC (15 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9,
yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
wrstuden-revivesa-base-4,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
uebayasi-xip-base1,
uebayasi-xip-base,
uebayasi-xip,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base2,
nick-hppapmap-base,
nick-hppapmap,
netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
mjf-devfs2-base,
matt-premerge-20091211,
matt-nb5-pq3-base,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
jymxensuspend-base,
jym-xensuspend-nbase,
jym-xensuspend-base,
jym-xensuspend,
haad-nbase2,
haad-dm-base2,
haad-dm-base1,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Branch point for: rmind-uvmplock,
matt-nb5-pq3
Changes since 1.125: +3 -5
lines
Diff to previous 1.125 (colored)
hardclock() itself doesn't schedule callout softintrs any more, so update comment - less is more.
Revision 1.125 / (download) - annotate - [select for diffs], Wed Jul 2 19:38:37 2008 UTC (15 years, 8 months ago) by rmind
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
simonb-wapbl-nbase,
simonb-wapbl-base
Branch point for: haad-dm
Changes since 1.124: +3 -3
lines
Diff to previous 1.124 (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.124 / (download) - annotate - [select for diffs], Sun Jun 1 21:24:15 2008 UTC (15 years, 9 months 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.123: +4 -2
lines
Diff to previous 1.123 (colored)
Make trap counters per-cpu, like syscalls.
Revision 1.123 / (download) - annotate - [select for diffs], Mon May 19 17:06:02 2008 UTC (15 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: hpcarm-cleanup-nbase
Changes since 1.122: +3 -7
lines
Diff to previous 1.122 (colored)
Reduce ifdefs due to MULTIPROCESSOR slightly.
Revision 1.122 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:02 2008 UTC (15 years, 10 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base2,
yamt-nfs-mp-base2
Branch point for: wrstuden-revivesa
Changes since 1.121: +2 -9
lines
Diff to previous 1.121 (colored)
Remove clause 3 and 4 from TNF licenses
Revision 1.121 / (download) - annotate - [select for diffs], Tue Apr 22 11:45:28 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.120: +7 -12
lines
Diff to previous 1.120 (colored)
Implement MP callouts as discussed on tech-kern. The CPU binding code is disabled for the moment until we figure out what we want to do with CPUs being offlined.
Revision 1.120 / (download) - annotate - [select for diffs], Mon Apr 21 00:13:46 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.119: +6 -19
lines
Diff to previous 1.119 (colored)
timer fixes for PR 37093: - Fix serious concurrency problems, making the code MT and MP safe in the process. - Don't allocate memory or inspect process state from hardclock().
Revision 1.119 / (download) - annotate - [select for diffs], Tue Mar 11 02:26:47 2008 UTC (16 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base,
yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
ad-socklock-base1
Branch point for: yamt-pf42
Changes since 1.118: +4 -4
lines
Diff to previous 1.118 (colored)
Add casts to avoid potential compiler warnings.
Revision 1.118 / (download) - annotate - [select for diffs], Tue Mar 11 02:24:43 2008 UTC (16 years ago) by ad
Branch: MAIN
Changes since 1.117: +15 -3
lines
Diff to previous 1.117 (colored)
Make context switch + syscall counters optionally per-CPU and accumulate in schedclock() at "about 16 hz".
Revision 1.117 / (download) - annotate - [select for diffs], Sun Jan 20 18:09:11 2008 UTC (16 years, 2 months ago) by joerg
Branch: MAIN
CVS Tags: nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
hpcarm-cleanup-base,
bouyer-xeni386-nbase
Branch point for: mjf-devfs2,
keiichi-mipv6
Changes since 1.116: +2 -1040
lines
Diff to previous 1.116 (colored)
Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants, remove the conditionals and the code associated with the undef case.
Revision 1.116 / (download) - annotate - [select for diffs], Mon Jan 7 10:28:07 2008 UTC (16 years, 2 months ago) by simonb
Branch: MAIN
CVS Tags: matt-armv6-base,
bouyer-xeni386-base
Changes since 1.115: +4 -3
lines
Diff to previous 1.115 (colored)
Actually return the computed uptime in microuptime(). Fixes many wierd timing issues on non-timecounter ports (tested on sbmips, and omap ARM by Marty Fouts). Also move the microtime() inside the splclock() block in the same function - it may be possible for the "time" variable to be updated after the call to microtime() but before we use it to calculate the offset from mono_time.
Revision 1.115 / (download) - annotate - [select for diffs], Sat Dec 22 00:34:38 2007 UTC (16 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.114: +59 -8
lines
Diff to previous 1.114 (colored)
provide binuptime etc for !__HAVE_TIMECOUNTER.
Revision 1.114 / (download) - annotate - [select for diffs], Tue Nov 6 00:42:40 2007 UTC (16 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-kmem,
vmlocking2-base2,
vmlocking2-base1,
vmlocking-nbase,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
jmcneill-pm-base,
jmcneill-base,
cube-autoconf-base,
cube-autoconf,
bouyer-xenamd64-base2,
bouyer-xenamd64-base
Branch point for: vmlocking2,
bouyer-xeni386
Changes since 1.113: +20 -21
lines
Diff to previous 1.113 (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.113 / (download) - annotate - [select for diffs], Thu Oct 4 12:55:48 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-x86pmap-base2,
vmlocking-base
Branch point for: mjf-devfs,
bouyer-xenamd64
Changes since 1.112: +2 -45
lines
Diff to previous 1.112 (colored)
G/C the HIGHBALL stuff.
Revision 1.112 / (download) - annotate - [select for diffs], Wed Oct 3 14:49:24 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.111: +3 -3
lines
Diff to previous 1.111 (colored)
Make kaputt code compile.
Revision 1.111 / (download) - annotate - [select for diffs], Wed Oct 3 11:05:58 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.110: +5 -9
lines
Diff to previous 1.110 (colored)
Fix a dodgy bit of code in the PERFCTRS case.
Revision 1.110 / (download) - annotate - [select for diffs], Thu Aug 9 07:36:18 2007 UTC (16 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-x86pmap-base,
nick-csl-alignment-base5
Branch point for: yamt-x86pmap,
matt-armv6
Changes since 1.109: +2 -159
lines
Diff to previous 1.109 (colored)
Shuffle routines which just roll values around from kern_clock.c and kern_time.c to subr_time.c.
Revision 1.109 / (download) - annotate - [select for diffs], Mon Jul 9 21:10:51 2007 UTC (16 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base,
mjf-ufs-trans-base,
matt-mips64-base,
matt-mips64,
hpcarm-cleanup
Branch point for: nick-csl-alignment,
jmcneill-pm
Changes since 1.108: +7 -16
lines
Diff to previous 1.108 (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.108 / (download) - annotate - [select for diffs], Thu May 17 14:51:38 2007 UTC (16 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.107: +43 -23
lines
Diff to previous 1.107 (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.107 / (download) - annotate - [select for diffs], Sun May 13 14:43:52 2007 UTC (16 years, 10 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Changes since 1.106: +8 -4
lines
Diff to previous 1.106 (colored)
Instead of the #define versions of tc_getfrequency() and nanouptime(), use the function ones in kern_kern_clock.c (adding tc_getfrequency). Adjust includes so this builds.
Revision 1.106 / (download) - annotate - [select for diffs], Fri Feb 16 02:53:43 2007 UTC (17 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup,
ad-audiomp-base,
ad-audiomp
Branch point for: yamt-idlelwp,
vmlocking,
mjf-ufs-trans
Changes since 1.105: +9 -32
lines
Diff to previous 1.105 (colored)
Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch callouts via a soft interrupt. In the near future, softclock will be run from process context.
Revision 1.105 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:30 2007 UTC (17 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Changes since 1.104: +41 -20
lines
Diff to previous 1.104 (colored)
Merge newlock2 to head.
Revision 1.104 / (download) - annotate - [select for diffs], Wed Nov 1 10:17:58 2006 UTC (17 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
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,
netbsd-4,
matt-nb4-arm-base,
matt-nb4-arm
Changes since 1.103: +4 -3
lines
Diff to previous 1.103 (colored)
remove some __unused from function parameters.
Revision 1.103 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:14 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.102: +3 -3
lines
Diff to previous 1.102 (colored)
- sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
Revision 1.102 / (download) - annotate - [select for diffs], Sat Sep 2 06:21:32 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9,
yamt-pdpolicy-base8,
rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl,
newlock2
Changes since 1.101: +5 -3
lines
Diff to previous 1.101 (colored)
Add missing initializers
Revision 1.101 / (download) - annotate - [select for diffs], Fri Jun 9 22:47:56 2006 UTC (17 years, 9 months ago) by kardel
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7,
yamt-pdpolicy-base6,
gdamore-uart-base,
gdamore-uart,
chap-midi-nbase,
chap-midi-base,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Changes since 1.100: +2 -3
lines
Diff to previous 1.100 (colored)
re-order initialization sequence to have real counters available during autoconfig
Revision 1.100 / (download) - annotate - [select for diffs], Thu Jun 8 17:23:11 2006 UTC (17 years, 9 months ago) by drochner
Branch: MAIN
Changes since 1.99: +4 -4
lines
Diff to previous 1.99 (colored)
make the public declaration of "hardclock_ticks" signed again; other code (kernel timeout/callout) does comparisions with it
Revision 1.99 / (download) - annotate - [select for diffs], Wed Jun 7 22:33:39 2006 UTC (17 years, 9 months ago) by kardel
Branch: MAIN
Changes since 1.98: +211 -16
lines
Diff to previous 1.98 (colored)
merge FreeBSD timecounters from branch simonb-timecounters - struct timeval time is gone time.tv_sec -> time_second - struct timeval mono_time is gone mono_time.tv_sec -> time_uptime - access to time via {get,}{micro,nano,bin}time() get* versions are fast but less precise - support NTP nanokernel implementation (NTP API 4) - further reading: Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
Revision 1.98 / (download) - annotate - [select for diffs], Sat Apr 15 02:12:49 2006 UTC (17 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5,
simonb-timecounters-base,
elad-kernelauth-base
Branch point for: chap-midi
Changes since 1.97: +5 -3
lines
Diff to previous 1.97 (colored)
Make this compile again.
Revision 1.97 / (download) - annotate - [select for diffs], Sat Apr 15 00:34:42 2006 UTC (17 years, 11 months ago) by elad
Branch: MAIN
Changes since 1.96: +9 -9
lines
Diff to previous 1.96 (colored)
Coverity CID 1050, 1051: Correct NULL guards.
Revision 1.96 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:29 2005 UTC (18 years, 3 months ago) by christos
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
Branch point for: yamt-pdpolicy,
simonb-timecounters,
rpaulo-netinet-merge-pcb,
peter-altq,
elad-kernelauth
Changes since 1.95: +2 -2
lines
Diff to previous 1.95 (colored)
merge ktrace-lwp.
Revision 1.95 / (download) - annotate - [select for diffs], Mon Sep 12 16:21:31 2005 UTC (18 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-vop-base3,
yamt-vop-base2,
yamt-vop-base,
yamt-vop,
yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base3,
yamt-readahead-base2,
yamt-readahead-base,
yamt-readahead,
thorpej-vnode-attr-base,
thorpej-vnode-attr,
ktrace-lwp-base
Changes since 1.94: +15 -2
lines
Diff to previous 1.94 (colored)
Introduced nanotime() which is going to be used by some fs code yet to be committed. This should really be an MD routine and microtime should be implemented from it, not the opposite (which is what we have now).
Revision 1.94 / (download) - annotate - [select for diffs], Wed Mar 2 11:05:34 2005 UTC (19 years ago) by mycroft
Branch: MAIN
CVS Tags: yamt-km-base4,
yamt-km-base3,
netbsd-3-base,
netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0,
netbsd-3,
kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.93: +5 -3
lines
Diff to previous 1.93 (colored)
Copyright maintenance.
Revision 1.93 / (download) - annotate - [select for diffs], Sat Feb 26 21:34:55 2005 UTC (19 years ago) by perry
Branch: MAIN
Changes since 1.92: +9 -9
lines
Diff to previous 1.92 (colored)
nuke trailing whitespace
Revision 1.92 / (download) - annotate - [select for diffs], Wed Sep 15 04:56:14 2004 UTC (19 years, 6 months ago) by tls
Branch: MAIN
CVS Tags: yamt-km-base2,
yamt-km-base,
kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Branch point for: yamt-km,
kent-audio2
Changes since 1.91: +4 -2
lines
Diff to previous 1.91 (colored)
Add 50Hz support -- this will allow 'options NTP' to work on the Xen port, once the Xen port's timer interrupts are made somewhat more sane (it "works" now, but keeps worse time than without the option, ouch)
Revision 1.91 / (download) - annotate - [select for diffs], Thu Jul 1 12:36:57 2004 UTC (19 years, 8 months ago) by yamt
Branch: MAIN
Changes since 1.90: +13 -4
lines
Diff to previous 1.90 (colored)
statclock: don't assume hz==100 when determining frequency to call schedclock.
Revision 1.90 / (download) - annotate - [select for diffs], Fri Feb 13 11:36:22 2004 UTC (20 years, 1 month ago) by wiz
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.89: +5 -5
lines
Diff to previous 1.89 (colored)
Uppercase CPU, plural is CPUs.
Revision 1.89 / (download) - annotate - [select for diffs], Fri Jan 23 05:01:19 2004 UTC (20 years, 2 months ago) by simonb
Branch: MAIN
Changes since 1.88: +11 -2
lines
Diff to previous 1.88 (colored)
Fix NTP PPSAPI support (enabled with "options PPS_SYNC"): From PR kern/13702 from Charles Carvalho. Tested on alpha and i386 with a Laipac TF10 PPS-capable GPS. The com.c change was copied wholesale from Charles' z8530tty.c patch.
Revision 1.88 / (download) - annotate - [select for diffs], Thu Dec 4 19:38:23 2003 UTC (20 years, 3 months ago) by atatat
Branch: MAIN
Changes since 1.87: +2 -21
lines
Diff to previous 1.87 (colored)
Dynamic sysctl. Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(), vfs_sysctl(), etc, routines, along with sysctl_int() et al. Now all nodes are registered with the tree, and nodes can be added (or removed) easily, and I/O to and from the tree is handled generically. Since the nodes are registered with the tree, the mapping from name to number (and back again) can now be discovered, instead of having to be hard coded. Adding new nodes to the tree is likewise much simpler -- the new infrastructure handles almost all the work for simple types, and just about anything else can be done with a small helper function. All existing nodes are where they were before (numerically speaking), so all existing consumers of sysctl information should notice no difference. PS - I'm sorry, but there's a distinct lack of documentation at the moment. I'm working on sysctl(3/8/9) right now, and I promise to watch out for buses.
Revision 1.87 / (download) - annotate - [select for diffs], Thu Aug 7 16:31:42 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.86: +3 -7
lines
Diff to previous 1.86 (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.86 / (download) - annotate - [select for diffs], Mon Jun 23 11:02:04 2003 UTC (20 years, 9 months ago) by martin
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.85: +3 -2
lines
Diff to previous 1.85 (colored)
Make sure to include opt_foo.h if a defflag option FOO is used.
Revision 1.85 / (download) - annotate - [select for diffs], Thu Jun 12 14:44:36 2003 UTC (20 years, 9 months ago) by drochner
Branch: MAIN
Changes since 1.84: +2 -3
lines
Diff to previous 1.84 (colored)
nuke unnecessary #include <sys/dkstat.h>
Revision 1.84 / (download) - annotate - [select for diffs], Tue Feb 4 01:21:04 2003 UTC (21 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.83: +6 -390
lines
Diff to previous 1.83 (colored)
New callout implementation. This is based on callwheel implementation done by Artur Grabowski and Thomas Nordin for OpenBSD, which is more efficient in several ways than the callwheel implementation that it is replacing. It has been adapted to our pre-existing callout API, and also provides the slightly more efficient (and much more intuitive) API (adapted to the callout_*() naming scheme) that the OpenBSD version provides. Among other things, this shaves a bunch of cycles off rescheduling-in- the-future a callout which is already scheduled, which the common case for TCP timers (notably REXMT and KEEP). The API has been simplified a bit, as well. The (very confusing to a good many people) "ACTIVE" state for callouts has gone away. There is now only "PENDING" (scheduled to fire in the future) and "EXPIRED" (has fired, and the function called). Kernel version bump not done; we'll ride the 1.6N bump that happened with the malloc(9) change.
Revision 1.83 / (download) - annotate - [select for diffs], Mon Jan 27 22:38:24 2003 UTC (21 years, 1 month ago) by pk
Branch: MAIN
Changes since 1.82: +7 -6
lines
Diff to previous 1.82 (colored)
There's a locking order issue with the scheduler and the callwheel locks as ltsleep() may call callout_reset() with the scheduler lock held. So, prevent interrupts that may take the scheduler lock while holding the callwheel lock.
Revision 1.82 / (download) - annotate - [select for diffs], Sat Jan 18 10:06:24 2003 UTC (21 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.81: +23 -19
lines
Diff to previous 1.81 (colored)
Merge the nathanw_sa branch.
Revision 1.81 / (download) - annotate - [select for diffs], Sat Nov 2 07:25:19 2002 UTC (21 years, 4 months ago) by perry
Branch: MAIN
CVS Tags: nathanw_sa_before_merge,
nathanw_sa_base,
gmcgarry_ucred_base,
gmcgarry_ucred,
gmcgarry_ctxsw_base,
gmcgarry_ctxsw,
fvdl_fs64_base
Changes since 1.80: +4 -4
lines
Diff to previous 1.80 (colored)
/*CONTCOND*/ while (0)'ed macros
Revision 1.80 / (download) - annotate - [select for diffs], Wed Aug 7 05:16:22 2002 UTC (21 years, 7 months ago) by briggs
Branch: MAIN
CVS Tags: kqueue-beforemerge,
kqueue-base,
kqueue-aftermerge,
gehenna-devsw-base
Changes since 1.79: +53 -5
lines
Diff to previous 1.79 (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.79 / (download) - annotate - [select for diffs], Sun Mar 17 11:10:43 2002 UTC (22 years ago) by simonb
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-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001,
eeh-devprop-base,
eeh-devprop
Branch point for: netbsd-1-6,
gehenna-devsw
Changes since 1.78: +2 -3
lines
Diff to previous 1.78 (colored)
We don't need to include <uvm/uvm_extern.h> before <sys/sysctl.h> anymore.
Revision 1.78 / (download) - annotate - [select for diffs], Mon Nov 12 15:25:06 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base,
newlock-base,
newlock,
ifpoll-base
Changes since 1.77: +4 -1
lines
Diff to previous 1.77 (colored)
add RCSIDs
Revision 1.77 / (download) - annotate - [select for diffs], Thu Sep 13 05:22:17 2001 UTC (22 years, 6 months ago) by enami
Branch: MAIN
CVS Tags: thorpej-devvp-base3,
thorpej-devvp-base2,
pre-chs-ubcperf,
post-chs-ubcperf
Branch point for: thorpej-mips-cache
Changes since 1.76: +2 -1
lines
Diff to previous 1.76 (colored)
Defopt CALLWHEEL_STATS.
Revision 1.76 / (download) - annotate - [select for diffs], Tue Sep 11 04:32:20 2001 UTC (22 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.75: +104 -44
lines
Diff to previous 1.75 (colored)
Optimization suggested by Bill Sommerfeld: Keep a hint as to the "earliest" firing callout in a bucket. This allows us to skip the scan up the bucket if no callouts are due in the bucket. A cheap O(1) hint update is done at callout insertion (if new callout is earlier than hint) and removal (is bucket empty). A thorough refresh of the hint is done when the bucket is traversed. This doesn't matter much on machines with small values of hz (e.g. i386), but on systems with large values of hz (e.g. Alpha), it has a definite positive effect. Also, keep the callwheel stats in evcnts, so that you can view them with "vmstat -e".
Revision 1.75 / (download) - annotate - [select for diffs], Sun May 6 13:46:34 2001 UTC (22 years, 10 months ago) by simonb
Branch: MAIN
CVS Tags: thorpej-devvp-base
Branch point for: thorpej-devvp,
kqueue
Changes since 1.74: +2 -1
lines
Diff to previous 1.74 (colored)
Declare schedhz.
Revision 1.74 / (download) - annotate - [select for diffs], Wed Jan 17 18:21:41 2001 UTC (23 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase,
thorpej_scsipi_beforemerge,
thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.73: +4 -1
lines
Diff to previous 1.73 (colored)
Explicitly include <machine/intr.h> if __HAVE_GENERIC_SOFT_INTERRUPTS.
Revision 1.73 / (download) - annotate - [select for diffs], Mon Jan 15 20:19:59 2001 UTC (23 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.72: +20 -4
lines
Diff to previous 1.72 (colored)
Make softclock a generic soft interrupt of the API is available, adding the requisite void * argument to softclock().
Revision 1.72 / (download) - annotate - [select for diffs], Sun Dec 10 19:29:31 2000 UTC (23 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.71: +7 -4
lines
Diff to previous 1.71 (colored)
Introduce PROC_PC(), which is used to get a process's user PC. If this is defined, call addupc_intr() directly from statclock() in the system time case, using the same P_OWEUPC path if the copyin/copyout fails. Use this in i386 to remove profiling code from the normal userret() path.
Revision 1.71 / (download) - annotate - [select for diffs], Sat Aug 26 04:01:16 2000 UTC (23 years, 6 months ago) by sommerfeld
Branch: MAIN
Changes since 1.70: +2 -2
lines
Diff to previous 1.70 (colored)
On second thought.. pass cpu_info * to roundrobin() explicitly.
Revision 1.70 / (download) - annotate - [select for diffs], Sat Aug 26 03:34:37 2000 UTC (23 years, 6 months ago) by sommerfeld
Branch: MAIN
Changes since 1.69: +30 -23
lines
Diff to previous 1.69 (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.69 / (download) - annotate - [select for diffs], Tue Aug 22 17:28:28 2000 UTC (23 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.68: +3 -1
lines
Diff to previous 1.68 (colored)
Define the MI parts of the "big kernel lock" perimeter. From Bill Sommerfeld.
Revision 1.68 / (download) - annotate - [select for diffs], Tue Aug 22 16:44:51 2000 UTC (23 years, 7 months ago) by eeh
Branch: MAIN
Changes since 1.67: +2 -2
lines
Diff to previous 1.67 (colored)
Should use an `intrptr_t' for address calculations rather than `int'.
Revision 1.67 / (download) - annotate - [select for diffs], Tue Aug 22 15:30:59 2000 UTC (23 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.66: +3 -2
lines
Diff to previous 1.66 (colored)
Fix a locking glitch in callwheel_slock handling. Noted by Bill Sommerfeld.
Revision 1.66 / (download) - annotate - [select for diffs], Mon Aug 21 23:51:33 2000 UTC (23 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.65: +13 -4
lines
Diff to previous 1.65 (colored)
Protect hardclock_ticks and softclock_ticks with the callwheel lock to prevent a race between hardclock() and callout_reset().
Revision 1.65 / (download) - annotate - [select for diffs], Mon Aug 21 23:43:30 2000 UTC (23 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.64: +2 -2
lines
Diff to previous 1.64 (colored)
spllowersoftclock() is already void; no need to cast it.
Revision 1.64 / (download) - annotate - [select for diffs], Mon Aug 21 23:40:56 2000 UTC (23 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.63: +48 -21
lines
Diff to previous 1.63 (colored)
Add a lock for the callwheel (callout facility), and only go to splclock() while holding it.
Revision 1.63 / (download) - annotate - [select for diffs], Tue Aug 1 04:57:29 2000 UTC (23 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.62: +19 -35
lines
Diff to previous 1.62 (colored)
ANSI'ify.
Revision 1.62 / (download) - annotate - [select for diffs], Thu Jul 13 17:06:15 2000 UTC (23 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.61: +47 -21
lines
Diff to previous 1.61 (colored)
New hzto() function from FreeBSD and Artur Grabowski <art@stacken.kth.se>. Stops sleeps from returning early (by up to a clock tick), and return 0 ticks for timeouts that should happen now or in the past. Returning 0 is different from the legacy hzto() interface, and callers need to check for it.
Revision 1.61 / (download) - annotate - [select for diffs], Tue Jun 27 17:41:15 2000 UTC (23 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.60: +2 -2
lines
Diff to previous 1.60 (colored)
remove include of <vm/vm.h>
Revision 1.60 / (download) - annotate - [select for diffs], Sat Jun 3 20:42:42 2000 UTC (23 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Changes since 1.59: +21 -11
lines
Diff to previous 1.59 (colored)
Move schedticks and cp_time into schedstate_percpu. Also, allow non-primary CPUs to call hardclock(), but make them bail about before updating global timekeeping state (that's the job of the primary CPU).
Revision 1.59 / (download) - annotate - [select for diffs], Fri Jun 2 15:53:04 2000 UTC (23 years, 9 months ago) by simonb
Branch: MAIN
Changes since 1.58: +2 -2
lines
Diff to previous 1.58 (colored)
Add new sysctl node "KERN_SYSVIPC_INFO" with "KERN_SYSVIPC_MSG_INFO", "KERN_SYSVIPC_SEM_INFO" and "KERN_SYSVIPC_SHM_INFO" to return the info and data structures for the relevent SysV IPC types. The return structures use fixed-size types and should be compat32 safe. All user-visible changes are protected with #if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) Make all variable declarations extern in msg.h, sem.h and shm.h and add relevent variable declarations to sysv_*.c and remove unneeded header files from those .c files. Make compat14 SysV IPC conversion functions and sysctl_file() static. Change the data pointer to "void *" in sysctl_clockrate(), sysctl_ntptime(), sysctl_file() and sysctl_doeproc().
Revision 1.58 / (download) - annotate - [select for diffs], Mon May 29 23:48:33 2000 UTC (23 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.57: +13 -9
lines
Diff to previous 1.57 (colored)
Use a better multiplier for the 60Hz case.
Revision 1.57 / (download) - annotate - [select for diffs], Mon May 29 15:05:10 2000 UTC (23 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.56: +42 -4
lines
Diff to previous 1.56 (colored)
Update an outdated comment. Allow all powers of 2 from 2^0 to 2^16 for hz. Enable hz==1200.
Revision 1.56 / (download) - annotate - [select for diffs], Mon May 29 14:58:59 2000 UTC (23 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.55: +31 -11
lines
Diff to previous 1.55 (colored)
Improve the time_adj multiplier for the 100Hz and 1000Hz cases, and add a 1200Hz case.
Revision 1.55 / (download) - annotate - [select for diffs], Thu Mar 30 09:27:11 2000 UTC (23 years, 11 months ago) by augustss
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.54: +18 -18
lines
Diff to previous 1.54 (colored)
Get rid of register declarations.
Revision 1.54 / (download) - annotate - [select for diffs], Fri Mar 24 11:57:15 2000 UTC (24 years ago) by enami
Branch: MAIN
Changes since 1.53: +7 -9
lines
Diff to previous 1.53 (colored)
Call the routine to calculate callwheelsize from allocsys() instead of main() since some port like alpha and mips calls allocsys() before main() is called. While I'm here, I renamed some function.
Revision 1.53 / (download) - annotate - [select for diffs], Thu Mar 23 20:51:09 2000 UTC (24 years ago) by thorpej
Branch: MAIN
Changes since 1.52: +1 -54
lines
Diff to previous 1.52 (colored)
Remove the CALLWHEEL_SORT code. It was implemented just for experimenting, and I had no plans to ever enable it. A record of the code is now in the CVS history of the file, so we can unclutter now.
Revision 1.52 / (download) - annotate - [select for diffs], Thu Mar 23 06:30:10 2000 UTC (24 years ago) by thorpej
Branch: MAIN
Changes since 1.51: +346 -112
lines
Diff to previous 1.51 (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.51 / (download) - annotate - [select for diffs], Wed Jan 19 20:05:51 2000 UTC (24 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.50: +17 -1
lines
Diff to previous 1.50 (colored)
Move callout initialization to a single location; no need to duplicate that code all over the place.
Revision 1.50 / (download) - annotate - [select for diffs], Mon Sep 6 20:44:02 1999 UTC (24 years, 6 months ago) by sommerfeld
Branch: MAIN
CVS Tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
wrstuden-devbsize,
fvdl-softdep-base,
fvdl-softdep,
comdex-fall-1999-base,
comdex-fall-1999
Branch point for: thorpej_scsipi
Changes since 1.49: +5 -1
lines
Diff to previous 1.49 (colored)
If using kernel PLL (for NTP), initialize "fixtick" to a reasonable approximation of reality if the MD code doesn't. This variable is the equivalent of "tickfix" for the non-NTP path. This allows an alpha kernel (where hz=1024) with "options NTP" to synch up quite nicely (as opposed to having an frequency error of ~560ppm, which is outside the capture range of the PLL).
Revision 1.49 / (download) - annotate - [select for diffs], Thu Aug 5 18:08:15 1999 UTC (24 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.48: +2 -2
lines
Diff to previous 1.48 (colored)
Change the semantics of splsoftclock() to be like other spl*() functions, that is priority is rasied. Add a new spllowersoftclock() to provide the atomic drop-to-softclock semantics that the old splsoftclock() provided, and update calls accordingly. This fixes a problem with using the "rnd" pseudo-device from within interrupt context to extract random data (e.g. from within the softnet interrupt) where doing so would incorrectly unblock interrupts (causing all sorts of lossage). XXX 4 platforms do not have priority-raising capability: newsmips, sparc, XXX sparc64, and VAX. This platforms still have this bug until their XXX spl*() functions are fixed.
Revision 1.48 / (download) - annotate - [select for diffs], Tue May 4 16:16:54 1999 UTC (24 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.47: +7 -2
lines
Diff to previous 1.47 (colored)
Align struct timeval time to the same alignment requirements of a quad. This broke the sparc elf kernel which in microtime uses ldd to load both words at the same time. The a.out kernel, just got lucky.
Revision 1.47 / (download) - annotate - [select for diffs], Sun Feb 28 18:14:57 1999 UTC (25 years ago) by ross
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.46: +5 -5
lines
Diff to previous 1.46 (colored)
schedclk() -> schedclock(), for consistency with hardclock(), statclock(), ... update comments for recent scheduler mods
Revision 1.46 / (download) - annotate - [select for diffs], Tue Feb 23 17:41:48 1999 UTC (25 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.45: +38 -25
lines
Diff to previous 1.45 (colored)
While I'm on a fixed point kick, improve the NTP clock factor correction to give <.1% error in all (supported) cases. It doesn't cost us much.
Revision 1.45 / (download) - annotate - [select for diffs], Tue Feb 23 02:56:04 1999 UTC (25 years, 1 month ago) by ross
Branch: MAIN
Changes since 1.44: +11 -22
lines
Diff to previous 1.44 (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.44 / (download) - annotate - [select for diffs], Wed Apr 22 07:08:11 1998 UTC (25 years, 11 months ago) by jonathan
Branch: MAIN
CVS Tags: kenh-if-detach-base,
kenh-if-detach,
eeh-paddr_t-base,
eeh-paddr_t,
chs-ubc-base,
chs-ubc
Changes since 1.43: +3 -1
lines
Diff to previous 1.43 (colored)
defopt NTP and PPS_SYNC, in preparation for adding PPS support.
Revision 1.43 / (download) - annotate - [select for diffs], Sat Jan 31 10:42:11 1998 UTC (26 years, 1 month ago) by ross
Branch: MAIN
Changes since 1.42: +12 -1
lines
Diff to previous 1.42 (colored)
Teach the NTP PLL how to lock when hz == 1000.
Revision 1.42 / (download) - annotate - [select for diffs], Wed May 21 19:55:45 1997 UTC (26 years, 10 months ago) by gwr
Branch: MAIN
CVS Tags: thorpej-signal-base,
thorpej-signal,
netbsd-1-3-base,
netbsd-1-3-RELEASE,
netbsd-1-3-PATCH003-CANDIDATE2,
netbsd-1-3-PATCH003-CANDIDATE1,
netbsd-1-3-PATCH003-CANDIDATE0,
netbsd-1-3-PATCH003,
netbsd-1-3-PATCH002,
netbsd-1-3-PATCH001,
netbsd-1-3-BETA,
netbsd-1-3,
marc-pcmcia-bp,
marc-pcmcia-base,
marc-pcmcia,
bouyer-scsipi
Changes since 1.41: +1 -39
lines
Diff to previous 1.41 (colored)
Moved db_show_callout() to ddb/db_xxx.c
Revision 1.41 / (download) - annotate - [select for diffs], Mon May 5 19:25:26 1997 UTC (26 years, 10 months ago) by tls
Branch: MAIN
Changes since 1.40: +4 -1
lines
Diff to previous 1.40 (colored)
add case for 512Hz in NTP code
Revision 1.40 / (download) - annotate - [select for diffs], Fri Feb 28 04:45:35 1997 UTC (27 years ago) by mycroft
Branch: MAIN
CVS Tags: is-newarp-before-merge
Changes since 1.39: +2 -2
lines
Diff to previous 1.39 (colored)
Use splclock() to block time updates, not splhigh().
Revision 1.39 / (download) - annotate - [select for diffs], Wed Jan 15 04:59:39 1997 UTC (27 years, 2 months ago) by cgd
Branch: MAIN
CVS Tags: mrg-vm-swap,
is-newarp-base
Branch point for: is-newarp
Changes since 1.38: +5 -5
lines
Diff to previous 1.38 (colored)
apply patch from PR 2788 (from Dennis Ferguson <dennis@jnx.com>) to more smoothly apply "tickfix"es microsecond deltas (when compensating for clocks running at > 1000Hz).
Revision 1.38 / (download) - annotate - [select for diffs], Wed Jan 15 04:27:35 1997 UTC (27 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.37: +2 -2
lines
Diff to previous 1.37 (colored)
fix from PR 2787 (from Dennis Ferguson <dennis@jnx.com>): when adjtime is running (and NTP is not enabled), the adjtime()-handling code clobbers any tickfix that may be necessary for systems with clocks with frequency greater than 1000Hz.
Revision 1.37 / (download) - annotate - [select for diffs], Fri Nov 15 23:51:23 1996 UTC (27 years, 4 months ago) by cgd
Branch: MAIN
Branch point for: thorpej-setroot
Changes since 1.36: +3 -3
lines
Diff to previous 1.36 (colored)
clean up a few spaces vs. tabs bogons
Revision 1.36 / (download) - annotate - [select for diffs], Wed Jul 24 16:13:04 1996 UTC (27 years, 8 months ago) by abrown
Branch: MAIN
Changes since 1.35: +2 -2
lines
Diff to previous 1.35 (colored)
Fix unused variable warning for an "int i" left over from the old disk statistics code.
Revision 1.35 / (download) - annotate - [select for diffs], Fri Jul 12 22:00:46 1996 UTC (27 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.34: +1 -15
lines
Diff to previous 1.34 (colored)
Remove old-style disk instrumentation code.
Revision 1.34 / (download) - annotate - [select for diffs], Sun Jun 9 04:51:03 1996 UTC (27 years, 9 months ago) by briggs
Branch: MAIN
Changes since 1.33: +3 -2
lines
Diff to previous 1.33 (colored)
Do not declare tickfixcnt ifdef NTP.
Revision 1.33 / (download) - annotate - [select for diffs], Mon Apr 22 01:38:19 1996 UTC (27 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base
Branch point for: netbsd-1-2
Changes since 1.32: +1 -2
lines
Diff to previous 1.32 (colored)
remove include of <sys/cpu.h>
Revision 1.32 / (download) - annotate - [select for diffs], Sat Mar 30 22:23:18 1996 UTC (27 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.31: +2 -2
lines
Diff to previous 1.31 (colored)
Fix db_printf formats.
Revision 1.31 / (download) - annotate - [select for diffs], Fri Mar 15 07:56:00 1996 UTC (28 years ago) by mycroft
Branch: MAIN
Changes since 1.30: +63 -94
lines
Diff to previous 1.30 (colored)
Calculate the equivalent of `SHIFT_HZ' at run time, in initclocks().
Revision 1.30 / (download) - annotate - [select for diffs], Fri Mar 8 06:27:30 1996 UTC (28 years ago) by mycroft
Branch: MAIN
Changes since 1.29: +3 -9
lines
Diff to previous 1.29 (colored)
Move an assignment inside #ifdef NTP.
Revision 1.29 / (download) - annotate - [select for diffs], Thu Mar 7 14:31:18 1996 UTC (28 years ago) by christos
Branch: MAIN
Changes since 1.28: +5 -2
lines
Diff to previous 1.28 (colored)
- Make things compile cleanly after the NTP additions. - Remove unused variables in exec_ecoff.c
Revision 1.28 / (download) - annotate - [select for diffs], Thu Feb 29 02:48:53 1996 UTC (28 years ago) by jonathan
Branch: MAIN
Changes since 1.27: +15 -10
lines
Diff to previous 1.27 (colored)
Fix for PR kern/2140: a typo in the nested CPP if/else/endif caused SHIFT_HZ to be undefined for values of HZ other than 64.
Revision 1.27 / (download) - annotate - [select for diffs], Tue Feb 27 04:20:37 1996 UTC (28 years ago) by jonathan
Branch: MAIN
Changes since 1.26: +820 -2
lines
Diff to previous 1.26 (colored)
Add NTP kernel precision timekeeping from Dave Mill's xntp distribution and the "kernel.tar.Z" distribution on louie.udel.edu, which is older than xntp 3.4y or 3.5a, but contains newer kernel source fragments. This commit adds support for a new kernel configuration option, NTP. If NTP is selected, then the system clock should be run at "HZ", which must be defined at compile time to be one value from: 60, 64, 100, 128, 256, 512, 1024. Powers of 2 are ideal; 60 and 100 are supported but are marginally less accurate. If NTP is not configured, there should be no change in behavior relative to pre-NTP kernels. These changes have been tested extensively with xntpd 3.4y on a decstation; almost identical kernel mods work on an i386. No pulse-per-second (PPS) line discipline support is included, due to unavailability of hardware to test it. With this in-kernel PLL support for NetBSD, both xntp 3.4y and xntp 3.5a user-level code need minor changes. xntp's prototype for syscall() is correct for FreeBSD, but not for NetBSD.
Revision 1.26 / (download) - annotate - [select for diffs], Fri Feb 9 18:59:24 1996 UTC (28 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.25: +4 -3
lines
Diff to previous 1.25 (colored)
More proto fixes
Revision 1.25 / (download) - annotate - [select for diffs], Sun Feb 4 02:15:15 1996 UTC (28 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.24: +12 -2
lines
Diff to previous 1.24 (colored)
First pass at prototyping
Revision 1.24 / (download) - annotate - [select for diffs], Wed Jan 17 04:37:31 1996 UTC (28 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.23: +2 -2
lines
Diff to previous 1.23 (colored)
fix off-by-one error in tickfix code. (should increment when count >= interval, because count goes from 0->(interval-1) to count interval ticks.)
Revision 1.23 / (download) - annotate - [select for diffs], Thu Dec 28 19:16:41 1995 UTC (28 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.22: +3 -3
lines
Diff to previous 1.22 (colored)
Move the old-style disk instrumentation "structures" to a central location (sys/kern/subr_disk.c) and note that they should/will be deperecated.
Revision 1.22 / (download) - annotate - [select for diffs], Fri Mar 3 01:24:03 1995 UTC (29 years ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-1-base,
netbsd-1-1-RELEASE,
netbsd-1-1-PATCH001,
netbsd-1-1
Changes since 1.21: +33 -16
lines
Diff to previous 1.21 (colored)
add support for clocks with hz > 1000, and for cases where 1000000 / hz != int
Revision 1.21 / (download) - annotate - [select for diffs], Sun Oct 9 08:31:28 1994 UTC (29 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.20: +4 -2
lines
Diff to previous 1.20 (colored)
Clean up #includes.
Revision 1.20 / (download) - annotate - [select for diffs], Sun Sep 18 21:56:16 1994 UTC (29 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.19: +3 -2
lines
Diff to previous 1.19 (colored)
Add tickadj to clockinfo.
Revision 1.19 / (download) - annotate - [select for diffs], Wed Jun 29 06:32:19 1994 UTC (29 years, 8 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.18: +561 -1
lines
Diff to previous 1.18 (colored)
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
Revision 1.18 / (download) - annotate - [select for diffs], Sat May 7 00:42:11 1994 UTC (29 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.17: +1 -1
lines
Diff to previous 1.17 (colored)
clock info gathering
Revision 1.17 / (download) - annotate - [select for diffs], Thu May 5 05:38:05 1994 UTC (29 years, 10 months 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], Fri Apr 29 23:16:19 1994 UTC (29 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.15: +1 -1
lines
Diff to previous 1.15 (colored)
change timeout/untimeout/wakeup/sleep/tsleep args to void *
Revision 1.15 / (download) - annotate - [select for diffs], Wed Apr 27 10:47:51 1994 UTC (29 years, 10 months ago) by pk
Branch: MAIN
Changes since 1.14: +1 -1
lines
Diff to previous 1.14 (colored)
Routine to display callout table from DDB.
Revision 1.14 / (download) - annotate - [select for diffs], Mon Feb 7 07:33:49 1994 UTC (30 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.13: +1 -1
lines
Diff to previous 1.13 (colored)
kill support for 'dcfclk' ; shouldn't pollute tree for things not in NetBSD.
Revision 1.13 / (download) - annotate - [select for diffs], Tue Feb 1 01:50:38 1994 UTC (30 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.12: +1 -1
lines
Diff to previous 1.12 (colored)
pass around a `clockframe *' instead of a `clockframe'
Revision 1.12 / (download) - annotate - [select for diffs], Tue Jan 11 23:19:00 1994 UTC (30 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +1 -1
lines
Diff to previous 1.11 (colored)
Remove the evil #ifndef; we no longer need it.
Revision 1.11 / (download) - annotate - [select for diffs], Sat Dec 18 04:20:20 1993 UTC (30 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.10: +1 -1
lines
Diff to previous 1.10 (colored)
Canonicalize all #includes.
Revision 1.10 / (download) - annotate - [select for diffs], Fri Oct 29 19:49:25 1993 UTC (30 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.9: +1 -1
lines
Diff to previous 1.9 (colored)
kill the process 'space' accounting collection for the following reasons: (1) text calculation incorrect (would 'overbill') (2) data calculation incorrect (would 'overbill') (3) the maxrss calculation uses stuff which isn't present on the sparc. if 3/4 tests are questionable and/or broken, well...
Revision 1.9 / (download) - annotate - [select for diffs], Tue Oct 19 23:37:50 1993 UTC (30 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.8: +1 -1
lines
Diff to previous 1.8 (colored)
from Mark Tinguely, with mods by davidg and then fially fixed by cgd. do the space-used integration, over time, for processes.
Revision 1.8 / (download) - annotate - [select for diffs], Mon Aug 30 06:25:10 1993 UTC (30 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: magnum-base
Branch point for: magnum
Changes since 1.7: +1 -1
lines
Diff to previous 1.7 (colored)
blast it, i forgot two ('s
Revision 1.7 / (download) - annotate - [select for diffs], Sun Aug 29 13:16:04 1993 UTC (30 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +1 -1
lines
Diff to previous 1.6 (colored)
added two __P() macros
Revision 1.6 / (download) - annotate - [select for diffs], Sun Jun 27 06:05:32 1993 UTC (30 years, 8 months ago) by andrew
Branch: MAIN
CVS Tags: netbsd-0-9-patch-001,
netbsd-0-9-base,
netbsd-0-9-RELEASE,
netbsd-0-9-BETA,
netbsd-0-9-ALPHA2,
netbsd-0-9-ALPHA,
netbsd-0-9
Changes since 1.5: +1 -1
lines
Diff to previous 1.5 (colored)
* ansifications * cleaned up hardclock() to avoid checking "p" multiple times, and avoid a gcc2 possible-use-before-initialisation warning. * changed softclock() timeout callback functions to be of type timeout_t - a pointer to a void fn(int). No-one was using the second, tick, argument that was being passed to these callbacks - it is much cleaner to drop the thing entirely, rather than add a whole heap of casts of dubious correctness to calls to timeout(), etc. The old style is kept in an #ifdef, for future reference.
Revision 1.5 / (download) - annotate - [select for diffs], Tue Jun 15 01:28:29 1993 UTC (30 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.4: +1 -1
lines
Diff to previous 1.4 (colored)
include the (stupid and ugly) patch for the i386 interrupt stuff. it seems to help stability, when included.
Revision 1.4 / (download) - annotate - [select for diffs], Wed Jun 2 23:03:45 1993 UTC (30 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.3: +1 -1
lines
Diff to previous 1.3 (colored)
kill processes outright if they've exceeded their hard CPU limit.
Revision 1.3 / (download) - annotate - [select for diffs], Thu May 20 02:54:18 1993 UTC (30 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.2: +1 -1
lines
Diff to previous 1.2 (colored)
add $Id$ strings, and clean up file headers where necessary
Revision 1.2 / (download) - annotate - [select for diffs], Fri May 7 07:15:19 1993 UTC (30 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.1: +1 -1
lines
Diff to previous 1.1 (colored)
add dcfclock support from patchkit patch 113
Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: MAIN
Initial revision