From bcb1c242ee4dc8a73cde029f82e07818d8dd56c0 Mon Sep 17 00:00:00 2001 From: Tao Zhang Date: Thu, 27 Jan 2022 08:58:10 +0800 Subject: [PATCH] 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 Signed-off-by: Mao Jinlong --- include/linux/coresight-pmu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/coresight-pmu.h b/include/linux/coresight-pmu.h index 4ac5c081af93..6899f28c737b 100644 --- a/include/linux/coresight-pmu.h +++ b/include/linux/coresight-pmu.h @@ -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