summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>2008-12-03 15:23:08 +0000
committerjkoshy <jkoshy@FreeBSD.org>2008-12-03 15:23:08 +0000
commit053f34b10a81d31d5c2fa818253f06f227ef0d2a (patch)
tree4be11e1647d6bd834d10ec6ba30271152ac9348b /sys
parent07e169420f52767b46c9d8aeca0d94d35b2fe7c4 (diff)
downloadFreeBSD-src-053f34b10a81d31d5c2fa818253f06f227ef0d2a.zip
FreeBSD-src-053f34b10a81d31d5c2fa818253f06f227ef0d2a.tar.gz
Add aliases that map architectural event names to fixed function counters.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/hwpmc/pmc_events.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/hwpmc/pmc_events.h b/sys/dev/hwpmc/pmc_events.h
index 10fcd9e..430d95d 100644
--- a/sys/dev/hwpmc/pmc_events.h
+++ b/sys/dev/hwpmc/pmc_events.h
@@ -426,6 +426,11 @@ __PMC_EV(IAF, CPU_CLK_UNHALTED_REF)
#define PMC_EV_IAF_FIRST PMC_EV_IAF_INSTR_RETIRED_ANY
#define PMC_EV_IAF_LAST PMC_EV_IAF_CPU_CLK_UNHALTED_REF
+#define __PMC_EV_ALIAS_IAF() \
+__PMC_EV_ALIAS("instruction-retired", IAF_INSTR_RETIRED_ANY) \
+__PMC_EV_ALIAS("unhalted-core-cycles", IAF_CPU_CLK_UNHALTED_CORE) \
+__PMC_EV_ALIAS("unhalted-reference-cycles", IAF_CPU_CLK_UNHALTED_REF)
+
/*
* Events supported by programmable function counters present in
* Intel Atom, Core and Core2 CPUs, from the "Intel 64 and IA-32
OpenPOWER on IntegriCloud