From c22dad33c2b5e8a93d540715604784032783734f Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Wed, 15 Jun 2016 16:31:19 +0200 Subject: [PATCH] docs: Add at least some docs and fix schema entry for perf events There was no documentation at all for the XML part. I added at least some. The 2.0.0 introduction date is deliberate as the parser for the XML is broken. The schema file was missing entries for 'mbml' and 'mbmt'. --- docs/formatdomain.html.in | 44 +++++++++++++++++++++++++++++++++++ docs/schemas/domaincommon.rng | 2 ++ 2 files changed, 46 insertions(+) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 7a42b8e005..7d3436304b 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -1822,6 +1822,50 @@ +

Performance monitoring events

+ +

+ Some platforms allow monitoring of performance of the virtual machine and + the code executed inside. To enable the performance monitoring events + you can either specify them in the perf element or enable + them via virDomainSetPerfEvents API. The performance values + are then retrieved using the virConnectGetAllDomainStats API. + Since 2.0.0 +

+ +
+  ...
+  <perf>
+    <event name='cmt' enabled='yes'/>
+    <event name='mbmt' enabled='no'/>
+    <event name='mbml' enabled='yes'/>
+  </perf>
+  ...
+
+ + + + + + + + + + + + + + + + + + + + + + +
event nameDescriptionstats parameter name
cmtusage of l3 cache in bytes by applications running on the platformperf.cmt
mbmttotal system bandwidth from one level of cacheperf.mbmt
mbmlbandwidth of memory traffic for a memory controllerperf.mbml
+

Devices

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 2e07505b1a..162c2e0164 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -412,6 +412,8 @@ cmt + mbmt + mbml -- GitLab