Skip to content

Commit eea105d

Browse files
Leo-Yangregkh
authored andcommitted
perf arm_spe: Correct memory level for remote access
[ Upstream commit cb300e3 ] 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: 4e6430c ("perf arm-spe: Use SPE data source for neoverse cores") Reviewed-by: James Clark <[email protected]> Signed-off-by: Leo Yan <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Ali Saidi <[email protected]> Cc: German Gomez <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Will Deacon <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent c7be909 commit eea105d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/perf/util/arm-spe.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,8 +670,8 @@ static void arm_spe__synth_data_source_common(const struct arm_spe_record *recor
670670
* socket
671671
*/
672672
case ARM_SPE_COMMON_DS_REMOTE:
673-
data_src->mem_lvl = PERF_MEM_LVL_REM_CCE1;
674-
data_src->mem_lvl_num = PERF_MEM_LVLNUM_ANY_CACHE;
673+
data_src->mem_lvl = PERF_MEM_LVL_NA;
674+
data_src->mem_lvl_num = PERF_MEM_LVLNUM_NA;
675675
data_src->mem_remote = PERF_MEM_REMOTE_REMOTE;
676676
data_src->mem_snoopx = PERF_MEM_SNOOPX_PEER;
677677
break;

0 commit comments

Comments
 (0)