]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
perf vendor events powerpc: Remove duplicate events
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Thu, 31 Aug 2017 01:42:23 +0000 (21:42 -0400)
committerSeth Forshee <seth.forshee@canonical.com>
Sun, 10 Sep 2017 22:00:00 +0000 (17:00 -0500)
commit034307c6b26601df5669e54d66001a1ff58f8590
tree9481d9cf796db907ad1ac541f977e105fcd135c2
parent5625c39e0ea94349ed01d79a61143f72fe3e54fa
perf vendor events powerpc: Remove duplicate events

BugLink: http://bugs.launchpad.net/bugs/1714571
Some POWER PMU event names have multiple/alternate event codes. These
alternate event codes were listed in the POWER9 JSON files for
reference.

But the perf tool does not seem to handle duplicates cleanly. 'perf
list' shows such duplicate events only once, but 'perf stat' ends up
counting the first event code twice, multiplexing if necessary and we
end up with double the event counts.

Remove the duplicate event codes from the JSON files for now.

Reported-by: Michael Petlan <mpetlan@redhat.com>
Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Anton Blanchard <anton@au1.ibm.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Link: http://lkml.kernel.org/r/20170830231506.GB20351@us.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
(cherry picked from commit 2a118e1bd22cad57318520d37e3a184b8846c6a2
 git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
tools/perf/pmu-events/arch/powerpc/power9/frontend.json
tools/perf/pmu-events/arch/powerpc/power9/other.json
tools/perf/pmu-events/arch/powerpc/power9/pipeline.json
tools/perf/pmu-events/arch/powerpc/power9/pmc.json