aboutsummaryrefslogtreecommitdiff
path: root/lib/libpmc/libpmc.c
diff options
context:
space:
mode:
authorJoseph Koshy <jkoshy@FreeBSD.org>2008-09-17 03:53:37 +0000
committerJoseph Koshy <jkoshy@FreeBSD.org>2008-09-17 03:53:37 +0000
commit0b9b757d457e6d2e0996ee8bee6808bc514fa2ae (patch)
tree58074a302ac246f5af832cee6469a1ead9cd2480 /lib/libpmc/libpmc.c
parent3daba5a642f052a6ff9cca35ecddf67b3bc0b519 (diff)
downloadsrc-0b9b757d457e6d2e0996ee8bee6808bc514fa2ae.tar.gz
src-0b9b757d457e6d2e0996ee8bee6808bc514fa2ae.zip
Add event name aliases for Pentium PMCs.
Notes
Notes: svn path=/head/; revision=183105
Diffstat (limited to 'lib/libpmc/libpmc.c')
-rw-r--r--lib/libpmc/libpmc.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libpmc/libpmc.c b/lib/libpmc/libpmc.c
index 48f104ed2c66..cdde38618d27 100644
--- a/lib/libpmc/libpmc.c
+++ b/lib/libpmc/libpmc.c
@@ -1291,7 +1291,14 @@ p4_allocate_pmc(enum pmc_event pe, char *ctrspec,
*/
static struct pmc_event_alias p5_aliases[] = {
- EV_ALIAS("cycles", "tsc"),
+ EV_ALIAS("branches", "p5-taken-branches"),
+ EV_ALIAS("cycles", "tsc"),
+ EV_ALIAS("dc-misses", "p5-data-read-miss-or-write-miss"),
+ EV_ALIAS("ic-misses", "p5-code-cache-miss"),
+ EV_ALIAS("instructions", "p5-instructions-executed"),
+ EV_ALIAS("interrupts", "p5-hardware-interrupts"),
+ EV_ALIAS("unhalted-cycles",
+ "p5-number-of-cycles-not-in-halt-state"),
EV_ALIAS(NULL, NULL)
};