Re: [Qemu-devel] [PATCH] scripts/kvm/kvm_stat: Fix tracefs access checking

2016-02-02 Thread Paolo Bonzini
On 03/02/2016 08:41, Janosch Frank wrote: > The following patch fixes the access checking behavior changed in > 7aa4ee5. Kvm_stat will now fall back to debugfs statistics if the > tracefs ones were chosen but are not available. It will then print a > warning and wait five seconds until it continu

[Qemu-devel] [PATCH] scripts/kvm/kvm_stat: Fix tracefs access checking

2016-02-02 Thread Janosch Frank
The following patch fixes the access checking behavior changed in 7aa4ee5. Kvm_stat will now fall back to debugfs statistics if the tracefs ones were chosen but are not available. It will then print a warning and wait five seconds until it continues. Five seconds are not long, but I do not want to

[Qemu-devel] [PATCH] scripts/kvm/kvm_stat: Fix tracefs access checking

2016-02-02 Thread Janosch Frank
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 wit