drivers/perf: xgene_pmu: Fix IOB SLOW PMU parser error
authorHoan Tran <hoan.tran@amperecomputing.com>
Thu, 7 Jun 2018 13:35:01 +0000 (14:35 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 18 Jun 2018 16:48:42 +0000 (17:48 +0100)
commita45fc268db20ecd859bb61e25045912b3194b5e6
tree2b0a0c700ef960a04d0bddb0ebb92a93b9a4891b
parentce397d215ccd07b8ae3f71db689aedb85d56ab40
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>
drivers/perf/xgene_pmu.c