Re: [PATCH v4 00/13] perf tests: Robustness and performance improvements

From: Namhyung Kim

Date: Wed Jul 01 2026 - 13:46:56 EST


On Mon, 22 Jun 2026 18:27:45 -0700, Ian Rogers wrote:
> This patch series introduces several robustness and performance
> improvements to the perf test suite, alongside fixes for long-standing
> flakiness.
>
> Key changes across the series:
> - Introduces robust retry logic (`perf_record_with_retry`) to prevent
> spurious test failures due to transient `EPERM` issues during
> system-wide background profiling, safely extracting error messages from
> the PERF_RECORD_LOGS array.
> - Significantly speeds up test execution across multiple scripts (such as
> kvm, record, trace, off-cpu, and lock contention) by supporting
> sub-second durations in the `noploop` and `thloop` workloads, reducing
> unnecessary wait times.
> - Fixes flakiness in the BPF counters hybrid test by parsing `taskset` to
> determine valid CPUs rather than relying on `shuf`, which can fail under
> cgroups or missing binaries.
> - Fixes JIT dump file leaks and TOCTOU vulnerabilities by securely staging
> with `mktemp -d` to guarantee cleanup.
> - Decouples format alignments in `builtin-test.c` to gracefully truncate
> test descriptions without losing alignment or failing under non-TTY
> environments.
> - Restricts uncore PMU bypass in event parsing strictly to `--cputype` to
> prevent unintended metric evaluation impacts.
> - Injects trace output into JUnit XML `<skipped>` blocks to aid debugging.
>
> [...]
Applied to perf-tools-next, thanks!

Best regards,
Namhyung