Date: Wed, 6 Aug 2008 19:44:40 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_malloc.c src/sys/sys malloc.h src/sys/vm memguard.c memguard.h Message-ID: <200808061947.m76JllxO086209@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
emaste 2008-08-06 19:44:40 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/kern kern_malloc.c sys/sys malloc.h sys/vm memguard.c memguard.h Log: SVN rev 181350 on 2008-08-06 19:44:40Z by emaste MFC r153880: Improve memguard a bit: - Provide tunable vm.memguard.desc, so one can specify memory type without changing the code and recompiling the kernel. - Allow to use memguard for kernel modules by providing sysctl vm.memguard.desc, which can be changed to short description of memory type before module is loaded. - Move as much memguard code as possible to memguard.c. - Add sysctl node vm.memguard. and move memguard-specific sysctl there. - Add malloc_desc2type() function for finding memory type based on its short description (ks_shortdesc field). - Memory type can be changed (via vm.memguard.desc sysctl) only if it doesn't exist (will be loaded later) or when no memory is allocated yet. If there is allocated memory for the given memory type, return EBUSY. - Implement two ways of memory types comparsion and make safer/slower the default. Revision Changes Path 1.142.2.9 +17 -13 src/sys/kern/kern_malloc.c 1.80.2.2 +2 -0 src/sys/sys/malloc.h 1.5.2.1 +90 -0 src/sys/vm/memguard.c 1.2.2.1 +3 -0 src/sys/vm/memguard.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808061947.m76JllxO086209>