Skip to content

Commit 6c0afc5

Browse files
committed
tools headers UAPI: Update tools' copy of linux/coresight-pmu.h
To get the changes in these commits: 88f1186 ("coresight: etm-perf: Support PID tracing for kernel at EL2") 53abf3f ("coresight: etm-perf: Clarify comment on perf options") This will possibly be used in patches lined up for v5.13. And silence this perf build warning: Warning: Kernel ABI header at 'tools/include/linux/coresight-pmu.h' differs from latest version at 'include/linux/coresight-pmu.h' diff -u tools/include/linux/coresight-pmu.h include/linux/coresight-pmu.h Cc: Greg Kroah-Hartman <[email protected]> Cc: Leo Yan <[email protected]> Cc: Mathieu Poirier <[email protected]> Cc: Mike Leach <[email protected]> Cc: Suzuki K Poulose <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 743108e commit 6c0afc5

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

tools/include/linux/coresight-pmu.h

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,27 @@
1010
#define CORESIGHT_ETM_PMU_NAME "cs_etm"
1111
#define CORESIGHT_ETM_PMU_SEED 0x10
1212

13-
/* ETMv3.5/PTM's ETMCR config bit */
14-
#define ETM_OPT_CYCACC 12
15-
#define ETM_OPT_CTXTID 14
16-
#define ETM_OPT_TS 28
17-
#define ETM_OPT_RETSTK 29
13+
/*
14+
* Below are the definition of bit offsets for perf option, and works as
15+
* arbitrary values for all ETM versions.
16+
*
17+
* Most of them are orignally from ETMv3.5/PTM's ETMCR config, therefore,
18+
* ETMv3.5/PTM doesn't define ETMCR config bits with prefix "ETM3_" and
19+
* directly use below macros as config bits.
20+
*/
21+
#define ETM_OPT_CYCACC 12
22+
#define ETM_OPT_CTXTID 14
23+
#define ETM_OPT_CTXTID2 15
24+
#define ETM_OPT_TS 28
25+
#define ETM_OPT_RETSTK 29
1826

1927
/* ETMv4 CONFIGR programming bits for the ETM OPTs */
2028
#define ETM4_CFG_BIT_CYCACC 4
2129
#define ETM4_CFG_BIT_CTXTID 6
30+
#define ETM4_CFG_BIT_VMID 7
2231
#define ETM4_CFG_BIT_TS 11
2332
#define ETM4_CFG_BIT_RETSTK 12
33+
#define ETM4_CFG_BIT_VMID_OPT 15
2434

2535
static inline int coresight_get_trace_id(int cpu)
2636
{

0 commit comments

Comments
 (0)