Up to [cvs.NetBSD.org] / src / sys / kern
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.50 / (download) - annotate - [select for diffs], Mon Apr 22 13:22:25 2013 UTC (3 weeks, 5 days ago) by yamt
Branch: MAIN
CVS Tags: khorben-n900,
HEAD
Changes since 1.49: +57 -14
lines
Diff to previous 1.49 (colored)
- make debug size check more strict - add comments about debug features
Revision 1.49 / (download) - annotate - [select for diffs], Mon Apr 22 13:13:20 2013 UTC (3 weeks, 5 days ago) by yamt
Branch: MAIN
Changes since 1.48: +3 -3
lines
Diff to previous 1.48 (colored)
whitespace
Revision 1.48 / (download) - annotate - [select for diffs], Sun Apr 21 02:44:15 2013 UTC (4 weeks ago) by uebayasi
Branch: MAIN
Changes since 1.47: +5 -5
lines
Diff to previous 1.47 (colored)
Whitespace.
Revision 1.47 / (download) - annotate - [select for diffs], Tue Apr 16 21:13:38 2013 UTC (4 weeks, 4 days ago) by para
Branch: MAIN
Changes since 1.46: +5 -3
lines
Diff to previous 1.46 (colored)
addresses PR/47512 properly return NULL for failed allocations not 0x8 with size checks enabled.
Revision 1.46 / (download) - annotate - [select for diffs], Sat Jul 21 11:45:04 2012 UTC (9 months, 4 weeks ago) by para
Branch: MAIN
CVS Tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
tls-maxphys-nbase,
tls-maxphys-base,
tls-maxphys,
agc-symver-base,
agc-symver
Changes since 1.45: +93 -40
lines
Diff to previous 1.45 (colored)
split allocation lookup table to decrease overall memory used making allocator more flexible for allocations larger then 4kb move the encoded "size" under DEBUG back to the begining of allocated chunk no objections on tech-kern@
Revision 1.45 / (download) - annotate - [select for diffs], Sun Apr 15 19:07:40 2012 UTC (13 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base5,
yamt-pagecache-base4,
jmcneill-usbmp-base9,
jmcneill-usbmp-base10
Changes since 1.44: +3 -3
lines
Diff to previous 1.44 (colored)
We don't support KMEM_GUARD nor FREECHECK yet with rump, so disable them in debug builds of the rump kernel.
Revision 1.44 / (download) - annotate - [select for diffs], Fri Apr 13 06:27:02 2012 UTC (13 months ago) by mrg
Branch: MAIN
Changes since 1.43: +6 -3
lines
Diff to previous 1.43 (colored)
allow kmem_guard_depth to be set in the config file.
Revision 1.43 / (download) - annotate - [select for diffs], Sun Apr 1 17:02:46 2012 UTC (13 months, 2 weeks ago) by para
Branch: MAIN
CVS Tags: jmcneill-usbmp-base8
Changes since 1.42: +4 -4
lines
Diff to previous 1.42 (colored)
don't overallocated once we leave the caches
Revision 1.42 / (download) - annotate - [select for diffs], Sun Feb 5 03:40:08 2012 UTC (15 months, 1 week ago) by rmind
Branch: MAIN
CVS Tags: netbsd-6-base,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.41: +5 -7
lines
Diff to previous 1.41 (colored)
- Make KMGUARD interrupt-safe.
- kmem_intr_{alloc,free}: remove workaround.
Changes affect KMGUARD-enabled debug kernels only.
Revision 1.41 / (download) - annotate - [select for diffs], Mon Jan 30 21:05:40 2012 UTC (15 months, 2 weeks ago) by rmind
Branch: MAIN
Changes since 1.40: +6 -4
lines
Diff to previous 1.40 (colored)
Fix for KMEM_GUARD; do not use it from interrupt context.
Revision 1.40 / (download) - annotate - [select for diffs], Sat Jan 28 23:09:06 2012 UTC (15 months, 2 weeks ago) by rmind
Branch: MAIN
Changes since 1.39: +42 -53
lines
Diff to previous 1.39 (colored)
- Instead of kmem_cache_max, calculate max index and avoid a shift.
- Use __read_mostly and __cacheline_aligned.
- Make kmem_{intr_alloc,free} public.
- Misc.
Revision 1.39 / (download) - annotate - [select for diffs], Fri Jan 27 19:48:40 2012 UTC (15 months, 3 weeks ago) by para
Branch: MAIN
Changes since 1.38: +201 -214
lines
Diff to previous 1.38 (colored)
extending vmem(9) to be able to allocated resources for it's own needs. simplifying uvm_map handling (no special kernel entries anymore no relocking) make malloc(9) a thin wrapper around kmem(9) (with private interface for interrupt safety reasons) releng@ acknowledged
Revision 1.38 / (download) - annotate - [select for diffs], Sun Nov 20 22:58:31 2011 UTC (17 months, 4 weeks ago) by christos
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.37: +11 -13
lines
Diff to previous 1.37 (colored)
simplify, no need for va_copy here. Add KASSERT.
Revision 1.37 / (download) - annotate - [select for diffs], Sun Nov 20 21:27:26 2011 UTC (17 months, 4 weeks ago) by apb
Branch: MAIN
Changes since 1.36: +6 -4
lines
Diff to previous 1.36 (colored)
Use va_copy to avoid undefined behaviour in handling the va_list arg.
Revision 1.36 / (download) - annotate - [select for diffs], Fri Sep 2 22:25:08 2011 UTC (20 months, 2 weeks ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: yamt-pagecache
Changes since 1.35: +26 -17
lines
Diff to previous 1.35 (colored)
Report vmem(9) errors out-of-band so that we can use vmem(9) to manage ranges that include the least and the greatest vmem_addr_t. Update vmem(9) uses throughout the kernel. Slightly expand on the tests in subr_vmem.c, which still pass. I've been running a kernel with this patch without any trouble.
Revision 1.35 / (download) - annotate - [select for diffs], Sun Jul 17 20:54:52 2011 UTC (22 months ago) by joerg
Branch: MAIN
Changes since 1.34: +2 -4
lines
Diff to previous 1.34 (colored)
Retire varargs.h support. Move machine/stdarg.h logic into MI sys/stdarg.h and expect compiler to provide proper builtins, defaulting to the GCC interface. lint still has a special fallback. Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and derive va_list as required by standards.
Revision 1.34 / (download) - annotate - [select for diffs], Thu Feb 17 18:55:31 2011 UTC (2 years, 3 months ago) by matt
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase,
rmind-uvmplock-base,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase
Changes since 1.33: +3 -3
lines
Diff to previous 1.33 (colored)
Init kmem_guard_depth to 0 so it will be placed in .data so it can be patched with gdb.
Revision 1.33 / (download) - annotate - [select for diffs], Thu Feb 11 23:13:46 2010 UTC (3 years, 3 months ago) by haad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9,
yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
uebayasi-xip-base1,
matt-mips64-premerge-20101231,
jruoho-x86intr-base,
bouyer-quota2-base
Branch point for: rmind-uvmplock,
jruoho-x86intr,
bouyer-quota2
Changes since 1.32: +29 -2
lines
Diff to previous 1.32 (colored)
Add kmem_asprintf rotuine which allocates string accordingly to format string from kmem pool. Allocated string is string length + 1 char for ending zero. Ok: ad@.
Revision 1.32 / (download) - annotate - [select for diffs], Sun Jan 31 11:54:32 2010 UTC (3 years, 3 months ago) by skrll
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.31: +5 -7
lines
Diff to previous 1.31 (colored)
1 CTASSERT(foo) is enough for anyone.
Revision 1.31 / (download) - annotate - [select for diffs], Mon Jan 4 16:01:42 2010 UTC (3 years, 4 months ago) by uebayasi
Branch: MAIN
Changes since 1.30: +6 -6
lines
Diff to previous 1.30 (colored)
Use CTASSERT() for constant only assertions.
Revision 1.30 / (download) - annotate - [select for diffs], Mon Oct 12 23:36:02 2009 UTC (3 years, 7 months ago) by yamt
Branch: MAIN
CVS Tags: matt-premerge-20091211,
jym-xensuspend-nbase
Changes since 1.29: +5 -5
lines
Diff to previous 1.29 (colored)
constify
Revision 1.29 / (download) - annotate - [select for diffs], Mon Oct 12 23:35:09 2009 UTC (3 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.28: +5 -7
lines
Diff to previous 1.28 (colored)
fix KMEM_SIZE vs KMEM_GUARD
Revision 1.28 / (download) - annotate - [select for diffs], Wed Jun 3 22:54:51 2009 UTC (3 years, 11 months ago) by jnemeth
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
jymxensuspend-base
Changes since 1.27: +3 -2
lines
Diff to previous 1.27 (colored)
add KASSERT(p != NULL); to kmem_free()
Revision 1.27 / (download) - annotate - [select for diffs], Sun Mar 29 10:51:53 2009 UTC (4 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base,
jym-xensuspend-base
Changes since 1.26: +30 -4
lines
Diff to previous 1.26 (colored)
kernel memory guard for DEBUG kernels, proposed on tech-kern. See kmem_alloc(9) for details.
Revision 1.26 / (download) - annotate - [select for diffs], Wed Feb 18 13:04:59 2009 UTC (4 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Changes since 1.25: +3 -3
lines
Diff to previous 1.25 (colored)
use %zu for size_t
Revision 1.25 / (download) - annotate - [select for diffs], Tue Feb 17 21:54:30 2009 UTC (4 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.24: +3 -3
lines
Diff to previous 1.24 (colored)
Fix min/max confusion that causes a problem with DEBUG on some architectures. Independently spotted by yamt@. /brick ad
Revision 1.24 / (download) - annotate - [select for diffs], Fri Feb 6 22:58:49 2009 UTC (4 years, 3 months ago) by enami
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.23: +4 -3
lines
Diff to previous 1.23 (colored)
Use same expression to decide to use pool cache or not in both kmem_alloc/free.
Revision 1.23 / (download) - annotate - [select for diffs], Sun Feb 1 18:51:07 2009 UTC (4 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.22: +165 -9
lines
Diff to previous 1.22 (colored)
Apply kmem patch posted to tech-kern. - Add another level of caches, for max quantum cache size -> PAGE_SIZE. - Add debug code to verify that kmem_free() is given the correct size.
Revision 1.22 / (download) - annotate - [select for diffs], Mon Dec 15 11:42:34 2008 UTC (4 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: mjf-devfs2-base
Changes since 1.21: +10 -11
lines
Diff to previous 1.21 (colored)
Back VMEM_ADDR_NULL change. It's too invasive.
Revision 1.21 / (download) - annotate - [select for diffs], Mon Dec 15 11:33:13 2008 UTC (4 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.20: +9 -9
lines
Diff to previous 1.20 (colored)
Check for VMEM_ADDR_NULL, not NULL.
Revision 1.20 / (download) - annotate - [select for diffs], Mon Dec 15 11:29:49 2008 UTC (4 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.19: +4 -3
lines
Diff to previous 1.19 (colored)
Define VMEM_ADDR_NULL as UINTPTR_MAX, otherwise a vmem that can allocate a block starting at zero will not work. XXX pool_cache uses NULL to signify failed allocation. XXX how did the percpu allocator work before?
Revision 1.19 / (download) - annotate - [select for diffs], Sat Feb 9 12:56:20 2008 UTC (5 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-pf42-base,
yamt-pf42,
yamt-nfs-mp-base2,
yamt-nfs-mp-base,
yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
wrstuden-revivesa,
simonb-wapbl-nbase,
simonb-wapbl-base,
simonb-wapbl,
nick-net80211-sync-base,
nick-net80211-sync,
netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
mjf-devfs2,
mjf-devfs-base,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-nbase,
hpcarm-cleanup-base,
haad-nbase2,
haad-dm-base2,
haad-dm-base1,
haad-dm-base,
haad-dm,
ad-socklock-base1,
ad-audiomp2-base,
ad-audiomp2
Branch point for: yamt-nfs-mp,
nick-hppapmap,
matt-nb5-mips64
Changes since 1.18: +21 -8
lines
Diff to previous 1.18 (colored)
if DEBUG, over-allocate 1 byte to detect overrun.
Revision 1.18 / (download) - annotate - [select for diffs], Fri Dec 28 13:49:25 2007 UTC (5 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: matt-armv6-base,
bouyer-xeni386-nbase,
bouyer-xeni386-base
Changes since 1.17: +4 -3
lines
Diff to previous 1.17 (colored)
sprinkle more kmem_poison_check.
Revision 1.17 / (download) - annotate - [select for diffs], Wed Nov 7 00:23:23 2007 UTC (5 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
vmlocking2-base3,
vmlocking2-base2,
vmlocking2-base1,
vmlocking2,
vmlocking-nbase,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
jmcneill-pm-base,
cube-autoconf-base,
cube-autoconf,
bouyer-xenamd64-base2,
bouyer-xenamd64-base
Branch point for: yamt-kmem,
bouyer-xeni386
Changes since 1.16: +4 -2
lines
Diff to previous 1.16 (colored)
Merge from vmlocking: - pool_cache changes. - Debugger/procfs locking fixes. - Other minor changes.
Revision 1.16 / (download) - annotate - [select for diffs], Mon Jul 9 21:10:55 2007 UTC (5 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-x86pmap-base2,
yamt-x86pmap-base,
yamt-x86pmap,
vmlocking-base,
nick-csl-alignment-base5,
nick-csl-alignment-base,
nick-csl-alignment,
mjf-ufs-trans-base,
matt-mips64-base,
matt-mips64,
jmcneill-base,
hpcarm-cleanup
Branch point for: mjf-devfs,
matt-armv6,
jmcneill-pm,
bouyer-xenamd64
Changes since 1.15: +3 -3
lines
Diff to previous 1.15 (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.15 / (download) - annotate - [select for diffs], Mon Mar 26 22:52:44 2007 UTC (6 years, 1 month ago) by hubertf
Branch: MAIN
CVS Tags: yamt-idlelwp-base8,
thorpej-atomic-base,
thorpej-atomic
Changes since 1.14: +2 -4
lines
Diff to previous 1.14 (colored)
Remove duplicate #include's From: Slava Semushin <php-coder@altlinux.ru>
Revision 1.14 / (download) - annotate - [select for diffs], Fri Mar 2 12:30:53 2007 UTC (6 years, 2 months ago) by yamt
Branch: MAIN
Branch point for: vmlocking,
reinoud-bufcleanup,
mjf-ufs-trans
Changes since 1.13: +5 -3
lines
Diff to previous 1.13 (colored)
kmem_backend_alloc: fix a null dereference.
Revision 1.13 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:31 2007 UTC (6 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge,
ad-audiomp-base,
ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.12: +6 -2
lines
Diff to previous 1.12 (colored)
Merge newlock2 to head.
Revision 1.12 / (download) - annotate - [select for diffs], Mon Feb 5 11:53:46 2007 UTC (6 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: newlock2-nbase,
newlock2-base
Changes since 1.11: +5 -3
lines
Diff to previous 1.11 (colored)
kmem_alloc: fix a null dereference reported by Chuck Silvers.
Revision 1.11 / (download) - annotate - [select for diffs], Wed Nov 1 10:17:58 2006 UTC (6 years, 6 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
netbsd-4-base
Branch point for: yamt-lazymbuf,
netbsd-4
Changes since 1.10: +6 -7
lines
Diff to previous 1.10 (colored)
remove some __unused from function parameters.
Revision 1.10 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:18 2006 UTC (6 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.9: +7 -6
lines
Diff to previous 1.9 (colored)
- sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
Revision 1.9 / (download) - annotate - [select for diffs], Mon Aug 28 13:41:04 2006 UTC (6 years, 8 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9,
yamt-pdpolicy-base8,
rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl,
rpaulo-netinet-merge-pcb,
newlock2
Changes since 1.8: +2 -3
lines
Diff to previous 1.8 (colored)
don't include sys/lock.h as it is no longer necessary.
Revision 1.8 / (download) - annotate - [select for diffs], Mon Aug 21 09:06:06 2006 UTC (6 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.7: +3 -2
lines
Diff to previous 1.7 (colored)
Add <sys/lock.h> include for <sys/callback.h>
Revision 1.7 / (download) - annotate - [select for diffs], Sun Aug 20 13:08:11 2006 UTC (6 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.6: +9 -9
lines
Diff to previous 1.6 (colored)
move kmem_kva_reclaim_callback out of #ifdef DEBUG. fixes compilation problem in the case of !DEBUG. pointed by Kurt Schreiner.
Revision 1.6 / (download) - annotate - [select for diffs], Sun Aug 20 09:45:59 2006 UTC (6 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.5: +17 -0
lines
Diff to previous 1.5 (colored)
implement kva reclamation for kmem_alloc quantum cache.
Revision 1.5 / (download) - annotate - [select for diffs], Sun Aug 20 09:44:06 2006 UTC (6 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.4: +2 -1
lines
Diff to previous 1.4 (colored)
kmem_init: use vmem quantum cache. XXX needs tune.
Revision 1.4 / (download) - annotate - [select for diffs], Sat Jul 8 06:01:53 2006 UTC (6 years, 10 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Branch point for: gdamore-uart
Changes since 1.3: +71 -2
lines
Diff to previous 1.3 (colored)
add DEBUG code to detect modifications on free memory.
Revision 1.3 / (download) - annotate - [select for diffs], Mon Jul 3 09:18:35 2006 UTC (6 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.2: +3 -3
lines
Diff to previous 1.2 (colored)
change KMEM_QUANTUM_SIZE from sizeof(void *) to (ALIGNBYTES + 1). the latter is larger on eg. sparc. noted by Christos Zoulas. http://mail-index.NetBSD.org/port-sparc/2006/07/02/0001.html
Revision 1.2 / (download) - annotate - [select for diffs], Sun Jun 25 08:10:04 2006 UTC (6 years, 10 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6
Branch point for: yamt-pdpolicy
Changes since 1.1: +20 -2
lines
Diff to previous 1.1 (colored)
implement kmem_zalloc.
Revision 1.1 / (download) - annotate - [select for diffs], Sun Jun 25 08:00:01 2006 UTC (6 years, 10 months ago) by yamt
Branch: MAIN
1. implement solaris-like vmem. (still primitive, though) 2. implement solaris-like kmem_alloc/free api, using #1. (note: this implementation is backed by kernel_map, thus can't be used from interrupt context.)