svn commit: r334462 - head/lib/libpmc

Matt Macy mmacy at FreeBSD.org
Fri Jun 1 00:45:44 UTC 2018


Author: mmacy
Date: Fri Jun  1 00:45:43 2018
New Revision: 334462
URL: https://svnweb.freebsd.org/changeset/base/334462

Log:
  libpmc/pmu: update aliases table

Modified:
  head/lib/libpmc/libpmc_pmu_util.c   (contents, props changed)

Modified: head/lib/libpmc/libpmc_pmu_util.c
==============================================================================
--- head/lib/libpmc/libpmc_pmu_util.c	Fri Jun  1 00:30:55 2018	(r334461)
+++ head/lib/libpmc/libpmc_pmu_util.c	Fri Jun  1 00:45:43 2018	(r334462)
@@ -60,21 +60,15 @@ static struct pmu_alias pmu_alias_table[] = {
 	{"BRANCH-INSTRUCTION-RETIRED", "BR_INST_RETIRED.ALL_BRANCHES"},
 	{"BRANCH_MISSES_RETIRED", "BR_MISP_RETIRED.ALL_BRANCHES"},
 	{"BRANCH-MISSES-RETIRED", "BR_MISP_RETIRED.ALL_BRANCHES"},
+	{"cycles", "tsc-tsc"},
+	{"instructions", "inst-retired.any_p"},
+	{"branch-mispredicts", "br_misp_retired.all_branches" },
+	{"branches", "br_inst_retired.all_branches" },
+	{"interrupts", "hw_interrupts.received"},
+	{"ic-misses", "frontend_retired.l1i_miss"},
 	{NULL, NULL},
 };
 
-#ifdef notyet
-static struct pmc_event_alias core2_aliases_without_iaf[] = {
-	EV_ALIAS("branches",		"iap-br-inst-retired.any"),
-	EV_ALIAS("branch-mispredicts",	"iap-br-inst-retired.mispred"),
-	EV_ALIAS("cycles",		"tsc-tsc"),
-	EV_ALIAS("ic-misses",		"iap-l1i-misses"),
-	EV_ALIAS("instructions",	"iap-inst-retired.any_p"),
-	EV_ALIAS("interrupts",		"iap-hw-int-rcv"),
-	EV_ALIAS("unhalted-cycles",	"iap-cpu-clk-unhalted.core_p"),
-	EV_ALIAS(NULL, NULL)
-};
-#endif
 static const char *fixed_mode_cntrs[] = {
 	"inst_retired.any",
 	"cpu_clk_unhalted.thread",


More information about the svn-src-head mailing list