Re: [PATCH v5 2/3] perf sched latency: Auto-scale latency and runtime display units

Aaron Tomlin <[email protected]> Sat, 1 Aug 2026 17:45:27 -0400
Newsgroups org.kernel.vger.linux-perf-users,org.kernel.vger.linux-kernel
Message-ID <oisjadpeh7gyua3hhqni6ctazrosulcvbndftuxuovfczuqn2a@cej6shjbossa>
On Fri, Jul 31, 2026 at 03:01:45PM -0700, Namhyung Kim wrote:
> On Thu, Jul 30, 2026 at 02:54:15PM -0400, Aaron Tomlin wrote:
> > Currently, 'perf sched latency' displays task runtime and delay values
> > exclusively in milliseconds (ms). This can be hard to read when
> > latencies are very small (in the microsecond or nanosecond range) or
> > unusually large (seconds).
> > 
> > Introduce auto-scaling for latency and runtime display columns. Values
> > are dynamically scaled and output with the most appropriate unit:
> > nanoseconds (ns), microseconds (us), milliseconds (ms), or seconds (s).
> > 
> > Additionally, rename column headers from "Runtime ms", "Avg delay ms",
> > and "Max delay ms" to "Runtime", "Avg delay", and "Max delay"
> > respectively, adjust spacing to maintain column alignment and stripe
> > redundant prefix strings from each row's format string to produce a
> > clean, tabular output.
> 
> It'd be nice if you could include example output when you touched user-
> visible area.  Comparing before and after would be great.

Hi Namhyung,

Acknowledged—will do.

Kind regards,
-- 
Aaron Tomlin