From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCJjp-0004iE-7D for qemu-devel@nongnu.org; Thu, 01 Dec 2016 00:16:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCJjl-0000Ip-3j for qemu-devel@nongnu.org; Thu, 01 Dec 2016 00:16:53 -0500 Received: from mx1.redhat.com ([209.132.183.28]:52514) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cCJjk-0000IZ-UJ for qemu-devel@nongnu.org; Thu, 01 Dec 2016 00:16:49 -0500 From: Wei Huang Date: Wed, 30 Nov 2016 23:16:38 -0600 Message-Id: <1480569402-8848-1-git-send-email-wei@redhat.com> Subject: [Qemu-devel] [kvm-unit-tests PATCH v13 0/4] ARM PMU tests List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: cov@codeaurora.org Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, shannon.zhao@linaro.org, alistair.francis@xilinx.com, croberts@codeaurora.org, alindsay@codeaurora.org, drjones@redhat.com, andre.przywara@arm.com Changes from v12: * Define macros for system register accessors * Re-write PMU code using the newly-defined macros * Code tested under both AArch32 and AArch64 modes Note: 1) Current KVM code has bugs in handling PMCCFILTR write. A fix (see below) is required for this unit testing code to work correctly under KVM mode. https://lists.cs.columbia.edu/pipermail/kvmarm/2016-November/022134.html. Thanks, -Wei Christopher Covington (3): arm: Add PMU test arm: pmu: Check cycle count increases arm: pmu: Add CPI checking Wei Huang (1): arm: Define macros for accessing system registers arm/Makefile.common | 3 +- arm/pmu.c | 277 ++++++++++++++++++++++++++++++++++++++++++++++ arm/unittests.cfg | 19 ++++ lib/arm/asm/processor.h | 37 ++++++- lib/arm64/asm/processor.h | 35 ++++-- 5 files changed, 358 insertions(+), 13 deletions(-) create mode 100644 arm/pmu.c -- 1.8.3.1