Blame SOURCES/0001-virt-top-1.0.4-processcsv-documentation.patch

59834e
From c3b7c8d964ec0306e5ef7996ee606494e0349d62 Mon Sep 17 00:00:00 2001
59834e
From: "Richard W.M. Jones" <rjones@redhat.com>
59834e
Date: Tue, 29 Nov 2022 08:13:30 +0000
59834e
Subject: [PATCH 01/23] virt-top-1.0.4-processcsv-documentation
59834e
59834e
---
59834e
 virt-top/virt-top.pod | 16 ++++++++++++++++
59834e
 1 file changed, 16 insertions(+)
59834e
59834e
diff --git a/virt-top/virt-top.pod b/virt-top/virt-top.pod
59834e
index 4d81608..7b5e0e4 100755
59834e
--- a/virt-top/virt-top.pod
59834e
+++ b/virt-top/virt-top.pod
59834e
@@ -129,6 +129,22 @@ I<output.csv.00>, I<output.csv.01> etc.
fbac9f
 
fbac9f
  virt-top --csv >(split -d -l 1000 - output.csv.)
fbac9f
 
fbac9f
+RHEL provides a short Python script called C<processcsv.py> which
fbac9f
+can be used to post-process the CSV output.  Run it like this:
fbac9f
+
fbac9f
+ virt-top --csv data.csv
fbac9f
+ processcsv.py < data.csv
fbac9f
+
fbac9f
+This creates or I<overwrites> the following files in the current
fbac9f
+directory:
fbac9f
+
fbac9f
+ global.csv
fbac9f
+ domain<NNN>.csv
fbac9f
+
fbac9f
+C<global.csv> will contain the global data.  One
fbac9f
+C<domainE<lt>NNNE<gt>.csv> file will also be created for each domain
fbac9f
+with ID C<NNN>, containing the per-domain data.
fbac9f
+
fbac9f
 =item B<--no-csv-cpu>
fbac9f
 
fbac9f
 Disable domain CPU stats in CSV output.
59834e
-- 
59834e
2.31.1
59834e