cvs commit: src/lib/libmemstat libmemstat.3 memstat.c memstat.h memstat_all.c memstat_uma.c

Robert Watson rwatson at
Wed Nov 9 10:20:49 GMT 2005

rwatson     2005-11-09 10:20:48 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    lib/libmemstat       libmemstat.3 memstat.c memstat.h 
                         memstat_all.c memstat_uma.c 
  Merge libmemstat.3:1.7, memstat.c:1.7, memstat.h:1.8, memstat_all.c:1.2,
  memstat_uma.c:1.10 from HEAD to RELENG_6:
    Add memstat_kvm_uma(), an implementation of a libmemstat(3) query routine
    that knows how to extract UMA(9) allocator statistics from a core dump or
    live memory image using kvm(3).  The caller is expected to provide the
    necessary kvm_t handle, which is then used by libmemstat(3).
    With these changes, it is trivially straight forward to re-introduce
    vmstat -z support on core dumps, which was lost when UMA was introduced.
    In the short term, this requires including vm/ include files that are not
    intended for extra-kernel use, requiring in turn some ugliness.
  Merge memstat_uma.c:1.11 from HEAD to RELENG_6:
    Define LIBMEMSTAT so that vm_page.h won't perform a nested include of
    Remove definition of _KERNEL, it is no longer required in order to
    include uma_int.h, as the sensitive parts of uma_int.h (a number of
    inlines depending on kernel-only constants) are now protected by
  The use of LIBMEMSTAT here will be cleaned up in the future.
  Revision  Changes    Path   +7 -2      src/lib/libmemstat/libmemstat.3   +6 -0      src/lib/libmemstat/memstat.c   +9 -0      src/lib/libmemstat/memstat.h   +13 -0     src/lib/libmemstat/memstat_all.c   +205 -0    src/lib/libmemstat/memstat_uma.c

More information about the cvs-src mailing list