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

看板DFBSD_commit作者時間14年前 (2011/05/17 07:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 3242c748ea74256b58d8ef0f7a7783b8473847c3 Author: Sepherosa Ziehau <sephe@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
文章代碼(AID): #1DqRG9UQ (DFBSD_commit)