Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Dec 2005 13:16:22 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/tools/tools/umastat umastat.c
Message-ID:  <200512081316.jB8DGMXn085361@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512081316.jB8DGMXn085361>