cvs commit: src/usr.bin/vmstat vmstat.c

Dag-Erling Smorgrav des at FreeBSD.org
Wed Dec 10 14:11:52 PST 2003


des         2003/12/10 14:11:51 PST

  FreeBSD src repository

  Modified files:
    usr.bin/vmstat       vmstat.c 
  Log:
  Fix a couple of issues in the interrupt code:
  
   - Replace overly-complicated (and buggy) -a logic with a much simpler
     version: -a causes all interrupts to be displayed, otherwise only
     those that have occurred are displayed.  This removes the need for
     any MD code.
  
   - Instead of just making sure intrcnt is large enough, figure out the
     exact size it needs to be.  We derive nintr from this number, and we
     don't want to risk printing garbage.  Note that on sparc64, we end up
     printing garbage anyway because the names of non-existent interrupts
     are left uninitialized by the kernel.
  
  Tested on:      alpha, i386, sparc64
  
  Revision  Changes    Path
  1.74      +13 -21    src/usr.bin/vmstat/vmstat.c


More information about the cvs-src mailing list