Re: [PATCH v3 06/18] perf cs-etm: Don't drop previous target for kernel samples

From: Leo Yan

Date: Wed Nov 04 2026 - 11:53:46 EST


On Mon, Nov 02, 2026 at 12:15:20PM +0000, James Clark wrote:
> The branch target of the previous sample is used as the start of the
> range to disassemble, but if that sample's DSO is "[unknown]" then we'll
> drop it even though it's useful information. This happens when recording
> userspace only. Save the address earlier for "Trace On" samples, before
> we get to the early exit condition for unknown DSOs.
>
> In a later commit to change the default timestamp interval, trace will
> be collected that triggers this issue, so fix it now.
>
> Signed-off-by: James Clark <james.clark@xxxxxxxxxx>

Reviewed-by: Leo Yan <leo.yan@xxxxxxx>