mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 19:47:08 +02:00
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:
parent
a364155fa4
commit
bcb1c242ee
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user