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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:08:59 +0000 (13:08 +0200)
commit997a6b6b3017a914b0707676119848c1af69921d
treefcea3529f32d1ccd7d315346685381652c2d4368
parentfec2c747ae39db840c68dd3288cc10c144a55eec
drivers/perf: xgene_pmu: Fix IOB SLOW PMU parser error

[ Upstream commit a45fc268db20ecd859bb61e25045912b3194b5e6 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/perf/xgene_pmu.c