Skip to content

Commit 4e13f67

Browse files
timothy-hayesacmel
authored andcommitted
perf arm-spe: Fix addresses of synthesized SPE events
This patch corrects a bug whereby synthesized events from SPE samples are missing virtual addresses. Fixes: 54f7815 ("perf arm-spe: Fill address info for samples") Reviewed-by: Leo Yan <[email protected]> Signed-off-by: Timothy Hayes <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: [email protected] Cc: Jiri Olsa <[email protected]> Cc: John Fastabend <[email protected]> Cc: John Garry <[email protected]> Cc: KP Singh <[email protected]> Cc: Leo Yan <[email protected]> Cc: [email protected] Cc: Mark Rutland <[email protected]> Cc: Martin KaFai Lau <[email protected]> Cc: Mathieu Poirier <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: [email protected] Cc: Song Liu <[email protected]> Cc: Will Deacon <[email protected]> Cc: Yonghong Song <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent de8fd13 commit 4e13f67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/perf/util/arm-spe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ arm_spe_synth_events(struct arm_spe *spe, struct perf_session *session)
10361036
attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK;
10371037
attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID |
10381038
PERF_SAMPLE_PERIOD | PERF_SAMPLE_DATA_SRC |
1039-
PERF_SAMPLE_WEIGHT;
1039+
PERF_SAMPLE_WEIGHT | PERF_SAMPLE_ADDR;
10401040
if (spe->timeless_decoding)
10411041
attr.sample_type &= ~(u64)PERF_SAMPLE_TIME;
10421042
else

0 commit comments

Comments
 (0)