<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/scripts/kvm/kvm_stat, branch spice_video_codecs</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/scripts/kvm/kvm_stat?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/scripts/kvm/kvm_stat?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2016-05-29T07:11:10+00:00</updated>
<entry>
<title>kvm_stat: Remove</title>
<updated>2016-05-29T07:11:10+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2016-05-24T08:54:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=60b412dd18362bd4ddc44ba7022aacb6af074b5d'/>
<id>urn:sha1:60b412dd18362bd4ddc44ba7022aacb6af074b5d</id>
<content type='text'>
The source has moved to the Linux kernel tree.

Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/kvm/kvm_stat: Fix missing right parantheses and ".format(...)"</title>
<updated>2016-02-22T17:40:22+00:00</updated>
<author>
<name>Fam Zheng</name>
</author>
<published>2016-02-19T02:20:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=cf7ea1e60c4280bc037d8eee8cdbba67dfbc7825'/>
<id>urn:sha1:cf7ea1e60c4280bc037d8eee8cdbba67dfbc7825</id>
<content type='text'>
They seem to have snuck in when applying Janosch Frank
&lt;frankja@linux.vnet.ibm.com&gt;'s previous patch.

Signed-off-by: Fam Zheng &lt;famz@redhat.com&gt;
Message-Id: &lt;1455848416-13177-1-git-send-email-famz@redhat.com&gt;
Reviewed-by: Janosch Frank &lt;frankja@linux.vnet.ibm.com&gt;
Tested-by: Janosch Frank &lt;frankja@linux.vnet.ibm.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/kvm/kvm_stat: Fix tracefs access checking</title>
<updated>2016-02-09T14:45:26+00:00</updated>
<author>
<name>Janosch Frank</name>
</author>
<published>2016-02-03T07:41:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=e3dd68df5287e544a41f77a162a02d08fbcb95ba'/>
<id>urn:sha1:e3dd68df5287e544a41f77a162a02d08fbcb95ba</id>
<content type='text'>
On kernels build without CONFIG_TRACING kvm_stat will bail out even
when traces are not used. This is not very helpful, especially if the
user can't install a new kernel. Instead, we should warn the user and
fall back to debugfs statistics.

These changes check if trace statistics were selected without kernel
support, warn with a small timeout, set the debugfs statistics option
to True and the tracefs one to False.

Fixes: 7aa4ee5 ('scripts/kvm/kvm_stat: Improve debugfs access checking')
Signed-off-by: Janosch Frank &lt;frankja@linux.vnet.ibm.com&gt;
Message-Id: &lt;1454485291-43849-2-git-send-email-frankja@linux.vnet.ibm.com&gt;
[Exit if -t is passed explicitly. - Paolo]
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/kvm/kvm_stat: Add optparse description</title>
<updated>2016-01-26T14:58:13+00:00</updated>
<author>
<name>Janosch Frank</name>
</author>
<published>2016-01-11T15:18:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=a013bd2f7b88c831241b3ad6d5635e9d13a7e3fc'/>
<id>urn:sha1:a013bd2f7b88c831241b3ad6d5635e9d13a7e3fc</id>
<content type='text'>
Added a description text that explains what the script does and which
requirements have to be met to let it run.

The help formatter class is needed as the default optparse formatter
makes the text unreadable.

Signed-off-by: Janosch Frank &lt;frankja@linux.vnet.ibm.com&gt;
Message-Id: &lt;1452525484-32309-35-git-send-email-frankja@linux.vnet.ibm.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/kvm/kvm_stat: Add interactive filtering</title>
<updated>2016-01-26T14:58:13+00:00</updated>
<author>
<name>Janosch Frank</name>
</author>
<published>2016-01-11T15:18:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=7f786a9a06cc100b1261b120c7698083a802d46c'/>
<id>urn:sha1:7f786a9a06cc100b1261b120c7698083a802d46c</id>
<content type='text'>
Interactively changing the filter is much more useful than the
drilldown, because it is more versatile.

With this patch, the filter can be changed by pressing 'f' in the text
ui and entering a new filter regex.

Signed-off-by: Janosch Frank &lt;frankja@linux.vnet.ibm.com&gt;
Message-Id: &lt;1452525484-32309-34-git-send-email-frankja@linux.vnet.ibm.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/kvm/kvm_stat: Fixup filtering</title>
<updated>2016-01-26T14:58:13+00:00</updated>
<author>
<name>Janosch Frank</name>
</author>
<published>2016-01-11T15:18:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=126b33e6191cd21ba7e05673eb1428b73bf2d34e'/>
<id>urn:sha1:126b33e6191cd21ba7e05673eb1428b73bf2d34e</id>
<content type='text'>
When filtering, the group leader event should not be disabled, as all
other events under it will also be disabled. Also we should make sure
that values from disabled fields will not be displayed.

This also filters the fields from the log and batch output for better
readability.

Also the drilldown update now directly checks for the stats' field
filter and (un)sets drilldown accordingly.

Signed-off-by: Janosch Frank &lt;frankja@linux.vnet.ibm.com&gt;
Message-Id: &lt;1452525484-32309-33-git-send-email-frankja@linux.vnet.ibm.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/kvm/kvm_stat: Fix rlimit for unprivileged users</title>
<updated>2016-01-26T14:58:13+00:00</updated>
<author>
<name>Janosch Frank</name>
</author>
<published>2016-01-11T15:18:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=1cd55f9dc7debdad0d54f4fad8617527433b4c4b'/>
<id>urn:sha1:1cd55f9dc7debdad0d54f4fad8617527433b4c4b</id>
<content type='text'>
Setting the hard limit as a unprivileged user either returns an error
when it is higher than the current one or irreversibly sets it lower.

Therefore we leave the hardlimit untouched as long as we don't need to
raise it as this needs CAP_SYS_RESOURCE.

This gives admins the possibility to run the script as an unprivileged
user to increase security.

Signed-off-by: Janosch Frank &lt;frankja@linux.vnet.ibm.com&gt;
Message-Id: &lt;1452525484-32309-32-git-send-email-frankja@linux.vnet.ibm.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/kvm/kvm_stat: Read event values as u64</title>
<updated>2016-01-26T14:58:13+00:00</updated>
<author>
<name>Janosch Frank</name>
</author>
<published>2016-01-11T15:18:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=d8e44802f8ae320a454644fb010ef06f3ac8fb06'/>
<id>urn:sha1:d8e44802f8ae320a454644fb010ef06f3ac8fb06</id>
<content type='text'>
The struct read_format, which denotes the returned values on a read
states that the values are u64 and not long long which is used for
struct unpacking.

Therefore the 'q' long long formatter was exchanged with 'Q' which is
the format for u64 data.

Signed-off-by: Janosch Frank &lt;frankja@linux.vnet.ibm.com&gt;
Message-Id: &lt;1452525484-32309-31-git-send-email-frankja@linux.vnet.ibm.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/kvm/kvm_stat: Cleanup and pre-init perf_event_attr</title>
<updated>2016-01-26T14:58:13+00:00</updated>
<author>
<name>Janosch Frank</name>
</author>
<published>2016-01-11T15:17:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=00842aaca5265a57b0a1f0248bde2f77f986e352'/>
<id>urn:sha1:00842aaca5265a57b0a1f0248bde2f77f986e352</id>
<content type='text'>
All initializations of the ctypes struct that don't need additional
information were moved to its init method. The unneeded
initializations for sample_type and sample_period were removed as they
do not affect the counters that are read.

This improves readability of the setup_event_attribute by halfing its
LOC.

Signed-off-by: Janosch Frank &lt;frankja@linux.vnet.ibm.com&gt;
Message-Id: &lt;1452525484-32309-30-git-send-email-frankja@linux.vnet.ibm.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/kvm/kvm_stat: Fix output formatting</title>
<updated>2016-01-26T14:58:13+00:00</updated>
<author>
<name>Janosch Frank</name>
</author>
<published>2016-01-11T15:17:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=c887d9a25e877afe135e94fe582d5c58a2fd4ee2'/>
<id>urn:sha1:c887d9a25e877afe135e94fe582d5c58a2fd4ee2</id>
<content type='text'>
The key names in log mode were capped to 10 characters which is not
enough for distinguishing between keys. Capping was therefore removed.

In batch mode the spacing between keys and values was too narrow and
therefore had to be extended to 42.

Signed-off-by: Janosch Frank &lt;frankja@linux.vnet.ibm.com&gt;
Message-Id: &lt;1452525484-32309-29-git-send-email-frankja@linux.vnet.ibm.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
</feed>
