Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jul 2011 21:15:47 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/contrib/top display.c top.c src/usr.bin/top machine.c
Message-ID:  <201107182116.p6ILGLMr002924@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

jhb         2011-07-18 21:15:47 UTC

  FreeBSD src repository

  Modified files:
    contrib/top          display.c top.c 
    usr.bin/top          machine.c 
  Log:
  SVN rev 224205 on 2011-07-18 21:15:47Z by jhb
  
  Rework the dynamic per-CPU stats code a bit.  Always set 'statics->ncpus'
  to the maximum number of CPUs to ensure that lcpustates[] array is always
  allocated to the maximum size.  Previously, if top was started without
  per-CPU stats it would allocate a smaller lcpustates[] array.  When
  per-CPU stats were then enabled, it would overflow the array and trash
  the cpustates_columns[] array causing the CPU stats to be printed in the
  wrong locations.
  
  Approved by:    re (kib)
  MFC after:      1 week
  
  Revision  Changes    Path
  1.17      +14 -2     src/contrib/top/display.c
  1.31      +1 -1      src/contrib/top/top.c
  1.103     +3 -5      src/usr.bin/top/machine.c



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