summaryrefslogtreecommitdiff
path: root/sys/dev/hwpmc
diff options
context:
space:
mode:
authorJoseph Koshy <jkoshy@FreeBSD.org>2008-12-03 15:23:08 +0000
committerJoseph Koshy <jkoshy@FreeBSD.org>2008-12-03 15:23:08 +0000
commita10c6ee6bd5b6080f1dedf661a6ba791970f7b05 (patch)
tree4be11e1647d6bd834d10ec6ba30271152ac9348b /sys/dev/hwpmc
parentae3096705cf6552347b8eaf82fb6ca5a4cb5b2f6 (diff)
Notes
Diffstat (limited to 'sys/dev/hwpmc')
-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 10fcd9e9f42e..430d95dd7164 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