Received: from eggs.gnu.org ([2001:4830:134:3::10]:58105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQs4w-00013l-E7 for qemu-devel@nongnu.org; Wed, 03 Feb 2016 02:42:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQs4t-0008GM-6K for qemu-devel@nongnu.org; Wed, 03 Feb 2016 02:42:18 -0500 Received: from e06smtp10.uk.ibm.com ([195.75.94.106]:49867) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQs4s-0008G7-ST for qemu-devel@nongnu.org; Wed, 03 Feb 2016 02:42:15 -0500 Received: from localhost by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 3 Feb 2016 07:42:12 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 4FB83219005C for ; Wed, 3 Feb 2016 07:41:55 +0000 (GMT) Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u137g8dn9109890 for ; Wed, 3 Feb 2016 07:42:08 GMT Received: from d06av01.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u137g7oP007240 for ; Wed, 3 Feb 2016 00:42:08 -0700 From: Janosch Frank Date: Wed, 3 Feb 2016 08:41:30 +0100 Message-Id: <1454485291-43849-1-git-send-email-frankja@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH] scripts/kvm/kvm_stat: Fix tracefs access checking List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: frankja@linux.vnet.ibm.com, borntraeger@de.ibm.com, pbonzini@redhat.com 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 annoy users with longer delays and the message is still visible after closing kvm_stat. Janosch Frank (1): scripts/kvm/kvm_stat: Fix tracefs access checking scripts/kvm/kvm_stat | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) -- 2.3.0