Skip to content

Commit cb300e3

Browse files
Leo-Yanacmel
authored andcommitted
perf arm_spe: Correct memory level for remote access
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]>
1 parent 039fd06 commit cb300e3

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
@@ -659,8 +659,8 @@ static void arm_spe__synth_data_source_common(const struct arm_spe_record *recor
659659
* socket
660660
*/
661661
case ARM_SPE_COMMON_DS_REMOTE:
662-
data_src->mem_lvl = PERF_MEM_LVL_REM_CCE1;
663-
data_src->mem_lvl_num = PERF_MEM_LVLNUM_ANY_CACHE;
662+
data_src->mem_lvl = PERF_MEM_LVL_NA;
663+
data_src->mem_lvl_num = PERF_MEM_LVLNUM_NA;
664664
data_src->mem_remote = PERF_MEM_REMOTE_REMOTE;
665665
data_src->mem_snoopx = PERF_MEM_SNOOPX_PEER;
666666
break;

0 commit comments

Comments
 (0)