[RFC PATCH 07/12] coresight: Add RISC-V PMU name support

Zane Leung liangzhen at linux.spacemit.com
Mon Apr 13 20:41:48 PDT 2026


From: liangzhen <zhen.liang at 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 at 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
-- 
2.34.1




More information about the linux-riscv mailing list