Thread (21 messages) 21 messages, 2 authors, 2025-09-11

Re: [PATCH v4 04/15] perf arm_spe: Correct memory level for remote access

From: James Clark <james.clark@linaro.org>
Date: 2025-09-11 15:25:32
Also in: linux-perf-users


On 31/07/2025 2:25 pm, Leo Yan wrote:
quoted hunk ↗ jump to hunk
For remote accesses, the data source packet does not contain information
about the memory level. To avoid misinformation, set the memory level to
NA (Not Available).

Fixes: 4e6430cbb1a9 ("perf arm-spe: Use SPE data source for neoverse cores")
Signed-off-by: Leo Yan <leo.yan@arm.com>
---
  tools/perf/util/arm-spe.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/perf/util/arm-spe.c b/tools/perf/util/arm-spe.c
index 8ecf7142dcd8705c13c27e0cbacd69647dc4fd22..3086dad92965af3981b1065f2892a3e67df7b616 100644
--- a/tools/perf/util/arm-spe.c
+++ b/tools/perf/util/arm-spe.c
@@ -670,8 +670,8 @@ static void arm_spe__synth_data_source_common(const struct arm_spe_record *recor
  	 * socket
  	 */
  	case ARM_SPE_COMMON_DS_REMOTE:
-		data_src->mem_lvl = PERF_MEM_LVL_REM_CCE1;
-		data_src->mem_lvl_num = PERF_MEM_LVLNUM_ANY_CACHE;
+		data_src->mem_lvl = PERF_MEM_LVL_NA;
+		data_src->mem_lvl_num = PERF_MEM_LVLNUM_NA;
  		data_src->mem_remote = PERF_MEM_REMOTE_REMOTE;
  		data_src->mem_snoopx = PERF_MEM_SNOOPX_PEER;
  		break;
Reviewed-by: James Clark <james.clark@linaro.org>

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help