Re: [PATCH 1/3] perf ftrace: Fix latency stats with BPF

From: Namhyung Kim
Date: Thu Mar 13 2025 - 12:31:19 EST


On Thu, 27 Feb 2025 11:12:21 -0800, Namhyung Kim wrote:
> When BPF collects the stats for the latency in usec, it first divides
> the time by 1000. But that means it would have 0 if the delta is small
> and won't update the total time properly.
>
> Let's keep the stats in nsec always and adjust to usec before printing.
>
> Before:
>
> [...]
Applied to perf-tools-next, thanks!

Best regards,
Namhyung