Re: [PATCH v3 0/2] perf record: fix multi-record Zstd compression

From: Namhyung Kim

Date: Tue Jul 14 2026 - 12:50:58 EST


On Wed, 08 Jul 2026 13:38:32 +0000, Dmitry Ilvokhin wrote:
> Fix a 'perf record -z' regression that aborts recording and writes a perf.data
> that cannot be decompressed (see full analysis in patch 2).
>
> v2 -> v3:
>
> - Dropped "perf record: Avoid overrunning the zstd output buffer" and "perf
> record: Don't store raw data on zstd compression failure": both are now fixed
> in perf-tools-next.
> - Added "perf record: Return the written size from process_comp_header()", a
> no-functional-change prep patch, so the fix's per-record padding can't
> overrun 'dst'
> - Removed blank line from record+zstd_comp_decomp_multi_record.sh between test
> description and license (Namhyung Kim).
> - Added missing <string.h> include (Sashiko).
> - Rebased onto perf-tools-next (Namhyung Kim).
>
> [...]
Applied to perf-tools-next, thanks!

Best regards,
Namhyung