summaryrefslogtreecommitdiffstats
path: root/usr.sbin/iostat
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2008-08-19 21:30:36 +0000
committerjhb <jhb@FreeBSD.org>2008-08-19 21:30:36 +0000
commit67b02c52de29cfb44eea11a7c46f7bf5de57bf36 (patch)
tree46a6b9c4299efa74349c2c72fe125414690cb591 /usr.sbin/iostat
parent10e058a3a20b6ed4f8c0fe21dbadb75ad69ff6b7 (diff)
downloadFreeBSD-src-67b02c52de29cfb44eea11a7c46f7bf5de57bf36.zip
FreeBSD-src-67b02c52de29cfb44eea11a7c46f7bf5de57bf36.tar.gz
Add a new routine kvm_getcptime(3) for fetching the equivalent of
'kern.cp_time'. For a live kernel it uses the sysctl. For a crashdump, it first checks to see if the kernel has a 'cp_time' global symbol. If it does, it uses that. If that doesn't work, when it uses the recently added kvm_getmaxcpu(3) and kvm_getpcpu(3) routines to walk all the CPUs and sum up their counters. MFC after: 1 week
Diffstat (limited to 'usr.sbin/iostat')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud