Skip to content

Commit b07963a

Browse files
Leo-Yanopsiff
authored andcommitted
perf arm_spe: Correct memory level for remote access
[ Upstream commit cb300e3515057fb555983ce47e8acc86a5c69c3c ] 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 <james.clark@linaro.org> Signed-off-by: Leo Yan <leo.yan@arm.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ali Saidi <alisaidi@amazon.com> Cc: German Gomez <german.gomez@arm.com> Cc: Ian Rogers <irogers@google.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Will Deacon <will@kernel.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org> (cherry picked from commit 398657434c61dcd9cbcbb010e41586f1ad635632)
1 parent 69a9514 commit b07963a

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)