Re: [PATCH v5 00/19] perf cs-etm: Per-thread mode fixes and snapshot wrap support
From: Namhyung Kim
Date: Tue Dec 01 2026 - 12:49:05 EST
On Mon, 30 Nov 2026 12:55:12 +0000, James Clark wrote:
> Fix a few issues with per-thread mode:
> - On nVHE, everything looks like guest trace instead of host
> - Tracing multiple threads didn't really work
>
> After adding a tests for those, it turns out there were some snapshot
> bugs not picked up by the other snapshot tests. That showed that the
> different snapshot searches for Intel BTS and Arm SPE were inconsistent
> and I think all tracers can benefit from using the same pointer fixup
> logic, so that gets refactored into the common auxtrace.c. Then SPE can
> just share the Intel BTS search as it was obviously copied from it
> originally. IntelPT keeps the more advanced duplicate data search, but
> in the future that could probably be made the common one and all tracers
> would benefit from using it (except maybe BTS if it always has a very
> small buffer, but I doubt the overhead of the duplicate search would be
> an issue). For now this is more of a refactor rather than behavioral
> change so don't do that yet.
>
> [...]
Applied to perf-tools-next, thanks!
Best regards
Namhyung