diff options
author | Mike Leach <mike.leach@linaro.org> | 2017-08-02 12:22:19 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-28 11:35:43 -0400 |
commit | df770ff0586a494fabe68ffbe2898d7df5666663 (patch) | |
tree | 4ad7e71b3ba91349f08111a3c2bb431d0277fd47 /tools/include/linux | |
parent | 4da69f49e73e3c79f079de62ea940cabbbf15ae7 (diff) |
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>
Diffstat (limited to 'tools/include/linux')
-rw-r--r-- | tools/include/linux/coresight-pmu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/include/linux/coresight-pmu.h b/tools/include/linux/coresight-pmu.h index 45852c2cd096..edfeaba95429 100644 --- a/tools/include/linux/coresight-pmu.h +++ b/tools/include/linux/coresight-pmu.h | |||
@@ -26,6 +26,11 @@ | |||
26 | #define ETM_OPT_TS 28 | 26 | #define ETM_OPT_TS 28 |
27 | #define ETM_OPT_RETSTK 29 | 27 | #define ETM_OPT_RETSTK 29 |
28 | 28 | ||
29 | /* ETMv4 CONFIGR programming bits for the ETM OPTs */ | ||
30 | #define ETM4_CFG_BIT_CYCACC 4 | ||
31 | #define ETM4_CFG_BIT_TS 11 | ||
32 | #define ETM4_CFG_BIT_RETSTK 12 | ||
33 | |||
29 | static inline int coresight_get_trace_id(int cpu) | 34 | static inline int coresight_get_trace_id(int cpu) |
30 | { | 35 | { |
31 | /* | 36 | /* |