From: liangzhen zhen.liang@spacemit.com
Define CORESIGHT_ETM_PMU_NAME based on architecture: - Set to "rvtrace" when CONFIG_RVTRACE is enabled - Default to "cs_etm" for ARM/ARM64 systems
Signed-off-by: liangzhen zhen.liang@spacemit.com --- include/linux/coresight-pmu.h | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/include/linux/coresight-pmu.h b/include/linux/coresight-pmu.h index 2e179abe472a..119565500ec5 100644 --- a/include/linux/coresight-pmu.h +++ b/include/linux/coresight-pmu.h @@ -9,7 +9,11 @@
#include <linux/bits.h>
+#if IS_ENABLED(CONFIG_RVTRACE) +#define CORESIGHT_ETM_PMU_NAME "rvtrace" +#else #define CORESIGHT_ETM_PMU_NAME "cs_etm" +#endif
/* * The legacy Trace ID system based on fixed calculation from the cpu