git: intrcnt: Fix long standing interrupt name/count array mismatch

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Sun Apr 10 04:32:40 PDT 2011


commit 3242c748ea74256b58d8ef0f7a7783b8473847c3
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Sun Apr 10 19:18:17 2011 +0800

    intrcnt: Fix long standing interrupt name/count array mismatch
    
    hw.intrnames always returns all interrupts' name, while hw.intrcnt
    only returns count of interrupts that get installed.  This
    mismatching cause utilities like vmstat(8) to report wrong interrupt
    counts.
    
    Keep the old symantic of hw.intrcnt and add hw.intrcnt_all, which
    returns count of all interrupts.  Let vmstat(8) and systat(1) use
    hw.intrcnt_all.

Summary of changes:
 sys/kern/kern_intr.c    |   21 +++++++++++++++++++++
 usr.bin/systat/vmstat.c |    2 +-
 usr.bin/vmstat/vmstat.c |    2 +-
 3 files changed, 23 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3242c748ea74256b58d8ef0f7a7783b8473847c3


-- 
DragonFly BSD source repository





More information about the Commits mailing list