aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2021-05-31 14:21:57 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2021-05-31 20:39:05 +0000
commitec66cc955b629e614cf493bf168048de033f6a2c (patch)
tree9ec9533d5c452ebe2dd840e2dc5664bdde9c37d6 /lib
parent167cdaa7e30093215a753d4f788d921b1f7c1474 (diff)
Diffstat (limited to 'lib')
-rw-r--r--lib/libpmc/libpmc_pmu_util.c22
-rw-r--r--lib/libpmc/pmc.h1
2 files changed, 0 insertions, 23 deletions
diff --git a/lib/libpmc/libpmc_pmu_util.c b/lib/libpmc/libpmc_pmu_util.c
index 1b2c10e07368..a525a0067822 100644
--- a/lib/libpmc/libpmc_pmu_util.c
+++ b/lib/libpmc/libpmc_pmu_util.c
@@ -542,28 +542,6 @@ pmc_pmu_pmcallocate(const char *event_name, struct pmc_op_pmcallocate *pm)
return (pmc_pmu_amd_pmcallocate(event_name, pm, &ped));
}
-/*
- * Ultimately rely on AMD calling theirs the same
- */
-static const char *stat_mode_cntrs[] = {
- "cpu_clk_unhalted.thread",
- "inst_retired.any",
- "br_inst_retired.all_branches",
- "br_misp_retired.all_branches",
- "longest_lat_cache.reference",
- "longest_lat_cache.miss",
-};
-
-int
-pmc_pmu_stat_mode(const char ***cntrs)
-{
- if (pmc_pmu_enabled()) {
- *cntrs = stat_mode_cntrs;
- return (0);
- }
- return (EOPNOTSUPP);
-}
-
#else
uint64_t
diff --git a/lib/libpmc/pmc.h b/lib/libpmc/pmc.h
index 9d12085364e5..7579f93a42b1 100644
--- a/lib/libpmc/pmc.h
+++ b/lib/libpmc/pmc.h
@@ -122,7 +122,6 @@ uint64_t pmc_pmu_sample_rate_get(const char *);
int pmc_pmu_pmcallocate(const char *, struct pmc_op_pmcallocate *);
const char *pmc_pmu_event_get_by_idx(const char *, int idx);
int pmc_pmu_idx_get_by_event(const char*, const char *);
-int pmc_pmu_stat_mode(const char ***);
__END_DECLS
#endif