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.
Showing the changes to tools/include/linux (1 of 3 files). Show all
Unified · Split
| @@ -24,6 +24,7 @@ · 23 unmodified lines | |||
| 24 | /* ETMv3.5/PTM's ETMCR config bit */ | 24 | /* ETMv3.5/PTM's ETMCR config bit */ |
| 25 | #define ETM_OPT_CYCACC 12 | 25 | #define ETM_OPT_CYCACC 12 |
| 26 | #define ETM_OPT_TS 28 | 26 | #define ETM_OPT_TS 28 |
| 27 | #define ETM_OPT_RETSTK 29 | ||
| 27 | 28 | ||
| 28 | static inline int coresight_get_trace_id(int cpu) | 29 | static inline int coresight_get_trace_id(int cpu) |
| 29 | { | 30 | { |