Date: Wed, 10 Dec 2003 14:11:51 -0800 (PST) From: Dag-Erling Smorgrav <des@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/vmstat vmstat.c Message-ID: <200312102211.hBAMBphh042031@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312102211.hBAMBphh042031>
