aboutsummaryrefslogtreecommitdiff
path: root/lib/libpmc
diff options
context:
space:
mode:
authorJoseph Koshy <jkoshy@FreeBSD.org>2006-02-25 05:34:00 +0000
committerJoseph Koshy <jkoshy@FreeBSD.org>2006-02-25 05:34:00 +0000
commit177a2f22458a07d5a03309be8b9aebc4d3a5b2f8 (patch)
treee8d95597fe3b909e4ecc8adf597b8d7a7305b5d8 /lib/libpmc
parent88e2c3356462f15fec2f4812364d1fd70a7cdebc (diff)
Notes
Diffstat (limited to 'lib/libpmc')
-rw-r--r--lib/libpmc/libpmc.c3
-rw-r--r--lib/libpmc/pmc.33
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/libpmc/libpmc.c b/lib/libpmc/libpmc.c
index 75a33a9f6aa7..49e07a9927e8 100644
--- a/lib/libpmc/libpmc.c
+++ b/lib/libpmc/libpmc.c
@@ -319,6 +319,7 @@ static struct pmc_event_alias k8_aliases[] = {
EV_ALIAS("ic-misses", "k8-ic-miss"),
EV_ALIAS("instructions", "k8-fr-retired-x86-instructions"),
EV_ALIAS("interrupts", "k8-fr-taken-hardware-interrupts"),
+ EV_ALIAS("unhalted-cycles", "k8-bu-cpu-clk-unhalted"),
EV_ALIAS(NULL, NULL)
};
@@ -682,6 +683,7 @@ static struct pmc_event_alias p4_aliases[] = {
EV_ALIAS("cycles", "tsc"),
EV_ALIAS("instructions",
"p4-instr-retired,mask=nbogusntag+nbogustag"),
+ EV_ALIAS("unhalted-cycles", "p4-global-power-events"),
EV_ALIAS(NULL, NULL)
};
@@ -1316,6 +1318,7 @@ static struct pmc_event_alias p6_aliases[] = {
EV_ALIAS("ic-misses", "p6-ifu-ifetch-miss"),
EV_ALIAS("instructions", "p6-inst-retired"),
EV_ALIAS("interrupts", "p6-hw-int-rx"),
+ EV_ALIAS("unhalted-cycles", "p6-cpu-clk-unhalted"),
EV_ALIAS(NULL, NULL)
};
diff --git a/lib/libpmc/pmc.3 b/lib/libpmc/pmc.3
index a2273f08ceb0..208131662c1c 100644
--- a/lib/libpmc/pmc.3
+++ b/lib/libpmc/pmc.3
@@ -454,6 +454,9 @@ Measure the number of instruction cache misses.
Measure the number of instructions retired.
.It Li interrupts
Measure the number of interrupts seen.
+.It Li unhalted-cycles
+Measure the number of cycles the processor is not in a halted
+or sleep state.
.El
.Ss Time Stamp Counter (TSC)
The timestamp counter is a monotonically non-decreasing counter that