cvs commit: src/tools/tools/umastat umastat.c

Robert Watson rwatson at FreeBSD.org
Thu Dec 8 05:16:35 PST 2005


rwatson     2005-12-08 13:16:22 UTC

  FreeBSD src repository

  Modified files:
    tools/tools/umastat  umastat.c 
  Log:
  Teach umastat about the variable-length array of per-CPU caches at the end
  of struct uma_zone.  It is declared as an array of size [1], but then
  sized at run-time by UMA to include room for mp_maxid+1 CPUs.  We have to
  copy the uma_zone first at the declared structure size, then check to make
  sure it's not an internal zone before copying the larger size (UMA
  internal zones don't use per-CPU caches).  This fixes umastat for SMP.
  
  Revision  Changes    Path
  1.2       +74 -23    src/tools/tools/umastat/umastat.c


More information about the cvs-src mailing list