summaryrefslogtreecommitdiffstats
path: root/lib/libkvm/kvm_cptime.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix missing includes of <string.h>, to silence some compiler warnings.ed2009-06-141-0/+1
| | | | Submitted by: Pawel Worach
* Add a new routine kvm_getcptime(3) for fetching the equivalent ofjhb2008-08-191-0/+132
'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
OpenPOWER on IntegriCloud