[PATCH v3 08/18] perf cs-etm: Use instruction length in disassembly script
Leo Yan
leo.yan at arm.com
Wed Nov 4 09:06:45 PST 2026
On Mon, Nov 02, 2026 at 12:15:22PM +0000, James Clark wrote:
> The disassembly script adds four bytes to each branch sample's IP to
> include the final instruction in the range. For an exception sample
> whose IP identifies a faulting or interrupted instruction, this
> incorrectly includes an instruction that did not execute.
>
> Use the decoder-supplied insn_len to calculate the exclusive end
> address. This preserves zero-length exception entries, includes executed
> syscall instructions and also uses the decoded size for Thumb
> instructions.
>
> Signed-off-by: James Clark <james.clark at linaro.org>
Reviewed-by: Leo Yan <leo.yan at arm.com>
More information about the linux-arm-kernel
mailing list