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

Namhyung Kim namhyung at gmail.com
Thu Oct 12 10:24:21 PDT 2023


On Tue, Oct 10, 2023 at 4:49 PM Besar Wicaksono <bwicaksono at nvidia.com> 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 at nvidia.com>
> Reviewed-by: James Clark <james.clark at arm.com>

Applied to perf-tools-next, thanks!



More information about the linux-arm-kernel mailing list