diff options
| author | 2026-09-17 00:11:25 +0800 | |
|---|---|---|
| committer | 2026-09-30 15:34:17 -0300 | |
| commit | 9910ee15c9fc024e713b66403edf23976d33a857 (patch) | |
| tree | 02a33876bb0d6fd0ca099a569599a222033530a6 /scripts/Makefile.thinlto | |
| parent | perf python: Avoid shadowing exception name in PostgreSQL exporter (diff) | |
perf sched stats: Reject mismatched or incomplete snapshots
The before and after records are paired by list position. If a CPU or
domain disappears, counters can be subtracted from a different record
or left as absolute values. An extra record can also advance the cursor
past the list.
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: 5a357ae6ad63fd10 ("perf sched stats: Add support for report subcommand")
Reviewed-by: Swapnil Sapkal <swapnil.sapkal@amd.com>
Assisted-by: LLM
Signed-off-by: Tianyi Chen <hi@tychen.cc>
Tested-by: Swapnil Sapkal <swapnil.sapkal@amd.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
