Re: [PATCH] perf powerpc-vpadtl: Fix raw_size of DTL samples
From: Namhyung Kim
Date: Tue Sep 01 2026 - 00:15:07 EST
On Tue, 25 Aug 2026 17:47:33 +0800, Wang Yan wrote:
> In powerpc_vpadtl_sample(), raw_data of the synthetic sample points to a
> struct powerpc_vpadtl_entry (48 bytes), but raw_size is set to
> sizeof(record). record is a struct powerpc_vpadtl_entry pointer, so
> sizeof(record) is the size of the pointer (8 bytes on 64-bit) rather
> than the size of the record itself.
>
> As a result, consumers that bound their access to raw_data by raw_size
> only see or copy the first 8 bytes of each DTL entry instead of the full
> record.
>
> [...]
Applied to perf-tools, thanks!
Best regards,
Namhyung