Re: [PATCH v3 07/18] perf python: Expose sample instruction length
From: Leo Yan
Date: Wed Nov 04 2026 - 11:50:52 EST
On Mon, Nov 02, 2026 at 12:15:21PM +0000, James Clark wrote:
> Expose perf_sample::insn_len as a read-only insn_len attribute.
>
> Trace decoders supply instruction lengths on synthesized samples to
> indicate whether an instruction was executed or not during a call or
> exception. Let scripts read this value directly.
>
> Signed-off-by: James Clark <james.clark@xxxxxxxxxx>
Reviewed-by: Leo Yan <leo.yan@xxxxxxx>