perf: cs-etm: Fix ETMv4 CONFIGR entry in perf.data file
authorMike Leach <mike.leach@linaro.org>
Wed, 2 Aug 2017 16:22:19 +0000 (10:22 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 15:35:43 +0000 (17:35 +0200)
commitdf770ff0586a494fabe68ffbe2898d7df5666663
tree4ad7e71b3ba91349f08111a3c2bb431d0277fd47
parent4da69f49e73e3c79f079de62ea940cabbbf15ae7
perf: cs-etm: Fix ETMv4 CONFIGR entry in perf.data file

The value passed into the perf.data file for the CONFIGR register in ETMv4
was incorrectly being set to the command line options/ETMv3 value.

Adds bit definitions and function to remap this value to the correct ETMv4
CONFIGR bit values for all selected options.

Signed-off-by: Mike Leach <mike.leach@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/coresight-pmu.h
tools/include/linux/coresight-pmu.h
tools/perf/arch/arm/util/cs-etm.c