summaryrefslogtreecommitdiffstats
path: root/sys/dev/hwpmc
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2014-10-10 12:02:34 +0000
committerbz <bz@FreeBSD.org>2014-10-10 12:02:34 +0000
commit42c3399b2980b49ef41a9d63a49dd6bda51e2e9c (patch)
tree49a2540fa37e762371f8ba86959c0aa438407388 /sys/dev/hwpmc
parent4347b3c38b4237555ff0fc5763cb47854bdf8d31 (diff)
downloadFreeBSD-src-42c3399b2980b49ef41a9d63a49dd6bda51e2e9c.zip
FreeBSD-src-42c3399b2980b49ef41a9d63a49dd6bda51e2e9c.tar.gz
MFC r272713:
Since introducing the extra mapping in r250103 (head) for architectural performance events we have actually counted 'Branch Instruction Retired' when people asked for 'Unhalted core cycles' using the 'unhalted-core-cycles' event mask mnemonic. Reviewed by: jimharris Discussed with: gnn, rwatson Sponsored by: DARPA/AFRL
Diffstat (limited to 'sys/dev/hwpmc')
-rw-r--r--sys/dev/hwpmc/hwpmc_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/hwpmc/hwpmc_core.c b/sys/dev/hwpmc/hwpmc_core.c
index c8cc4a3..f182450 100644
--- a/sys/dev/hwpmc/hwpmc_core.c
+++ b/sys/dev/hwpmc/hwpmc_core.c
@@ -1796,7 +1796,7 @@ iap_is_event_architectural(enum pmc_event pe, enum pmc_event *map)
switch (pe) {
case PMC_EV_IAP_ARCH_UNH_COR_CYC:
ae = CORE_AE_UNHALTED_CORE_CYCLES;
- *map = PMC_EV_IAP_EVENT_C4H_00H;
+ *map = PMC_EV_IAP_EVENT_3CH_00H;
break;
case PMC_EV_IAP_ARCH_INS_RET:
ae = CORE_AE_INSTRUCTION_RETIRED;
OpenPOWER on IntegriCloud