Re: [PATCH v5 0/4] tools/accounting: refactor delay fields and share format_timespec()
From: Andrew Morton
Date: Sat Aug 29 2026 - 18:43:34 EST
On Sat, 29 Aug 2026 17:12:38 +0800 (CST) <wang.yaxin@xxxxxxxxxx> wrote:
> - Convert per-field delay members in struct task_info to an array indexed
> by enum delay_type, eliminating offsetof() pointer arithmetic.
>
> - Add __kernel_old_time_t typedef to tools/include/uapi/linux/time_types.h
> per Thomas's suggestion for backward compatibility with pre-v5.5
> UAPI headers.
>
> - Factor out a common format_timespec() implementation shared by getdelays
> and delaytop, using strftime for cleaner timestamp formatting.
>
> - Replace the complex sizeof/ULL/shift Y2038 guard with a direct narrowing
> truncation check ((long long)time_sec != ts->tv_sec).
Thanks. I can't figure out how to apply this, and neither can Sashiko:
https://sashiko.dev/#/patchset/20260829171238191s9SIXoZPTlZSmA2Px30hn@xxxxxxxxxx
Seems there's a dependency on your "delaytop: add delay max, timestamp
and sorting for top latency analysis" series which didn't get applied
for reasons which I don't recall.