summaryrefslogtreecommitdiffstats
path: root/sys/dev/hwpmc
diff options
context:
space:
mode:
authorrstone <rstone@FreeBSD.org>2015-03-10 01:23:40 +0000
committerrstone <rstone@FreeBSD.org>2015-03-10 01:23:40 +0000
commita7784cdcb919fa5281fb8119c27a99fbc2952458 (patch)
tree2fc93a86ac5fac0c62ae009d63fc67fadb97b3c5 /sys/dev/hwpmc
parenta99b2259692000d71de87c723bd0954782c215f4 (diff)
downloadFreeBSD-src-a7784cdcb919fa5281fb8119c27a99fbc2952458.zip
FreeBSD-src-a7784cdcb919fa5281fb8119c27a99fbc2952458.tar.gz
Fix pmc unit restrictions to match documentation
A couple of pmc counters did not work because there were being restricted to the wrong PMC unit. I've verified that these counters now work and match the documented restrictions. Differential Revision: https://reviews.freebsd.org/D1586 MFC after: 1 month Sponsored by: Sandvine Inc
Diffstat (limited to 'sys/dev/hwpmc')
-rw-r--r--sys/dev/hwpmc/hwpmc_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/hwpmc/hwpmc_core.c b/sys/dev/hwpmc/hwpmc_core.c
index 6c24142..8d01e2d 100644
--- a/sys/dev/hwpmc/hwpmc_core.c
+++ b/sys/dev/hwpmc/hwpmc_core.c
@@ -1965,15 +1965,15 @@ iap_event_sb_sbx_ib_ibx_ok_on_counter(enum pmc_event pe, int ri)
break;
/* Events valid only on counter 1. */
case PMC_EV_IAP_EVENT_C0H_01H:
- mask = 0x1;
+ mask = 0x2;
break;
/* Events valid only on counter 2. */
case PMC_EV_IAP_EVENT_48H_01H:
case PMC_EV_IAP_EVENT_A2H_02H:
+ case PMC_EV_IAP_EVENT_A3H_08H:
mask = 0x4;
break;
/* Events valid only on counter 3. */
- case PMC_EV_IAP_EVENT_A3H_08H:
case PMC_EV_IAP_EVENT_BBH_01H:
case PMC_EV_IAP_EVENT_CDH_01H:
case PMC_EV_IAP_EVENT_CDH_02H:
OpenPOWER on IntegriCloud