summaryrefslogtreecommitdiffstats
path: root/lib/libkvm/kvm_pcpu.c
Commit message (Collapse)AuthorAgeFilesLines
* A first cut at teaching libkvm how to deal with dynamic per-CPU storagerwatson2010-03-011-0/+140
| | | | | | | | | | | | | | | | | (DPCPU): A new API, kvm_dpcpu_setcpu(3), selects the active CPU for the purposes of DPCPU. Calls to kvm_nlist(3) will automatically translate DPCPU symbols and return a pointer to the current CPU's version of the data. Consumers needing to read the same symbol on several CPUs will invoke a series of setcpu/nlist calls, one per CPU of interest. This addition makes it possible for tools like netstat(1) to query the values of DPCPU variables during crashdump analysis, and is based on similar code handling virtualized global variables. MFC after: 1 week Sponsored by: Juniper Networks, Inc.
* Add two new routines to libkvm for working with per-CPU data:jhb2008-08-191-0/+152
kvm_getmaxcpu() and kvm_getpcpu(). MFC after: 1 week
OpenPOWER on IntegriCloud