diff options
author | Mitchell Horne <mhorne@FreeBSD.org> | 2021-05-31 14:16:16 +0000 |
---|---|---|
committer | Mitchell Horne <mhorne@FreeBSD.org> | 2021-05-31 20:38:19 +0000 |
commit | bc1a6a9d692a1f827514144b6bce0654a8be4f4d (patch) | |
tree | cc53c5b04d90396103a807a389c563be5092fef0 | |
parent | d3f7975fcb346ea28dde079a9c04cff5ef20a8d7 (diff) | |
download | src-bc1a6a9d692a1f827514144b6bce0654a8be4f4d.tar.gz src-bc1a6a9d692a1f827514144b6bce0654a8be4f4d.zip |
libpmc: fix "instructions" alias on Intel
The typo prevents the counter from being allocated.
This fixes e.g. pmcstat -s instructions sleep 5
Reviewed by: mizhka, gnn, ray, emaste
MFC after: 5 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D30527
-rw-r--r-- | lib/libpmc/libpmc_pmu_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpmc/libpmc_pmu_util.c b/lib/libpmc/libpmc_pmu_util.c index d652573a883f..259a2a5faa47 100644 --- a/lib/libpmc/libpmc_pmu_util.c +++ b/lib/libpmc/libpmc_pmu_util.c @@ -72,7 +72,7 @@ static struct pmu_alias pmu_intel_alias_table[] = { {"BRANCH-MISSES-RETIRED", "BR_MISP_RETIRED.ALL_BRANCHES"}, {"cycles", "tsc-tsc"}, {"unhalted-cycles", "CPU_CLK_UNHALTED.THREAD_P_ANY"}, - {"instructions", "inst-retired.any_p"}, + {"instructions", "inst_retired.any_p"}, {"branch-mispredicts", "br_misp_retired.all_branches"}, {"branches", "br_inst_retired.all_branches"}, {"interrupts", "hw_interrupts.received"}, |