Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Dec 2008 15:23:08 +0000 (UTC)
From:      Joseph Koshy <jkoshy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r185582 - head/sys/dev/hwpmc
Message-ID:  <200812031523.mB3FN8w5094396@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812031523.mB3FN8w5094396>