coresight: pmu: Adds return stack option to perf coresight pmu

Return stack is a programmable option on some ETM and PTM hardware.
Adds the option flags to enable this from the perf event command line.

Signed-off-by: Mike Leach <mike.leach@linaro.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Mike Leach
2017-08-02 10:22:01 -06:00
committed by Greg Kroah-Hartman
parent 89f00a1ae5
commit b97971bee5
3 changed files with 4 additions and 0 deletions

View File

@@ -24,6 +24,7 @@
/* ETMv3.5/PTM's ETMCR config bit */
#define ETM_OPT_CYCACC 12
#define ETM_OPT_TS 28
#define ETM_OPT_RETSTK 29
static inline int coresight_get_trace_id(int cpu)
{