Re: [PATCH v3] perf cs-etm: Fix incorrect or missing decoder for raw trace

From: Namhyung Kim
Date: Thu Oct 12 2023 - 13:34:50 EST


On Tue, Oct 10, 2023 at 4:49 PM Besar Wicaksono <bwicaksono@xxxxxxxxxx> wrote:
>
> The decoder creation for raw trace uses metadata from the first CPU.
> On per-cpu mode, this metadata is incorrectly used for every decoder.
> On per-process/per-thread traces, the first CPU is CPU0. If CPU0 trace
> is not enabled, its metadata will be marked unused and the decoder is
> not created. Perf report dump skips the decoding part because the
> decoder is missing.
>
> To fix this, use metadata of the CPU associated with sample object.
>
> Signed-off-by: Besar Wicaksono <bwicaksono@xxxxxxxxxx>
> Reviewed-by: James Clark <james.clark@xxxxxxx>

Applied to perf-tools-next, thanks!