This source file includes following definitions.
- coresight_get_trace_id
1
2
3
4
5
6
7 #ifndef _LINUX_CORESIGHT_PMU_H
8 #define _LINUX_CORESIGHT_PMU_H
9
10 #define CORESIGHT_ETM_PMU_NAME "cs_etm"
11 #define CORESIGHT_ETM_PMU_SEED 0x10
12
13
14 #define ETM_OPT_CYCACC 12
15 #define ETM_OPT_CTXTID 14
16 #define ETM_OPT_TS 28
17 #define ETM_OPT_RETSTK 29
18
19
20 #define ETM4_CFG_BIT_CYCACC 4
21 #define ETM4_CFG_BIT_CTXTID 6
22 #define ETM4_CFG_BIT_TS 11
23 #define ETM4_CFG_BIT_RETSTK 12
24
25 static inline int coresight_get_trace_id(int cpu)
26 {
27
28
29
30
31
32
33 return (CORESIGHT_ETM_PMU_SEED + (cpu * 2));
34 }
35
36 #endif