diff options
author | neel <neel@FreeBSD.org> | 2013-05-10 02:59:49 +0000 |
---|---|---|
committer | neel <neel@FreeBSD.org> | 2013-05-10 02:59:49 +0000 |
commit | c5e619b651d1ca95e1c461c940ab382e1b3a019e (patch) | |
tree | abf6447962d8096447a14aa6d940742871e6d79d /sys/contrib | |
parent | 4cfb7cf5acee479be43a8536626786afcc254dbe (diff) | |
download | FreeBSD-src-c5e619b651d1ca95e1c461c940ab382e1b3a019e.zip FreeBSD-src-c5e619b651d1ca95e1c461c940ab382e1b3a019e.tar.gz |
Support array-type of stats in bhyve.
An array-type stat in vmm.ko is defined as follows:
VMM_STAT_ARRAY(IPIS_SENT, VM_MAXCPU, "ipis sent to vcpu");
It is incremented as follows:
vmm_stat_array_incr(vm, vcpuid, IPIS_SENT, array_index, 1);
And output of 'bhyvectl --get-stats' looks like:
ipis sent to vcpu[0] 3114
ipis sent to vcpu[1] 0
Reviewed by: grehan
Obtained from: NetApp
Diffstat (limited to 'sys/contrib')
0 files changed, 0 insertions, 0 deletions