Skip to content

Commit c955a16

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 4dd0a97 commit c955a16

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
@@ -479,8 +479,8 @@ static void arm_spe__synth_data_source_common(const struct arm_spe_record *recor
479479
* socket
480480
*/
481481
case ARM_SPE_COMMON_DS_REMOTE:
482-
data_src->mem_lvl = PERF_MEM_LVL_REM_CCE1;
483-
data_src->mem_lvl_num = PERF_MEM_LVLNUM_ANY_CACHE;
482+
data_src->mem_lvl = PERF_MEM_LVL_NA;
483+
data_src->mem_lvl_num = PERF_MEM_LVLNUM_NA;
484484
data_src->mem_remote = PERF_MEM_REMOTE_REMOTE;
485485
data_src->mem_snoopx = PERF_MEM_SNOOPX_PEER;
486486
break;

0 commit comments

Comments
 (0)