Re: [PATCH v2 01/14] perf cs-etm: Fix nVHE per-thread decoding
From: Leo Yan
Date: Wed Aug 26 2026 - 11:07:09 EST
On Fri, Aug 21, 2026 at 10:48:59AM +0100, James Clark wrote:
> pid_fmt is unset in per-thread mode because we don't need PIDs, so we
> can't use it as a hint to determine which EL the host is running at.
> That results in falling though to the next part where EL1 is treated as
> guest, which is wrong for nVHE.
>
> Fix it by only returning a guest machine when run from perf kvm where a
> guest image would be provided, which matches existing behavior in other
> parts of Perf.
>
> Signed-off-by: James Clark <james.clark@xxxxxxxxxx>
Reviewed-by: Leo Yan <leo.yan@xxxxxxx>