cvs commit: src/sys/kern kern_malloc.c src/sys/sys malloc.h src/sys/vm memguard.c memguard.h

Ed Maste emaste at FreeBSD.org
Wed Aug 6 19:47:47 UTC 2008


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


More information about the cvs-src mailing list