Fix so that ,usr and ,os work correctly with fixed function (IAF)

counters.

MFC after:	1 week
This commit is contained in:
George V. Neville-Neil 2012-05-02 16:23:36 +00:00
parent 4c95ae1b74
commit 03963ef8d1

View File

@ -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 | \