Author: jkoshy
Date: Wed Dec  3 15:23:08 2008
New Revision: 185582
URL: http://svn.freebsd.org/changeset/base/185582

Log:
  Add aliases that map architectural event names to fixed function counters.

Modified:
  head/sys/dev/hwpmc/pmc_events.h

Modified: head/sys/dev/hwpmc/pmc_events.h
==============================================================================
--- head/sys/dev/hwpmc/pmc_events.h     Wed Dec  3 15:10:31 2008        
(r185581)
+++ head/sys/dev/hwpmc/pmc_events.h     Wed Dec  3 15:23:08 2008        
(r185582)
@@ -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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to