linux-stable/tools/perf/arch/arm64
James Clark e1f2750e75 perf: arm-spe: Fix perf report --mem-mode
[ Upstream commit ffab487052 ]

Since commit bb30acae4c ("perf report: Bail out --mem-mode if mem
info is not available") "perf mem report" and "perf report --mem-mode"
don't allow opening the file unless one of the events has
PERF_SAMPLE_DATA_SRC set.

SPE doesn't have this set even though synthetic memory data is generated
after it is decoded. Fix this issue by setting DATA_SRC on SPE events.
This has no effect on the data collected because the SPE driver doesn't
do anything with that flag and doesn't generate samples.

Fixes: bb30acae4c ("perf report: Bail out --mem-mode if mem info is not available")
Signed-off-by: James Clark <james.clark@arm.com>
Tested-by: Leo Yan <leo.yan@linaro.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: German Gomez <german.gomez@arm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: John Garry <john.garry@huawei.com>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Cc: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20220408144056.1955535-1-james.clark@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-13 20:59:20 +02:00
..
annotate perf annotate: Fix arch specific ->init() failure errors 2019-09-30 17:30:03 -03:00
entry/syscalls perf arm64: Fix mksyscalltbl when system kernel headers are ahead of the kernel 2019-05-28 09:49:03 -03:00
include perf tests: Consolidate test__arch_unwind_sample declaration 2021-05-21 16:57:43 -03:00
tests perf bench: Update the copies of x86's mem{cpy,set}_64.S 2019-12-02 11:40:57 -03:00
util perf: arm-spe: Fix perf report --mem-mode 2022-04-13 20:59:20 +02:00
Build perf tests arm64: Compile tests unconditionally 2019-06-17 15:57:16 -03:00
Makefile perf kvm: Add kvm-stat for arm64 2020-11-04 09:42:41 -03:00