coresight: pmu: Correct the trace id for ete

Modify the calculation method of the ete trace ID to adapt to the
atid of ete on our targets.

Change-Id: Icf108d4d74b1dd4d6454303340d54cd92a9a30ff
Signed-off-by: Tao Zhang <quic_taozha@quicinc.com>
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
This commit is contained in:
Tao Zhang 2022-01-27 08:58:10 +08:00 committed by Mao Jinlong
parent a364155fa4
commit bcb1c242ee

View File

@ -8,7 +8,7 @@
#define _LINUX_CORESIGHT_PMU_H
#define CORESIGHT_ETM_PMU_NAME "cs_etm"
#define CORESIGHT_ETM_PMU_SEED 0x10
#define CORESIGHT_ETM_PMU_SEED 0x01
/*
* Below are the definition of bit offsets for perf option, and works as
@ -40,7 +40,7 @@ static inline int coresight_get_trace_id(int cpu)
* the common convention is to have data trace IDs be I(N) + 1,
* set instruction trace IDs as a function of the CPU number.
*/
return (CORESIGHT_ETM_PMU_SEED + (cpu * 2));
return (CORESIGHT_ETM_PMU_SEED + cpu);
}
#endif