Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf arm-spe: Set sample.addr to target address for instruction sample

For an instruction sample, assign the target address to the field
'to_ip'.
If it is a non-branch record, to_ip will be 0, presenting a non-valid
target address.

Signed-off-by: Graham Woodward <graham.woodward@arm.com>
Reviewed-by: James Clark <james.clark@linaro.org>
Tested-by: Leo Yan <leo.yan@arm.com>
Cc: nd@arm.com
Cc: mike.leach@linaro.org
Cc: linux-arm-kernel@lists.infradead.org
Link: https://lore.kernel.org/r/20241025143009.25419-2-graham.woodward@arm.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>

authored by

Graham Woodward and committed by
Namhyung Kim
19966d79 e3b2949e

+1 -1
+1 -1
tools/perf/util/arm-spe.c
··· 418 418 419 419 sample.id = spe_events_id; 420 420 sample.stream_id = spe_events_id; 421 - sample.addr = record->virt_addr; 421 + sample.addr = record->to_ip; 422 422 sample.phys_addr = record->phys_addr; 423 423 sample.data_src = data_src; 424 424 sample.period = spe->instructions_sample_period;