kvm_stat Package

kvm_stat Module

kvm_stat prints statistics generated by the kvm module. It depends on debugfs. If no debugfs is mounted, the profiler will try to mount it so it’s possible to proceed.

copyright:Red Hat 2010
author:Lucas Meneghel Rodrigues (lmr@redhat.com)
class autotest.client.profilers.kvm_stat.kvm_stat.kvm_stat(job)[source]

Bases: autotest.client.profiler.profiler

kvm_stat based profiler. Consists on executing kvm_stat -l during a given test execution, redirecting its output to a file on the profile dir.

initialize(**dargs)[source]

Gets path of kvm_stat and verifies if debugfs needs to be mounted.

report(test)[source]

Report function. Does nothing as there’s no postprocesing needed.

Parameters:test – Autotest test on which this profiler will operate on.
start(test)[source]

Starts kvm_stat subprocess.

Parameters:test – Autotest test on which this profiler will operate on.
stop(test)[source]

Stops profiler execution by sending a SIGTERM to kvm_stat process.

Parameters:test – Autotest test on which this profiler will operate on.
version = 1