]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
perf arm_spe: Correct memory level for remote access
authorLeo Yan <leo.yan@arm.com>
Fri, 12 Sep 2025 15:42:09 +0000 (16:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Oct 2025 14:23:06 +0000 (16:23 +0200)
[ 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: 4e6430cbb1a9f1dc ("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>
tools/perf/util/arm-spe.c

index 36f03d532d5bc84779981e342fb45bf7b25c5b61..383eda614f5c47ac90a685767353836ba54b1788 100644 (file)
@@ -457,8 +457,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;