|
|
18fc82 |
From 1997c1aff6e32fd54153636f57acfc8f95d95112 Mon Sep 17 00:00:00 2001
|
|
|
18fc82 |
From: "Daniel P. Berrange" <berrange@redhat.com>
|
|
|
18fc82 |
Date: Thu, 25 Sep 2014 15:50:56 +0100
|
|
|
18fc82 |
Subject: [PATCH] Add more VIR_DOMAIN_STATS_* constants
|
|
|
18fc82 |
|
|
|
18fc82 |
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
|
18fc82 |
(cherry picked from commit 268808b3ab5dc032f51ada4a099cc21edc8daef3)
|
|
|
18fc82 |
---
|
|
|
18fc82 |
Virt.xs | 5 +++++
|
|
|
18fc82 |
lib/Sys/Virt/Domain.pm | 20 ++++++++++++++++++++
|
|
|
18fc82 |
2 files changed, 25 insertions(+)
|
|
|
18fc82 |
|
|
|
18fc82 |
diff --git a/Virt.xs b/Virt.xs
|
|
|
18fc82 |
index 894f9c3..2f973a6 100644
|
|
|
18fc82 |
--- a/Virt.xs
|
|
|
18fc82 |
+++ b/Virt.xs
|
|
|
18fc82 |
@@ -7188,7 +7188,12 @@ BOOT:
|
|
|
18fc82 |
REGISTER_CONSTANT(VIR_KEYCODE_SET_WIN32, KEYCODE_SET_WIN32);
|
|
|
18fc82 |
REGISTER_CONSTANT(VIR_KEYCODE_SET_RFB, KEYCODE_SET_RFB);
|
|
|
18fc82 |
|
|
|
18fc82 |
+ REGISTER_CONSTANT(VIR_DOMAIN_STATS_BALLOON, STATS_BALLOON);
|
|
|
18fc82 |
+ REGISTER_CONSTANT(VIR_DOMAIN_STATS_BLOCK, STATS_BLOCK);
|
|
|
18fc82 |
+ REGISTER_CONSTANT(VIR_DOMAIN_STATS_CPU_TOTAL, STATS_CPU_TOTAL);
|
|
|
18fc82 |
+ REGISTER_CONSTANT(VIR_DOMAIN_STATS_INTERFACE, STATS_INTERFACE);
|
|
|
18fc82 |
REGISTER_CONSTANT(VIR_DOMAIN_STATS_STATE, STATS_STATE);
|
|
|
18fc82 |
+ REGISTER_CONSTANT(VIR_DOMAIN_STATS_VCPU, STATS_VCPU);
|
|
|
18fc82 |
|
|
|
18fc82 |
REGISTER_CONSTANT(VIR_CONNECT_GET_ALL_DOMAINS_STATS_ACTIVE, GET_ALL_STATS_ACTIVE);
|
|
|
18fc82 |
REGISTER_CONSTANT(VIR_CONNECT_GET_ALL_DOMAINS_STATS_INACTIVE, GET_ALL_STATS_INACTIVE);
|
|
|
18fc82 |
diff --git a/lib/Sys/Virt/Domain.pm b/lib/Sys/Virt/Domain.pm
|
|
|
18fc82 |
index 17101e6..21f8c15 100644
|
|
|
18fc82 |
--- a/lib/Sys/Virt/Domain.pm
|
|
|
18fc82 |
+++ b/lib/Sys/Virt/Domain.pm
|
|
|
18fc82 |
@@ -3267,10 +3267,30 @@ are returned for stats queries.
|
|
|
18fc82 |
|
|
|
18fc82 |
=over
|
|
|
18fc82 |
|
|
|
18fc82 |
+=item Sys::Virt::Domain::STATS_BALLOON
|
|
|
18fc82 |
+
|
|
|
18fc82 |
+Balloon statistics
|
|
|
18fc82 |
+
|
|
|
18fc82 |
+=item Sys::Virt::Domain::STATS_BLOCK
|
|
|
18fc82 |
+
|
|
|
18fc82 |
+Block device info
|
|
|
18fc82 |
+
|
|
|
18fc82 |
+=item Sys::Virt::Domain::STATS_CPU_TOTAL
|
|
|
18fc82 |
+
|
|
|
18fc82 |
+CPU usage info
|
|
|
18fc82 |
+
|
|
|
18fc82 |
+=item Sys::Virt::Domain::STATS_INTERFACE
|
|
|
18fc82 |
+
|
|
|
18fc82 |
+Network interface info
|
|
|
18fc82 |
+
|
|
|
18fc82 |
=item Sys::Virt::Domain::STATS_STATE
|
|
|
18fc82 |
|
|
|
18fc82 |
General lifecycle state
|
|
|
18fc82 |
|
|
|
18fc82 |
+=item Sys::Virt::Domain::STATS_VCPU
|
|
|
18fc82 |
+
|
|
|
18fc82 |
+Virtual CPU info
|
|
|
18fc82 |
+
|
|
|
18fc82 |
=back
|
|
|
18fc82 |
|
|
|
18fc82 |
=head2 PROCESS SIGNALS
|