Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 May 2021 20:39:16 GMT
From:      Mitchell Horne <mhorne@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: bc1a6a9d692a - main - libpmc: fix "instructions" alias on Intel
Message-ID:  <202105312039.14VKdGYv040565@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mhorne:

URL: https://cgit.FreeBSD.org/src/commit/?id=bc1a6a9d692a1f827514144b6bce0654a8be4f4d

commit bc1a6a9d692a1f827514144b6bce0654a8be4f4d
Author:     Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2021-05-31 14:16:16 +0000
Commit:     Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2021-05-31 20:38:19 +0000

    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
---
 lib/libpmc/libpmc_pmu_util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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"},



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