Re: [PATCH] perf sched stats: Reject mismatched or incomplete snapshots

From: Arnaldo Carvalho de Melo

Date: Wed Sep 30 2026 - 18:16:27 EST


On Mon, Sep 28, 2026 at 06:57:43PM +0530, Swapnil Sapkal wrote:
> On 25-09-2026 18:37, Arnaldo Carvalho de Melo wrote:
> > On Thu, Sep 17, 2026 at 12:11:25AM +0800, Tianyi Chen wrote:
> > > Identify the second snapshot by its timestamp or CPU ordering, and
> > > require matching CPU/domain IDs and versions before subtracting. Check
> > > that every record has a counterpart before printing, and propagate
> > > errors from either input of diff.

> > > Add a shell test with synthetic snapshots, including equal timestamps,
> > > CPU filtering, and missing or reordered CPU/domain records.

> > > Fixes: 5a357ae6ad63 ("perf sched stats: Add support for report subcommand")

> > Swapnil, can you please ack/review this one?

> I have reviewed and tested the changes. It looks good to me. Please feel
> free to add

> Reviewed-and-tested-by: Swapnil Sapkal <swapnil.sapkal@xxxxxxx>

Thanks, applied to perf-tools-next, for v7.4.

- Arnaldo