Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 May 2012 16:23:37 +0000 (UTC)
From:      "George V. Neville-Neil" <gnn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r234930 - head/sys/dev/hwpmc
Message-ID:  <201205021623.q42GNbGe093082@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gnn
Date: Wed May  2 16:23:36 2012
New Revision: 234930
URL: http://svn.freebsd.org/changeset/base/234930

Log:
  Fix so that ,usr and ,os work correctly with fixed function (IAF)
  counters.
  
  MFC after:	1 week

Modified:
  head/sys/dev/hwpmc/hwpmc_core.c

Modified: head/sys/dev/hwpmc/hwpmc_core.c
==============================================================================
--- head/sys/dev/hwpmc/hwpmc_core.c	Wed May  2 15:15:28 2012	(r234929)
+++ head/sys/dev/hwpmc/hwpmc_core.c	Wed May  2 16:23:36 2012	(r234930)
@@ -52,7 +52,8 @@ __FBSDID("$FreeBSD$");
 #define	CORE_CPUID_EDX			0x3
 
 #define	IAF_PMC_CAPS			\
-	(PMC_CAP_READ | PMC_CAP_WRITE | PMC_CAP_INTERRUPT)
+	(PMC_CAP_READ | PMC_CAP_WRITE | PMC_CAP_INTERRUPT | \
+	 PMC_CAP_USER | PMC_CAP_SYSTEM)
 #define	IAF_RI_TO_MSR(RI)		((RI) + (1 << 30))
 
 #define	IAP_PMC_CAPS (PMC_CAP_INTERRUPT | PMC_CAP_USER | PMC_CAP_SYSTEM | \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205021623.q42GNbGe093082>