From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: [PATCH kvm-unit-test] make PMU test to pass on more cpu types Date: Thu, 29 Mar 2012 10:53:36 +0200 Message-ID: <20120329085336.GP22368@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: avi@redhat.com To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:61497 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752716Ab2C2Ixh (ORCPT ); Thu, 29 Mar 2012 04:53:37 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q2T8rbpe026511 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 29 Mar 2012 04:53:37 -0400 Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: Expand boundaries of some tests since it was observed that on some cpus results do not fit. Signed-off-by: Gleb Natapov diff --git a/x86/pmu.c b/x86/pmu.c index e1b8279..2c46f31 100644 --- a/x86/pmu.c +++ b/x86/pmu.c @@ -80,8 +80,8 @@ struct pmu_event { } gp_events[] = { {"core cycles", 0x003c, 1*N, 50*N}, {"instructions", 0x00c0, 10*N, 10.2*N}, - {"ref cycles", 0x013c, 1*N, 30*N}, - {"llc refference", 0x4f2e, 1, 1*N}, + {"ref cycles", 0x013c, 0.1*N, 30*N}, + {"llc refference", 0x4f2e, 1, 2*N}, {"llc misses", 0x412e, 1, 1*N}, {"branches", 0x00c4, 1*N, 1.1*N}, {"branch misses", 0x00c5, 0, 0.1*N}, -- Gleb.