[RFC PATCH 07/12] coresight: Add RISC-V PMU name support
From: Zane Leung
Date: Mon Apr 13 2026 - 23:45:37 EST
From: liangzhen <zhen.liang@xxxxxxxxxxxx>
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@xxxxxxxxxxxx>
---
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