perf arm-spe: Set sample.addr to target address for instruction sample
authorGraham Woodward <graham.woodward@arm.com>
Fri, 25 Oct 2024 14:30:06 +0000 (15:30 +0100)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 29 Oct 2024 23:10:05 +0000 (16:10 -0700)
commit19966d792b9e6b055aeb2f0e573b4d4573d5e15b
tree12c407133f9e3e6bdaa5862822ace46aa696acbd
parente3b2949e3fa2fd8c19cd5fbb0424d38f70a70e9c
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>
tools/perf/util/arm-spe.c