From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51716) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YE2fb-0001Mn-UT for qemu-devel@nongnu.org; Wed, 21 Jan 2015 16:18:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YE2fV-0002Vo-QR for qemu-devel@nongnu.org; Wed, 21 Jan 2015 16:18:35 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YE2fV-0002Vf-Ip for qemu-devel@nongnu.org; Wed, 21 Jan 2015 16:18:29 -0500 From: Wei Huang Date: Wed, 21 Jan 2015 16:15:29 -0500 Message-Id: <1421874931-4143-2-git-send-email-wei@redhat.com> In-Reply-To: <1421874931-4143-1-git-send-email-wei@redhat.com> References: <1421874931-4143-1-git-send-email-wei@redhat.com> Subject: [Qemu-devel] [PATCH 1/3] kvm_stat: Add aarch64 support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, pbonzini@redhat.com This patch enables aarch64 support for kvm_stat. The platform detection is based on OS uname. Signed-off-by: Wei Huang --- scripts/kvm/kvm_stat | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/kvm/kvm_stat b/scripts/kvm/kvm_stat index 7b1437c..470ca08 100755 --- a/scripts/kvm/kvm_stat +++ b/scripts/kvm/kvm_stat @@ -204,10 +204,18 @@ def ppc_init(): } }) +def aarch64_init(): + globals().update({ + 'sc_perf_evt_open' : 241 + }) + def detect_platform(): if os.uname()[4].startswith('ppc'): ppc_init() return + elif os.uname()[4].startswith('aarch64'): + aarch64_init() + return for line in file('/proc/cpuinfo').readlines(): if line.startswith('flags'): -- 1.8.3.1