diff options
author | Hoan Tran <hoan.tran@amperecomputing.com> | 2018-06-07 15:35:01 +0200 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2018-06-18 18:48:42 +0200 |
commit | a45fc268db20ecd859bb61e25045912b3194b5e6 (patch) | |
tree | 2b0a0c700ef960a04d0bddb0ebb92a93b9a4891b /drivers/perf/xgene_pmu.c | |
parent | Linux 4.18-rc1 (diff) | |
download | linux-a45fc268db20ecd859bb61e25045912b3194b5e6.tar.xz linux-a45fc268db20ecd859bb61e25045912b3194b5e6.zip |
drivers/perf: xgene_pmu: Fix IOB SLOW PMU parser error
This patch fixes the below parser error of the IOB SLOW PMU.
# perf stat -a -e iob-slow0/cycle-count/ sleep 1
evenf syntax error: 'iob-slow0/cycle-count/'
\___ parser error
It replaces the "-" character by "_" character inside the PMU name.
Signed-off-by: Hoan Tran <hoan.tran@amperecomputing.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/perf/xgene_pmu.c')
-rw-r--r-- | drivers/perf/xgene_pmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/perf/xgene_pmu.c b/drivers/perf/xgene_pmu.c index 6bdb1dad805f..0e31f1392a53 100644 --- a/drivers/perf/xgene_pmu.c +++ b/drivers/perf/xgene_pmu.c @@ -1463,7 +1463,7 @@ static char *xgene_pmu_dev_name(struct device *dev, u32 type, int id) case PMU_TYPE_IOB: return devm_kasprintf(dev, GFP_KERNEL, "iob%d", id); case PMU_TYPE_IOB_SLOW: - return devm_kasprintf(dev, GFP_KERNEL, "iob-slow%d", id); + return devm_kasprintf(dev, GFP_KERNEL, "iob_slow%d", id); case PMU_TYPE_MCB: return devm_kasprintf(dev, GFP_KERNEL, "mcb%d", id); case PMU_TYPE_MC: |