[libvirt-perl PATCH] Add perf cache_l1d event

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: John Ferlan <jferlan@xxxxxxxxxx>
---
 Daniel - feel free to add to the pile of changes you posted if it's easier.

 Changes                | 1 +
 Virt.xs                | 1 +
 lib/Sys/Virt/Domain.pm | 6 ++++++
 3 files changed, 8 insertions(+)

diff --git a/Changes b/Changes
index 672b566..2a13f8f 100644
--- a/Changes
+++ b/Changes
@@ -10,6 +10,7 @@ Revision history for perl module Sys::Virt
  - Add PERF_PARAM_STALLED_CYCLES_BACKEND constant
  - Add PERF_PARAM_REF_CPU_CYCLES constant
  - Add virStorageVolGetInfoFlags & associated constants
+ - Add PERF_PARAM_CACHE_L1D constant
 
 2.5.0 2016-12-05
 
diff --git a/Virt.xs b/Virt.xs
index 1eb94a8..8fbbc4a 100644
--- a/Virt.xs
+++ b/Virt.xs
@@ -8313,6 +8313,7 @@ BOOT:
       REGISTER_CONSTANT_STR(VIR_PERF_PARAM_STALLED_CYCLES_FRONTEND, PERF_PARAM_STALLED_CYCLES_FRONTEND);
       REGISTER_CONSTANT_STR(VIR_PERF_PARAM_STALLED_CYCLES_BACKEND, PERF_PARAM_STALLED_CYCLES_BACKEND);
       REGISTER_CONSTANT_STR(VIR_PERF_PARAM_REF_CPU_CYCLES, PERF_PARAM_REF_CPU_CYCLES);
+      REGISTER_CONSTANT_STR(VIR_PERF_PARAM_CACHE_L1D, PERF_PARAM_CACHE_L1D);
 
       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 bd59139..2133a30 100644
--- a/lib/Sys/Virt/Domain.pm
+++ b/lib/Sys/Virt/Domain.pm
@@ -2809,6 +2809,12 @@ frequency scaling by applications running on the platform.
 It corresponds to the "perf.ref_cpu_cycles" field in the
 *Stats APIs.
 
+=item Sys::Virt::Domain::PERF_PARAM_CACHE_L1D
+The cache_l1d perf event counter which can be used to
+measure the count of total level 1 data cache by applications
+running on the platform.  It corresponds to the "perf.cache_l1d"
+field in the *Stats APIs.
+
 =back
 
 =head2 VCPU FLAGS
-- 
2.7.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux