From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chen Cao Subject: [PATCH] KVM test: Add perfmon into the guest tests Date: Tue, 25 May 2010 11:05:21 +0800 Message-ID: <20100525030521.24717.39758.stgit@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: lmr@redhat.com, autotest@test.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:12697 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757164Ab0EYDFp (ORCPT ); Mon, 24 May 2010 23:05:45 -0400 Sender: kvm-owner@vger.kernel.org List-ID: perfmon2 API provides access to the hardware performance counters of modern processors. Dependency, To compile the source code of the test, the following packages should be installed, glibc-static-2.11.1-6.x86_64 glibc-headers-2.11.1-6.x86_64 glibc-common-2.11.1-6.x86_64 glibc-devel-2.11.1-6.x86_64 glibc-2.11.1-6.x86_64 Note, 1. libpfm uses the Performance Monitor Unit (PMU) on the processors, but this unit is not provided by kvm currently, i.e. the test should fail in kvm guests. 2. According to the README file of perfmon-tests-0.3, 2.6.24 or higer Linux kernel (with perfmon v2.8 or higher) is needed to run the tests. Signed-off-by: Chen Cao --- client/tests/kvm/autotest_control/perfmon.control | 16 ++++++++++++++++ client/tests/kvm/tests_base.cfg.sample | 2 ++ 2 files changed, 18 insertions(+), 0 deletions(-) create mode 100644 client/tests/kvm/autotest_control/perfmon.control diff --git a/client/tests/kvm/autotest_control/perfmon.control b/client/tests/kvm/autotest_control/perfmon.control new file mode 100644 index 0000000..d3f5190 --- /dev/null +++ b/client/tests/kvm/autotest_control/perfmon.control @@ -0,0 +1,16 @@ +TIME="SHORT" +AUTHOR = "Stephane Eranian " +DOC = """ +This is a simple series of test for the perfmon2 API which +provides access to the hardware performance counters of modern +processors. + +Information about perfmon2 at: +http://perfmon2.sf.net +""" +NAME = 'perfmon' +TEST_CLASS = 'kernel' +TEST_CATEGORY = 'Functional' +TEST_TYPE = 'client' + +job.run_test('perfmon') diff --git a/client/tests/kvm/tests_base.cfg.sample b/client/tests/kvm/tests_base.cfg.sample index be96dc1..adf4c02 100644 --- a/client/tests/kvm/tests_base.cfg.sample +++ b/client/tests/kvm/tests_base.cfg.sample @@ -151,6 +151,8 @@ variants: test_control_file = scrashme.control - hwclock: test_control_file = hwclock.control + - perfmon: + test_control_file = perfmon.control - linux_s3: install setup unattended_install type = linux_s3