Files
Wang Yan aadea57f53 perf powerpc-vpadtl: Fix raw_size of DTL samples
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.

Use sizeof(*record) so that raw_size reflects the actual length of the
raw data.

Fixes: 8644834a48 ("perf powerpc: Process the DTL entries in queue and deliver samples")
Signed-off-by: Wang Yan <[email protected]>
Reviewed-by: Athira Rajeev <[email protected]>
Reviewed-by: Arnaldo Carvalho de Melo <[email protected]>
Signed-off-by: Namhyung Kim <[email protected]>
2026-08-30 23:11:35 -07:00
..
…
2026-06-15 14:33:49 -03:00
2026-01-13 17:03:25 -03:00
2026-01-13 17:03:25 -03:00
…
2026-03-13 14:13:02 -07:00
…
…
…
…
2026-04-02 19:35:16 -07:00
…
…
…
…
…
…
…
…
…
…
…
2026-06-30 10:17:10 -07:00
2026-06-30 10:17:10 -07:00
…
…
…
2026-06-30 10:17:10 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
2026-06-15 09:01:27 -03:00
2026-06-15 09:01:27 -03:00
…
…
…
…
…
…
2026-06-30 10:17:11 -07:00
…
…
…
…
…
2026-06-30 10:17:11 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
2026-03-26 15:22:18 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…