Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx> --- Changes | 1 + Virt.xs | 2 ++ lib/Sys/Virt/Domain.pm | 12 ++++++++++++ 3 files changed, 15 insertions(+) diff --git a/Changes b/Changes index 45c49f2..8a94eb1 100644 --- a/Changes +++ b/Changes @@ -3,6 +3,7 @@ Revision history for perl module Sys::Virt 1.3.5 2016-00-00 - Add VIR_ERR_NO_CLIENT constant + - Add PERF_PARAM_MBML and PERF_PARAM_MBMT constants 1.3.4 2016-05-05 diff --git a/Virt.xs b/Virt.xs index d069abd..ef3b508 100644 --- a/Virt.xs +++ b/Virt.xs @@ -7967,6 +7967,8 @@ BOOT: REGISTER_CONSTANT(VIR_DOMAIN_NUMATUNE_MEM_INTERLEAVE, NUMATUNE_MEM_INTERLEAVE); REGISTER_CONSTANT_STR(VIR_PERF_PARAM_CMT, PERF_PARAM_CMT); + REGISTER_CONSTANT_STR(VIR_PERF_PARAM_MBML, PERF_PARAM_MBML); + REGISTER_CONSTANT_STR(VIR_PERF_PARAM_MBMT, PERF_PARAM_MBMT); REGISTER_CONSTANT_STR(VIR_DOMAIN_BANDWIDTH_IN_AVERAGE, BANDWIDTH_IN_AVERAGE); REGISTER_CONSTANT_STR(VIR_DOMAIN_BANDWIDTH_IN_PEAK, BANDWIDTH_IN_PEAK); diff --git a/lib/Sys/Virt/Domain.pm b/lib/Sys/Virt/Domain.pm index de80162..0a5e89f 100644 --- a/lib/Sys/Virt/Domain.pm +++ b/lib/Sys/Virt/Domain.pm @@ -2642,6 +2642,18 @@ which can be monitored for a guest The CMT event counter +=item Sys::Virt::Domain::PERF_PARAM_MBML + +The MBML event counter which can be used to monitor the amount of +data (bytes/s) sent through the memory controller on the socket. +It corresponds to the "perf.mbml" field in the *Stats APIs. + +=item Sys::Virt::Domain::PERF_PARAM_MBMT + +The MBMT event counter which can be used to monitor total system +bandwidth (bytes/s) from one level of cache to another. It +corresponds to the "perf.mbmt" field in the *Stats APIs. + =back =head2 VCPU FLAGS -- 2.8.3 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list