Re: [PATCH] perf iostat: Do not compute interval deltas a second time

From: Namhyung Kim

Date: Wed Nov 11 2026 - 14:36:11 EST


On Thu, 05 Nov 2026 16:04:29 +0800, lirongqing wrote:
> process_counter_values() now computes deltas directly in evsel->counts
> for global aggregation too. It saves the current cumulative raw count in
> prev_raw_counts before iostat prints the interval.
>
> Subtracting prev_raw_counts again can therefore underflow the count.
> Worse, replacing the saved raw count with the interval delta corrupts
> the baseline used to calculate the next interval.
>
> [...]

Applied to perf-tools-next, thanks!

Best regards
Namhyung