From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chen Cao Subject: Re: [PATCH] KVM test: Add perfmon into the guest tests Date: Thu, 27 May 2010 17:53:29 +0800 Message-ID: <20100527095328.GA4427@t4.rh> References: <20100525030521.24717.39758.stgit@localhost.localdomain> <4BFE2891.3070804@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: lmr@redhat.com, autotest@test.kernel.org, kvm@vger.kernel.org To: Jes Sorensen Return-path: Received: from mx1.redhat.com ([209.132.183.28]:27306 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757599Ab0E0Jxc (ORCPT ); Thu, 27 May 2010 05:53:32 -0400 Content-Disposition: inline In-Reply-To: <4BFE2891.3070804@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, May 27, 2010 at 10:08:49AM +0200, Jes Sorensen wrote: > On 05/25/10 05:05, Chen Cao wrote: > > 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. > > I thought perfmon2 was deprecated in favor of perf_event.c ? The only > reference left for perfmon2 in the kernel is in the ia64 tree, and > KVM/ia64 seems to be pretty dead these days. > Jes, Thank you for reminding. I have not noticed your mail this afternoon and resent the patches for the perfmon test, it seems that i may have made a mistake. by the way, could you tell me how to verify that "perfmon2 was deprecated in favor of perf_event.c", except looking into the kernel code? Regards, Cao, Chen 2010/05/27